Skip to content

Commit abd57bb

Browse files
committed
Merge branch 'main' into filinto/dapr-default-better-devex
2 parents 700b9a4 + a346cee commit abd57bb

File tree

6 files changed

+12
-15
lines changed

6 files changed

+12
-15
lines changed

dapr_agents/agents/durableagent/agent.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,6 @@ async def run(self, input_data: Union[str, Dict[str, Any]]) -> Any:
154154
except asyncio.CancelledError:
155155
logger.warning("Workflow execution was cancelled")
156156
raise
157-
finally:
158-
# Clean up runtime
159-
if self.wf_runtime_is_running:
160-
self.stop_runtime()
161157

162158
@message_router
163159
@workflow(name="AgenticWorkflow")
@@ -821,7 +817,9 @@ async def process_broadcast_message(self, message: BroadcastMessage):
821817
agent_msg = DurableAgentMessage(**message.model_dump())
822818

823819
# Persist to global chat history
824-
self.state.chat_history.append(agent_msg)
820+
if "chat_history" not in self.state:
821+
self.state["chat_history"] = []
822+
self.state["chat_history"].append(agent_msg.model_dump(mode="json"))
825823
# Save the state after processing the broadcast message
826824
self.save_state()
827825

dapr_agents/document/embedder/sentence.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ def embed_query(
131131
) -> Union[List[float], List[List[float]]]:
132132
"""
133133
Alias for embed(input) as it is used for querying in some sections of the code.
134-
135134
TODO: remove this method after updating the code to use embed(input) directly or rename the method embed to embed_query
136135
"""
137136
return self.embed(input)

quickstarts/03-durable-agent-multitool-dapr/multi_tool_agent_dapr.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,7 @@ async def main():
4848
"search for the official tourism site for Boston?"
4949
)
5050

51-
try:
52-
await agent.run(prompt)
53-
finally:
54-
# stop the workflow runtime engine
55-
agent.stop_runtime()
51+
await agent.run(prompt)
5652

5753

5854
if __name__ == "__main__":

quickstarts/06-document-agent-chainlit/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ This quickstart demonstrates how to build a fully functional, enterprise-ready a
1919
- macOS: `brew install poppler`
2020
- Ubuntu/Debian: `sudo apt-get install poppler-utils`
2121
- Windows: Download from [poppler releases](https://github.com/oschwartz10612/poppler-windows/releases)
22+
- Tesseract OCR (for text extraction from images/PDFs) - Install with:
23+
- macOS: `brew install tesseract`
24+
- Ubuntu/Debian: `sudo apt-get install tesseract-ocr`
25+
- Windows: Download from [tesseract releases](https://github.com/UB-Mannheim/tesseract/wiki)
2226

2327
## Environment Setup
2428

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ python server.py --server_type sse --port 8000
9191
2. In a separate terminal window, start the agent with Dapr:
9292

9393
```bash
94-
dapr run --app-id weatherappmcp --app-port 8001 --dapr-http-port 3500 --resources-path ./components/ -- python app.py
94+
dapr run --app-id weatherappmcp --dapr-http-port 3500 --resources-path ./components/ -- python app.py
9595
```
9696

9797
3. Send a test request to the agent:
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
dapr-agents
2-
arize-phoenix==11.22.0
1+
dapr-agents[observability]
2+
arize-phoenix==11.37.0
33
# For local development use local changes by commenting out the dapr-agents line above and uncommenting the line below:
4-
# -e ../../
4+
# -e ../../[observability]

0 commit comments

Comments
 (0)