Kikoyu Core API Reference / Agent
Class: Agent
Immutable configuration holder for an AI Agent.
All execution logic is driven by Runner, while the Agent holds instructions, attached tools, guardrails, and handoffs.
Example
Constructors
new Agent()
new Agent(
config):Agent
Parameters
config
Returns
Defined in
agent.ts:54
Properties
guardrails
readonlyguardrails:Guardrail<any>[]
List of input and output guardrails
Defined in
agent.ts:39
handoffs
readonlyhandoffs:Handoff[]
List of registered handoffs to other agents
Defined in
agent.ts:42
instructions
readonlyinstructions:string
The system instructions describing the agent’s persona and instructions
Defined in
agent.ts:27
maxHandoffs?
readonlyoptionalmaxHandoffs:number
Maximum allowed handoffs
Defined in
agent.ts:49
maxRetries?
readonlyoptionalmaxRetries:number
Maximum allowed model retries
Defined in
agent.ts:52
model
readonlymodel:ModelProvider
The model provider driving the agent
Defined in
agent.ts:30
name
readonlyname:string
The unique display name of the agent
Defined in
agent.ts:24
responseSchema?
readonlyoptionalresponseSchema:any
Optional Zod response schema for structured output
Defined in
agent.ts:46
toolRegistry
readonlytoolRegistry:ToolRegistry
ToolRegistry maintaining all tools and handoff tools
Defined in
agent.ts:36
tools
readonlytools:Tool<any,any,any>[]
List of standard tools attached to the agent
Defined in
agent.ts:33
Methods
builder()
staticbuilder():AgentBuilder
Creates a new fluent AgentBuilder instance.
Returns
A fresh AgentBuilder for method chaining.
Defined in
agent.ts:92