diff --git a/README.md b/README.md index a5da0a4e2..82a4aec57 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ agent = client.agents.create( # Create a user (optional) user = client.users.create( name="John Doe", - attributes={...}, # Add any relevant user attributes + metadata={...}, # Add any relevant user attributes ) # Start a session @@ -88,9 +88,12 @@ session = client.sessions.create( ) # Interact with the agent -response = client.sessions.send_message( +response = client.sessions.chat( session_id=session.id, - message="Hello, how can you help me today?", + messages=[{ + "role": "assistant", + "content": "Hello, how can you help me today?", + }], ) print(response.content)