docs: Update python_client.md (#1413)

This commit is contained in:
David
2024-05-26 00:18:22 +02:00
committed by GitHub
parent 99758dc319
commit 6450b91f17

View File

@@ -46,7 +46,7 @@ def send_message(message: str):
sends a message and prints the assistant output only.
:param message: the message to send
"""
response = client.user_message(agent_id=agent_state.id, message=message)
response = client.user_message(agent_id=agent_info.id, message=message)
for r in response:
# Can also handle other types "function_call", "function_return", "function_message"
if "assistant_message" in r: