mirror of
https://github.com/microsoft/autogen.git
synced 2026-04-20 03:02:16 -04:00
Add description of each example for team one (#569)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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()])
|
||||
|
||||
Reference in New Issue
Block a user