pub struct AgentConfigToml {
pub cmd: Option<String>,
pub output_flag: Option<String>,
pub yolo_flag: Option<String>,
pub verbose_flag: Option<String>,
pub print_flag: Option<String>,
pub streaming_flag: Option<String>,
pub session_flag: Option<String>,
pub can_commit: Option<bool>,
pub json_parser: Option<String>,
pub model_flag: Option<String>,
pub display_name: Option<String>,
}Expand description
Agent TOML configuration (compatible with examples/agents.toml).
Fields are used via serde deserialization.
Fields§
§cmd: Option<String>Base command to run the agent.
When overriding a built-in agent, this may be omitted to keep the built-in command.
output_flag: Option<String>Output-format flag.
Omitted means “keep built-in default”. Empty string explicitly disables output flag.
yolo_flag: Option<String>Flag for autonomous mode.
Omitted means “keep built-in default”. Empty string explicitly disables yolo mode.
verbose_flag: Option<String>Flag for verbose output.
Omitted means “keep built-in default”. Empty string explicitly disables verbose flag.
print_flag: Option<String>Print/non-interactive mode flag (e.g., “-p” for Claude/CCS).
Omitted means “keep built-in default”. Empty string explicitly disables print mode.
streaming_flag: Option<String>Include partial messages flag for streaming with -p (e.g., “–include-partial-messages”).
Omitted means “keep built-in default”. Empty string explicitly disables streaming flag.
session_flag: Option<String>Session continuation flag template (e.g., “-s {}” for OpenCode, “–resume {}” for Claude).
The {} placeholder is replaced with the session ID at runtime.
Omitted means “keep built-in default”. Empty string explicitly disables session continuation. See agent documentation for correct flag format:
- Claude: –resume <session_id> (from
claude --help) - OpenCode: -s <session_id> (from
opencode run --help)
can_commit: Option<bool>Whether the agent can run git commit.
Omitted means “keep built-in default”. For new agents, this defaults to true when omitted.
json_parser: Option<String>Which JSON parser to use.
Omitted means “keep built-in default”. For new agents, defaults to “generic” when omitted.
model_flag: Option<String>Model/provider flag.
display_name: Option<String>Human-readable display name for UI/UX.
Omitted means “keep built-in default”. Empty string explicitly clears the display name.
Trait Implementations§
Source§impl Clone for AgentConfigToml
impl Clone for AgentConfigToml
Source§fn clone(&self) -> AgentConfigToml
fn clone(&self) -> AgentConfigToml
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AgentConfigToml
impl Debug for AgentConfigToml
Source§impl Default for AgentConfigToml
impl Default for AgentConfigToml
Source§fn default() -> AgentConfigToml
fn default() -> AgentConfigToml
Source§impl<'de> Deserialize<'de> for AgentConfigTomlwhere
AgentConfigToml: Default,
impl<'de> Deserialize<'de> for AgentConfigTomlwhere
AgentConfigToml: Default,
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>,
Auto Trait Implementations§
impl Freeze for AgentConfigToml
impl RefUnwindSafe for AgentConfigToml
impl Send for AgentConfigToml
impl Sync for AgentConfigToml
impl Unpin for AgentConfigToml
impl UnwindSafe for AgentConfigToml
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more