Complete reference for the Agent class
Agent
class is the core class in Agenite that orchestrates interactions between LLMs and tools.
name
(required): Unique identifier for the agentprovider
(required): LLM provider instancetools
: Array of tools available to the agentinstructions
: System instructions for the agent (default: “You are a helpful assistant.”)description
: Description of the agent’s purposeagents
: Sub-agents that can be called by this agentstateReducer
: Custom state management functionsinitialState
: Initial agent statesteps
: Custom execution stepsstartStep
: First step to execute (default: “agenite.llm-call”)middlewares
: Array of middleware functions to modify agent behaviorextensions
: Additional custom functionalityinput
(required): Input state, typically containing messagesoptions
: Additional execution options
stream
: Enable streaming responsescontext
: Additional execution contextparentExecution
: Context from a parent execution (for nested agents)messages
: Array of messages from the conversationtokenUsage
: Token usage statisticsexecute