pub struct StandardDefinition {Show 27 fields
pub name: String,
pub package_name: Option<String>,
pub description: String,
pub version: Option<String>,
pub instructions: String,
pub mcp_servers: Option<Vec<McpDefinition>>,
pub model_settings: ModelSettings,
pub analysis_model_settings: Option<ModelSettings>,
pub history_size: Option<usize>,
pub strategy: Option<AgentStrategy>,
pub icon_url: Option<String>,
pub max_iterations: Option<usize>,
pub skills: Vec<AgentSkill>,
pub sub_agents: Vec<String>,
pub tool_format: ToolCallFormat,
pub tools: Option<ToolsConfig>,
pub file_system: FileSystemMode,
pub partials: HashMap<String, String>,
pub write_large_tool_responses_to_fs: Option<bool>,
pub enable_reflection: Option<bool>,
pub enable_todos: Option<bool>,
pub browser_config: Option<BrowserAgentConfig>,
pub browser_hooks: Option<BrowserHooksConfig>,
pub context_size: Option<u32>,
pub append_default_instructions: Option<bool>,
pub include_scratchpad: Option<bool>,
pub hooks: Vec<String>,
}Expand description
Agent definition - complete configuration for an agent
Fields§
§name: StringThe name of the agent.
package_name: Option<String>Optional package name that registered this agent (workspace/plugin metadata)
description: StringA brief description of the agent’s purpose.
version: Option<String>The version of the agent.
instructions: StringInstructions for the agent - serves as an introduction defining what the agent is and does.
mcp_servers: Option<Vec<McpDefinition>>A list of MCP server definitions associated with the agent.
model_settings: ModelSettingsSettings related to the model used by the agent.
analysis_model_settings: Option<ModelSettings>Optional lower-level model settings for lightweight analysis helpers
history_size: Option<usize>The size of the history to maintain for the agent.
strategy: Option<AgentStrategy>The new strategy configuration for the agent.
icon_url: Option<String>A2A-specific fields
max_iterations: Option<usize>§skills: Vec<AgentSkill>§sub_agents: Vec<String>List of sub-agents that this agent can transfer control to
tool_format: ToolCallFormatTool calling configuration
tools: Option<ToolsConfig>Tools configuration for this agent
file_system: FileSystemModeWhere filesystem and artifact tools should run (server or local)
partials: HashMap<String, String>Custom handlebars partials (name -> template path) for use in custom prompts
write_large_tool_responses_to_fs: Option<bool>Whether to write large tool responses to filesystem as artifacts (default: false)
enable_reflection: Option<bool>Whether to enable reflection using a subagent (default: false)
enable_todos: Option<bool>Whether to enable TODO management functionality
browser_config: Option<BrowserAgentConfig>Browser configuration for this agent (enables shared Chromium automation)
browser_hooks: Option<BrowserHooksConfig>Browser hook configuration (API vs local)
context_size: Option<u32>Context size override for this agent (overrides model_settings.context_size)
append_default_instructions: Option<bool>Strategy for prompt construction (append default template vs fully custom)
include_scratchpad: Option<bool>Whether to include the built-in scratchpad/history in prompts (default: true)
hooks: Vec<String>Optional hook names to attach to this agent
Implementations§
Source§impl StandardDefinition
impl StandardDefinition
Sourcepub fn should_write_large_tool_responses_to_fs(&self) -> bool
pub fn should_write_large_tool_responses_to_fs(&self) -> bool
Check if large tool responses should be written to filesystem (default: false)
Sourcepub fn should_use_browser(&self) -> bool
pub fn should_use_browser(&self) -> bool
Check if browser should be initialized automatically in orchestrator (default: false)
Sourcepub fn browser_settings(&self) -> Option<&BrowserAgentConfig>
pub fn browser_settings(&self) -> Option<&BrowserAgentConfig>
Returns browser config if defined
Sourcepub fn browser_runtime_config(&self) -> Option<DistriBrowserConfig>
pub fn browser_runtime_config(&self) -> Option<DistriBrowserConfig>
Returns the runtime Chromium driver configuration if enabled
Sourcepub fn should_persist_browser_session(&self) -> bool
pub fn should_persist_browser_session(&self) -> bool
Should browser session state be serialized after tool runs
Sourcepub fn is_reflection_enabled(&self) -> bool
pub fn is_reflection_enabled(&self) -> bool
Check if reflection is enabled (default: false)
Sourcepub fn is_todos_enabled(&self) -> bool
pub fn is_todos_enabled(&self) -> bool
Check if TODO management functionality is enabled (default: false)
Sourcepub fn get_effective_context_size(&self) -> u32
pub fn get_effective_context_size(&self) -> u32
Get the effective context size (agent-level override or model settings)
Sourcepub fn analysis_model_settings_config(&self) -> ModelSettings
pub fn analysis_model_settings_config(&self) -> ModelSettings
Model settings to use for lightweight browser analysis helpers (e.g., observe_summary commands)
Sourcepub fn include_scratchpad(&self) -> bool
pub fn include_scratchpad(&self) -> bool
Whether to include the persistent scratchpad/history in prompts
Sourcepub fn apply_overrides(&mut self, overrides: DefinitionOverrides)
pub fn apply_overrides(&mut self, overrides: DefinitionOverrides)
Apply definition overrides to this agent definition
Trait Implementations§
Source§impl Clone for StandardDefinition
impl Clone for StandardDefinition
Source§fn clone(&self) -> StandardDefinition
fn clone(&self) -> StandardDefinition
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StandardDefinition
impl Debug for StandardDefinition
Source§impl Default for StandardDefinition
impl Default for StandardDefinition
Source§fn default() -> StandardDefinition
fn default() -> StandardDefinition
Source§impl<'de> Deserialize<'de> for StandardDefinition
impl<'de> Deserialize<'de> for StandardDefinition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<StandardDefinition> for LlmDefinition
impl From<StandardDefinition> for LlmDefinition
Source§fn from(definition: StandardDefinition) -> Self
fn from(definition: StandardDefinition) -> Self
Source§impl JsonSchema for StandardDefinition
impl JsonSchema for StandardDefinition
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more