INNER CODE UNIT · Python

FastAgentA2AExecutor

evalstate/fast-agent · src/fast_agent/a2a/server.py:224

class FastAgentA2AExecutor(AgentExecutor):
    """A2A executor that routes tasks into fast-agent agents."""

    def __init__(
        self,
        primary_instance: AgentInstance,
        create_instance: Callable[[], Awaitable[AgentInstance]],
        dispose_instance: Callable[[AgentInstance], Awaitable[None]],
        *,
        primary_agent_name: str,
        instance_scope: str = "connection",
    ) -> None:
        self._primary_instance = primary_instance
        self._create_instance = create_instance
        self._dispose_instance = dispose_instance
        self._primary_agent_name = primary_agent_name
        self._instance_scope = instance_scope
        self._context_instances: dict[str, AgentInstance] = {}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…