From 1a0d8a486afdc9c59b90ca36f5b14745ab746bcf Mon Sep 17 00:00:00 2001 From: Kevin Mangan Date: Wed, 17 Jul 2024 20:56:43 -0700 Subject: [PATCH] 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 --- docs/usage/python/multiple-instances.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/usage/python/multiple-instances.mdx b/docs/usage/python/multiple-instances.mdx index 4e145fc063..b19bb11425 100644 --- a/docs/usage/python/multiple-instances.mdx +++ b/docs/usage/python/multiple-instances.mdx @@ -24,7 +24,7 @@ def swap_roles(messages): agents = [agent_1, agent_2] # Kick off the conversation -messages = [{"role": "user", "message": "Hello!"}] +messages = [{"role": "user", "type": "message", "content": "Hello!"}] while True: for agent in agents: