Skip to content

Commit 7256abd

Browse files
authored
fix: few minor tweaks before release (#215)
Signed-off-by: Samantha Coyle <[email protected]>
1 parent 61c3dc4 commit 7256abd

File tree

5 files changed

+20
-5
lines changed

5 files changed

+20
-5
lines changed

dapr_agents/agents/durableagent/agent.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,9 @@ async def process_broadcast_message(self, message: BroadcastMessage):
821821
agent_msg = DurableAgentMessage(**message.model_dump())
822822

823823
# Persist to global chat history
824-
self.state.chat_history.append(agent_msg)
824+
if "chat_history" not in self.state:
825+
self.state["chat_history"] = []
826+
self.state["chat_history"].append(agent_msg.model_dump(mode="json"))
825827
# Save the state after processing the broadcast message
826828
self.save_state()
827829

dapr_agents/document/embedder/sentence.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,15 @@ def embed(
126126
return embeddings[0].tolist()
127127
return embeddings.tolist()
128128

129+
def embed_query(
130+
self, input: Union[str, List[str]]
131+
) -> Union[List[float], List[List[float]]]:
132+
"""
133+
Alias for embed(input) as it is used for querying in some sections of the code.
134+
TODO: remove this method after updating the code to use embed(input) directly or rename the method embed to embed_query
135+
"""
136+
return self.embed(input)
137+
129138
def __call__(
130139
self, input: Union[str, List[str]]
131140
) -> Union[List[float], List[List[float]]]:

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)