Skip to content

Commit 4afa495

Browse files
Fix: Add some await missing
1 parent cf36b23 commit 4afa495

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
# v0.0.3
1+
# v0.0.4
2+
3+
- Fix some non-async calls
24

5+
# v0.0.3
36
- Async Query of Mistral API
47

58
# v0.0.2

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "opensymbiose"
3-
version = "0.0.3"
3+
version = "0.0.4"
44
description = "OpenSymbiose is an open-source biotechnology / biology research AI agent designed to support researcher."
55
readme = "README.md"
66
requires-python = ">=3.10"

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# For HuggingFace Space Gradio App
2-
opensymbiose
2+
opensymbiose>=0.0.4
33
mistralai
44
python-dotenv
55
gradio

src/opensymbiose/agents/agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async def add_handoff(self, agent_id: str, client: Mistral) -> None:
4747
"""
4848
if agent_id not in self.handoffs:
4949
self.handoffs.append(agent_id)
50-
updated_agent = client.beta.agents.update_async(
50+
updated_agent = await client.beta.agents.update_async(
5151
agent_id=self.id, handoffs=self.handoffs
5252
)
5353
# Update the raw data with the updated agent
@@ -63,7 +63,7 @@ async def remove_handoff(self, agent_id: str, client: Mistral) -> None:
6363
"""
6464
if agent_id in self.handoffs:
6565
self.handoffs.remove(agent_id)
66-
updated_agent = client.beta.agents.update_async(
66+
updated_agent = await client.beta.agents.update_async(
6767
agent_id=self.id, handoffs=self.handoffs
6868
)
6969
# Update the raw data with the updated agent

0 commit comments

Comments
 (0)