Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic membership in an AgentChat team #4082

Open
ekzhu opened this issue Nov 6, 2024 · 0 comments
Open

Dynamic membership in an AgentChat team #4082

ekzhu opened this issue Nov 6, 2024 · 0 comments
Milestone

Comments

@ekzhu
Copy link
Collaborator

ekzhu commented Nov 6, 2024

What feature would you like to be added?

Before the task during initialization:

# Initialization
team = Team(...)
team.add(Agent(...))
team.add(Agent(...))

# Run the task.
result = await team.run(...)

Alternatively, during an execution of a task.

team = Team(...)
# Running the task in the background
task = asyncio.create_task(team.run(...))

# Add an agent.
await team.add(Agent(...))

# Remove an agent.
await team.remove(name=...)

# Waiting for the task to finish.
await task

Why is this needed?

It's cool!

Please comment here for usage cases.

@ekzhu ekzhu added this to the future milestone Nov 6, 2024
@ekzhu ekzhu removed the needs-triage label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant