Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
src/opensymbiose/agents/agent.py
CHANGED
@@ -47,7 +47,7 @@ class Agent:
|
|
47 |
"""
|
48 |
if agent_id not in self.handoffs:
|
49 |
self.handoffs.append(agent_id)
|
50 |
-
updated_agent = client.beta.agents.update_async(
|
51 |
agent_id=self.id, handoffs=self.handoffs
|
52 |
)
|
53 |
# Update the raw data with the updated agent
|
@@ -63,7 +63,7 @@ class Agent:
|
|
63 |
"""
|
64 |
if agent_id in self.handoffs:
|
65 |
self.handoffs.remove(agent_id)
|
66 |
-
updated_agent = client.beta.agents.update_async(
|
67 |
agent_id=self.id, handoffs=self.handoffs
|
68 |
)
|
69 |
# Update the raw data with the updated agent
|
|
|
47 |
"""
|
48 |
if agent_id not in self.handoffs:
|
49 |
self.handoffs.append(agent_id)
|
50 |
+
updated_agent = await client.beta.agents.update_async(
|
51 |
agent_id=self.id, handoffs=self.handoffs
|
52 |
)
|
53 |
# Update the raw data with the updated agent
|
|
|
63 |
"""
|
64 |
if agent_id in self.handoffs:
|
65 |
self.handoffs.remove(agent_id)
|
66 |
+
updated_agent = await client.beta.agents.update_async(
|
67 |
agent_id=self.id, handoffs=self.handoffs
|
68 |
)
|
69 |
# Update the raw data with the updated agent
|