nat.plugins.langchain.control_flow.router_agent.register#
Attributes#
Classes#
A router agent takes in the incoming message, combines it with a prompt and the list of branches, |
Functions#
|
Module Contents#
- logger#
- class RouterAgentWorkflowConfig#
Bases:
nat.data_models.agent.AgentBaseConfigA router agent takes in the incoming message, combines it with a prompt and the list of branches, and ask a LLM about which branch to take.
- branches: list[nat.data_models.component_ref.FunctionRef] = None#
- async router_agent_workflow(
- config: RouterAgentWorkflowConfig,
- builder: nat.builder.builder.Builder,