Add description of each example for team one (#569)

This commit is contained in:
Eric Zhu
2024-09-18 17:16:54 -07:00
committed by GitHub
parent 7b989c3ad6
commit f5a13627e2
6 changed files with 31 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
"""This example demonstrates a human user interacting with a coder agent and a executor agent
to generate and execute code snippets. An ledger orchestrator agent orchestrates the interaction
between the user, coder, and executor agents.
At each step, the orchestrator agent decides which user or agent to perform the next action.
The code snippets are executed inside a docker container."""
import asyncio
import logging

View File

@@ -1,3 +1,9 @@
"""This example demonstrates a human user interacting with a coder agent and a executor agent
to generate and execute code snippets. The user and the agents take turn sequentially
to write input, generate code snippets and execute them, orchestrated by an
round-robin orchestrator agent. The code snippets are executed inside a docker container.
"""
import asyncio
import logging

View File

@@ -1,3 +1,7 @@
"""This example demonstrates a human user interacting with a file surfer agent
to navigate the file system. The human user and the file surfer agent takes turn
to write input or perform actions, orchestrated by an round-robin orchestrator agent."""
import asyncio
import logging

View File

@@ -1,3 +1,6 @@
"""This example demonstrates three mock agents taking turn to reflect recieved message
by publishing it verbatim. The agents are orchestrated by a round-robin orchestrator agent."""
import asyncio
import logging

View File

@@ -1,3 +1,9 @@
"""This example demonstrates a human user interacting with a coder agent
which uses a model to generate code snippets. The user and the coder agent
takes turn to write input or generate code snippets, orchestrated by an
round-robin orchestrator agent.
The code snippets are not executed in this example."""
import asyncio
import logging

View File

@@ -1,3 +1,8 @@
"""This example demonstrates a human user interacting with a web surfer agent
to navigate the web through an embedded incognito browser.
The human user and the web surfer agent takes turn to write input or perform actions,
orchestrated by an round-robin orchestrator agent."""
import asyncio
import logging
import os
@@ -20,7 +25,7 @@ async def main() -> None:
runtime = SingleThreadedAgentRuntime()
# Create an appropriate client
client = create_completion_client_from_env()
client = create_completion_client_from_env(model="gpt-4o")
# Register agents.
await runtime.register("WebSurfer", lambda: MultimodalWebSurfer(), lambda: [DefaultSubscription()])