Docs/API Reference/Agent

Agent

The Agent class represents a single governed unit of work. Each agent has a stable name, role, optional model/provider, tools, skills, memory, knowledge sources, guardrails, and policy.

classmeshflow.Agent

Parameters

ParameterTypeRequiredDescription
namestrrequiredStable agent identifier used in run output, ledgers, and handoffs.
rolestroptionalplanner, researcher, executor, critic, orchestrator, or guardian. Defaults to executor.
modelstroptionalModel name. MeshFlow can infer the provider from names like gpt-4o, claude-sonnet, gemini, or ollama models.
toolslistoptionalTool objects or registered tool names available to this agent.
skillslist[str]optionalBuilt-in skill names that augment the system prompt.
mcpslistoptionalMCP server URLs or stdio params. Tools are added automatically.
memorybooloptionalEnable cross-step memory for this agent.
policyPolicy | stroptionalGovernance policy. Defaults to standard.