Skip to content

Commit 8d63690

Browse files
authored
Merge pull request #269 from sicoyle/fix-quickstarts-before-our-release
fix: final fixes before release
2 parents 3f4adc5 + 635029c commit 8d63690

File tree

5 files changed

+4
-95
lines changed

5 files changed

+4
-95
lines changed

quickstarts/02_llm_call_open_ai/audio_translation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
client = OpenAIAudioClient()
77

88
# Specify the audio file to translate
9-
audio_file_path = "speech_spanish.mp3"
9+
audio_file_path = "speech.mp3"
1010

1111
# Create a translation request
1212
translation_request = AudioTranslationRequest(
87.7 KB
Binary file not shown.

quickstarts/04-message-router-workflow/README.md

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -137,40 +137,7 @@ spec:
137137

138138
### app.py
139139

140-
The application entry point registers the workflow and sets up the pub/sub subscription:
141-
142-
```python
143-
async def main() -> None:
144-
runtime = wf.WorkflowRuntime()
145-
146-
# Register the workflow (which is also the message handler)
147-
runtime.register_workflow(blog_workflow)
148-
runtime.register_activity(create_outline)
149-
runtime.register_activity(write_post)
150-
151-
runtime.start()
152-
153-
try:
154-
with DaprClient() as client:
155-
# Register the pub/sub subscription
156-
# register_message_routes discovers the @message_router decorator
157-
# and automatically sets up subscription + validation
158-
closers = register_message_routes(
159-
targets=[blog_workflow], # Pass the workflow itself
160-
dapr_client=client,
161-
)
162-
163-
try:
164-
await _wait_for_shutdown()
165-
finally:
166-
for close in closers:
167-
try:
168-
close()
169-
except Exception:
170-
logger.exception("Error while closing subscription")
171-
finally:
172-
runtime.shutdown()
173-
```
140+
The application entry point registers the workflow and sets up the pub/sub subscription.
174141

175142
**Key Points:**
176143
- `runtime.register_workflow(blog_workflow)` - Register the workflow with the runtime

quickstarts/05-multi-agent-workflows/README.md

Lines changed: 1 addition & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -141,66 +141,7 @@ This quickstart uses these Dapr components (in `components/` directory):
141141

142142
## Agent Configuration with Config Classes
143143

144-
Each agent in this quickstart uses the modern **Agent Configuration Classes** pattern. Here's how Frodo is configured:
145-
146-
```python
147-
from dapr_agents.agents.durable import DurableAgent
148-
from dapr_agents.agents.configs import (
149-
AgentMemoryConfig,
150-
AgentPubSubConfig,
151-
AgentRegistryConfig,
152-
AgentStateConfig,
153-
)
154-
from dapr_agents.agents.prompting import AgentProfileConfig
155-
156-
# 1. Profile - Agent identity and behavior
157-
frodo_profile = AgentProfileConfig(
158-
name="Frodo Baggins",
159-
role="Hobbit & Ring-bearer",
160-
goal="Carry the One Ring to Mount Doom...",
161-
instructions=[...],
162-
style_guidelines=[...],
163-
)
164-
165-
# 2. Pub/Sub - Event-driven messaging
166-
frodo_pubsub = AgentPubSubConfig(
167-
pubsub_name="messagepubsub",
168-
agent_topic="fellowship.frodo.requests", # Direct messages
169-
broadcast_topic="fellowship.broadcast", # Team-wide
170-
)
171-
172-
# 3. State - Workflow state persistence
173-
frodo_state = AgentStateConfig(
174-
store=StateStoreService(
175-
store_name="workflowstatestore",
176-
key_prefix="frodo:"
177-
)
178-
)
179-
180-
# 4. Registry - Multi-agent coordination (SHARED)
181-
registry = AgentRegistryConfig(
182-
store=StateStoreService(store_name="agentregistrystore"),
183-
team_name="fellowship", # All agents share this team
184-
)
185-
186-
# 5. Memory - Conversation history
187-
frodo_memory = AgentMemoryConfig(
188-
store=ConversationDaprStateMemory(
189-
store_name="memorystore",
190-
session_id="frodo-session",
191-
)
192-
)
193-
194-
# Assemble the agent
195-
frodo = DurableAgent(
196-
profile=frodo_profile,
197-
pubsub=frodo_pubsub,
198-
state=frodo_state,
199-
registry=registry, # Shared registry enables coordination
200-
memory=frodo_memory,
201-
llm=llm,
202-
)
203-
```
144+
Each agent in this quickstart uses the latest **Agent Configuration Classes** updates.
204145

205146
### Key Benefits of Configuration Classes
206147

quickstarts/07-agent-mcp-client-sse/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ dapr run \
136136
--app-port 8001 \
137137
--resources-path $temp_resources_folder \
138138
-- python app.py
139+
139140
rm -rf $temp_resources_folder
140141
```
141142

0 commit comments

Comments
 (0)