Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
creatorrr authored Apr 20, 2024
1 parent 2ad860c commit 5906015
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 5906015

Please sign in to comment.