pub struct AgentConfigInline {
pub model: Option<String>,
pub provider: Option<String>,
pub prompt: Option<String>,
pub description: Option<String>,
pub temperature: Option<f64>,
pub top_p: Option<f64>,
pub max_steps: Option<usize>,
pub mode: Option<String>,
pub color: Option<String>,
pub hidden: Option<bool>,
pub disable: Option<bool>,
pub permission: HashMap<String, String>,
}Expand description
Inline agent configuration from opendev.json.
Allows defining new agents or overriding builtin agents directly in the config file. All fields are optional — only specified fields are applied as overrides.
Also used for model role entries (e.g. agents.compact) where only
model and provider are relevant.
Fields§
§model: Option<String>Model override (e.g. “gpt-4o”, “claude-opus-4-5”).
provider: Option<String>Provider override (e.g. “openai”, “google”).
prompt: Option<String>System prompt override or addition.
description: Option<String>Description of when to use this agent.
temperature: Option<f64>Temperature override.
top_p: Option<f64>Top-p override.
max_steps: Option<usize>Max iterations (steps) for the react loop.
mode: Option<String>Agent mode: “primary”, “subagent”, or “all”.
color: Option<String>Display color (hex string like “#FF6600”).
Hide from autocomplete listings.
disable: Option<bool>Disable/remove this agent entirely.
permission: HashMap<String, String>Per-tool permission rules (tool pattern -> “allow”/“deny”/“ask”).
Trait Implementations§
Source§impl Clone for AgentConfigInline
impl Clone for AgentConfigInline
Source§fn clone(&self) -> AgentConfigInline
fn clone(&self) -> AgentConfigInline
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more