Skip to content

Commit 1a0d8a4

Browse files
authored
Update multiple-instances.mdx with correct key/value pairs for message dicts
The example for multiple instances does not currently work since core.py expects the message input to contain the keys: * type * content
1 parent c044179 commit 1a0d8a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/usage/python/multiple-instances.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def swap_roles(messages):
2424
agents = [agent_1, agent_2]
2525

2626
# Kick off the conversation
27-
messages = [{"role": "user", "message": "Hello!"}]
27+
messages = [{"role": "user", "type": "message", "content": "Hello!"}]
2828

2929
while True:
3030
for agent in agents:

0 commit comments

Comments
 (0)