nat.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(/, **data: Any)#
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.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- branches: list[nat.data_models.component_ref.FunctionRef] = None#
- async router_agent_workflow(
- config: RouterAgentWorkflowConfig,
- builder: nat.builder.builder.Builder,