AgentSpec
Agent Runtimes / types/agentspecs / AgentSpec
Interface: AgentSpec
Defined in: types/agentspecs.ts:23
Specification for an AI agent.
Defines the configuration for a reusable agent template that can be instantiated as an Agent Runtime.
Properties
advanced?
optionaladvanced?:AgentAdvancedConfig
Defined in: types/agentspecs.ts:89
Advanced settings (cost_limit, time_limit, max_iterations, validation)
authorizationPolicy?
optionalauthorizationPolicy?:string
Defined in: types/agentspecs.ts:91
Authorization policy
codemode?
optionalcodemode?:AgentCodemodeConfig
Defined in: types/agentspecs.ts:85
Codemode configuration (enabled, token_reduction, speedup)
color?
optionalcolor?:string
Defined in: types/agentspecs.ts:57
Theme color for the agent (hex code)
description
description:
string
Defined in: types/agentspecs.ts:31
Agent description
emoji?
optionalemoji?:string
Defined in: types/agentspecs.ts:55
Emoji identifier for the agent
enabled
enabled:
boolean
Defined in: types/agentspecs.ts:39
Whether the agent is enabled
environmentName
environmentName:
string
Defined in: types/agentspecs.ts:51
Runtime environment name for this agent
evals?
optionalevals?:AgentEvalConfig[]
Defined in: types/agentspecs.ts:83
Evaluation configurations
frontendTools?
optionalfrontendTools?:FrontendToolSpec[]
Defined in: types/agentspecs.ts:49
Frontend tool sets available to this agent
goal?
optionalgoal?:string
Defined in: types/agentspecs.ts:69
User-facing objective for the agent
guardrails?
optionalguardrails?:GuardrailSpec[]
Defined in: types/agentspecs.ts:81
Guardrail configurations
icon?
optionalicon?:string
Defined in: types/agentspecs.ts:53
Icon identifier or URL for the agent
id
id:
string
Defined in: types/agentspecs.ts:25
Unique agent identifier
mcpServers
mcpServers:
MCPServer[]
Defined in: types/agentspecs.ts:43
MCP servers used by this agent
mcpServerTools?
optionalmcpServerTools?:AgentMCPServerToolConfig[]
Defined in: types/agentspecs.ts:79
MCP server tool configurations with approval settings
memory?
optionalmemory?:string
Defined in: types/agentspecs.ts:95
Memory backend identifier (e.g., 'ephemeral', 'mem0', 'memu', 'simplemem')
model?
optionalmodel?:string
Defined in: types/agentspecs.ts:41
AI model identifier to use for this agent
modelConfig?
optionalmodelConfig?:AgentModelConfig
Defined in: types/agentspecs.ts:77
Model configuration (temperature, max_tokens)
name
name:
string
Defined in: types/agentspecs.ts:29
Display name for the agent
notifications?
optionalnotifications?:AgentNotificationConfig
Defined in: types/agentspecs.ts:93
Notification configuration (email, slack)
output?
optionaloutput?:AgentOutputConfig
Defined in: types/agentspecs.ts:87
Output configuration (type/formats, template)
protocol?
optionalprotocol?:string
Defined in: types/agentspecs.ts:71
Communication protocol (e.g., 'ag-ui', 'acp', 'a2a', 'vercel-ai')
sandboxVariant?
optionalsandboxVariant?:string
Defined in: types/agentspecs.ts:67
Sandbox variant to use for this agent ('local-eval', 'jupyter', 'local-jupyter')
skills
skills:
SkillSpec[]
Defined in: types/agentspecs.ts:45
Skills available to this agent
suggestions?
optionalsuggestions?:string[]
Defined in: types/agentspecs.ts:59
Chat suggestions to show users what this agent can do
systemPrompt?
optionalsystemPrompt?:string
Defined in: types/agentspecs.ts:33
System prompt for the agent
systemPromptCodemodeAddons?
optionalsystemPromptCodemodeAddons?:string
Defined in: types/agentspecs.ts:35
System prompt addons when codemode is enabled
tags
tags:
string[]
Defined in: types/agentspecs.ts:37
Tags for categorization
tools?
optionaltools?:ToolSpec[]
Defined in: types/agentspecs.ts:47
Runtime tools available to this agent
trigger?
optionaltrigger?:AgentTriggerConfig
Defined in: types/agentspecs.ts:75
Trigger configuration (type, cron, event source, prompt)
uiExtension?
optionaluiExtension?:string
Defined in: types/agentspecs.ts:73
UI extension type (e.g., 'a2ui', 'mcp-apps')
version?
optionalversion?:string
Defined in: types/agentspecs.ts:27
Version
welcomeDocument?
optionalwelcomeDocument?:string
Defined in: types/agentspecs.ts:65
Path to Lexical document to show on agent creation
welcomeMessage?
optionalwelcomeMessage?:string
Defined in: types/agentspecs.ts:61
Welcome message shown when agent starts
welcomeNotebook?
optionalwelcomeNotebook?:string
Defined in: types/agentspecs.ts:63
Path to Jupyter notebook to show on agent creation