pub struct AgentConfig {
pub harness: String,
pub model: Option<String>,
}Expand description
Which agent harness and model to use for a session type.
Example ~/.config/ninox/config.toml:
[orchestrator]
harness = "claude-code"
model = "claude-opus-4-5"
[worker]
harness = "codex"
model = "gpt-4o"Fields§
§harness: StringAgent harness: "claude-code", "codex", "aider", or "opencode".
model: Option<String>Model identifier passed to the harness CLI. Omit to use the harness default.
Implementations§
Source§impl AgentConfig
impl AgentConfig
Sourcepub fn interactive_cmd(&self) -> String
pub fn interactive_cmd(&self) -> String
Interactive launch command for an orchestrator session.
Sourcepub fn worker_cmd(&self, prompt: &str) -> String
pub fn worker_cmd(&self, prompt: &str) -> String
Launch command for a worker session.
Trait Implementations§
Source§impl Clone for AgentConfig
impl Clone for AgentConfig
Source§fn clone(&self) -> AgentConfig
fn clone(&self) -> AgentConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentConfig
impl Debug for AgentConfig
Source§impl Default for AgentConfig
impl Default for AgentConfig
Source§impl<'de> Deserialize<'de> for AgentConfig
impl<'de> Deserialize<'de> for AgentConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AgentConfig
impl RefUnwindSafe for AgentConfig
impl Send for AgentConfig
impl Sync for AgentConfig
impl Unpin for AgentConfig
impl UnsafeUnpin for AgentConfig
impl UnwindSafe for AgentConfig
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
Mutably borrows from an owned value. Read more