Agentspec
Agent Runtimes / types/agentspecs / Agentspec
Interface: Agentspec
Defined in: src/types/agentspecs.ts:27
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: src/types/agentspecs.ts:99
Advanced settings (cost_limit, time_limit, max_iterations, validation)
authorizationPolicy?
optionalauthorizationPolicy?:string
Defined in: src/types/agentspecs.ts:101
Authorization policy
codemode?
optionalcodemode?:AgentCodemodeConfig
Defined in: src/types/agentspecs.ts:95
Codemode configuration (enabled, token_reduction, speedup)
color?
optionalcolor?:string
Defined in: src/types/agentspecs.ts:67
Theme color for the agent (hex code)
description
description:
string
Defined in: src/types/agentspecs.ts:35
Agent description
disableToolApprovals?
optionaldisableToolApprovals?:boolean
Defined in: src/types/agentspecs.ts:55
Disable tool approvals for this spec (default: false).
emoji?
optionalemoji?:string
Defined in: src/types/agentspecs.ts:65
Emoji identifier for the agent
enabled
enabled:
boolean
Defined in: src/types/agentspecs.ts:43
Whether the agent is enabled
environmentName
environmentName:
string
Defined in: src/types/agentspecs.ts:61
Runtime environment name for this agent
evals?
optionalevals?:AgentEvalConfig[]
Defined in: src/types/agentspecs.ts:93
Evaluation configurations
frontendRenderTools?
optionalfrontendRenderTools?:FrontendRenderToolSpec[]
Defined in: src/types/agentspecs.ts:59
Bindings of backend tools to frontend renderers (tool name + css)
frontendTools?
optionalfrontendTools?:FrontendToolSpec[]
Defined in: src/types/agentspecs.ts:57
Frontend tool sets available to this agent
goal?
optionalgoal?:string
Defined in: src/types/agentspecs.ts:79
User-facing objective for the agent
guardrails?
optionalguardrails?:GuardrailSpec[]
Defined in: src/types/agentspecs.ts:91
Guardrail configurations
icon?
optionalicon?:string
Defined in: src/types/agentspecs.ts:63
Icon identifier or URL for the agent
id
id:
string
Defined in: src/types/agentspecs.ts:29
Unique agent identifier
inferenceProvider?
optionalinferenceProvider?:"datalayer"|"local"
Defined in: src/types/agentspecs.ts:47
Inference provider routing strategy
mcpServers
mcpServers:
MCPServer[]
Defined in: src/types/agentspecs.ts:49
MCP servers used by this agent
mcpServerTools?
optionalmcpServerTools?:AgentMCPServerToolConfig[]
Defined in: src/types/agentspecs.ts:89
MCP server tool configurations with approval settings
memory?
optionalmemory?:string
Defined in: src/types/agentspecs.ts:105
Memory backend identifier (e.g., 'ephemeral', 'mem0', 'memu', 'simplemem')
model?
optionalmodel?:string
Defined in: src/types/agentspecs.ts:45
AI model identifier to use for this agent
modelConfig?
optionalmodelConfig?:AgentModelConfig
Defined in: src/types/agentspecs.ts:87
Model configuration (temperature, max_tokens)
name
name:
string
Defined in: src/types/agentspecs.ts:33
Display name for the agent
notifications?
optionalnotifications?:AgentNotificationConfig
Defined in: src/types/agentspecs.ts:103
Notification configuration (email, slack)
output?
optionaloutput?:AgentOutputConfig
Defined in: src/types/agentspecs.ts:97
Output configuration (type/formats, template)
parameters?
optionalparameters?:Record<string,any>
Defined in: src/types/agentspecs.ts:118
JSON schema for launch-time parameter values.
postHooks?
optionalpostHooks?:object
Defined in: src/types/agentspecs.ts:112
Post-stop hooks (sandbox cleanup code).
sandbox?
optionalsandbox?:string|string[]
preHooks?
optionalpreHooks?:object
Defined in: src/types/agentspecs.ts:107
Pre-launch hooks (package installs and sandbox code).
packages?
optionalpackages?:string[]
sandbox?
optionalsandbox?:string|string[]
protocol?
optionalprotocol?:string
Defined in: src/types/agentspecs.ts:81
Communication protocol (e.g., 'ag-ui', 'acp', 'a2a', 'vercel-ai')
sandboxVariant?
optionalsandboxVariant?:string
Defined in: src/types/agentspecs.ts:77
Sandbox variant to use for this agent (e.g. 'eval', 'jupyter', 'kaggle').
skills
skills:
SkillSpec[]
Defined in: src/types/agentspecs.ts:51
Skills available to this agent
subagents?
optionalsubagents?:SubAgentsConfig
Defined in: src/types/agentspecs.ts:120
Subagent delegation configuration.
suggestions?
optionalsuggestions?:string[]
Defined in: src/types/agentspecs.ts:69
Chat suggestions to show users what this agent can do
systemPrompt?
optionalsystemPrompt?:string
Defined in: src/types/agentspecs.ts:37
System prompt for the agent
systemPromptCodemodeAddons?
optionalsystemPromptCodemodeAddons?:string
Defined in: src/types/agentspecs.ts:39
System prompt addons when codemode is enabled
tags
tags:
string[]
Defined in: src/types/agentspecs.ts:41
Tags for categorization
toolHooks?
optionaltoolHooks?:Record<string,any>
Defined in: src/types/agentspecs.ts:116
Per-tool-call hooks (authorization/audit integration).
tools?
optionaltools?:ToolSpec[]
Defined in: src/types/agentspecs.ts:53
Runtime tools available to this agent
trigger?
optionaltrigger?:AgentTriggerConfig
Defined in: src/types/agentspecs.ts:85
Trigger configuration (type, cron, event source, prompt)
uiExtension?
optionaluiExtension?:string
Defined in: src/types/agentspecs.ts:83
UI extension type (e.g., 'a2ui', 'mcp-apps')
version?
optionalversion?:string
Defined in: src/types/agentspecs.ts:31
Version
welcomeDocument?
optionalwelcomeDocument?:string
Defined in: src/types/agentspecs.ts:75
Path to Lexical document to show on agent creation
welcomeMessage?
optionalwelcomeMessage?:string
Defined in: src/types/agentspecs.ts:71
Welcome message shown when agent starts
welcomeNotebook?
optionalwelcomeNotebook?:string
Defined in: src/types/agentspecs.ts:73
Path to Jupyter notebook to show on agent creation