Skip to content

AgentDefinition

Defined in: scoring/agents.ts:84

Complete agent definition

T = unknown

capabilities: AgentCapabilities

Defined in: scoring/agents.ts:100

What this agent can do


cost: number

Defined in: scoring/agents.ts:93

Cost per invocation in your chosen units Could be cents, tokens, or relative units (0=free, 100=expensive)


enabled: boolean

Defined in: scoring/agents.ts:102

Whether this agent is currently enabled


execute: AgentExecutor<T>

Defined in: scoring/agents.ts:109

The executor function - implement this for your provider


id: string

Defined in: scoring/agents.ts:86

Unique identifier (e.g., ‘ollama-qwen’, ‘jules’, ‘openai-gpt4’)


name: string

Defined in: scoring/agents.ts:88

Human-readable name


priority: number

Defined in: scoring/agents.ts:98

Priority when multiple agents can handle same tier Lower = preferred (will be tried first)


optional requiresApproval: boolean

Defined in: scoring/agents.ts:107

Require explicit approval before using? Useful for expensive agents - task.metadata.approved must include this agent’s ID