nat.agent.react_agent.register_per_user_agent#

Attributes#

Classes#

PerUserReActAgentWorkflowConfig

Per-user version of ReAct Agent for use with per-user function groups like per_user_mcp_client.

Functions#

per_user_react_agent_workflow(config, builder)

Per-user ReAct Agent - each user gets their own isolated instance.

Module Contents#

logger#
class PerUserReActAgentWorkflowConfig(/, **data: Any)#

Bases: nat.agent.react_agent.register.ReActAgentWorkflowConfig

Per-user version of ReAct Agent for use with per-user function groups like per_user_mcp_client. Each user gets their own agent instance with isolated state.

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.

self is explicitly positional-only to allow self as a field name.

async per_user_react_agent_workflow(
config: PerUserReActAgentWorkflowConfig,
builder: nat.builder.builder.Builder,
)#

Per-user ReAct Agent - each user gets their own isolated instance.