Skip to content

Accessing Agent runtime through AgentChat #4075

@ekzhu

Description

@ekzhu

What feature would you like to be added?

Currently, AgentChat instantiate an agent runtime each time run() is called on a team. Rather than recreating a new runtime, we should reuse the same runtime

runtime = ...

team = SelectorGroupChat(..., runtime=runtime)
result = await team.runt(...)

Why is this needed?

We want to switch between different runtimes for the same team and agents. The runtime should be decoupled from the agent and team implementation.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions