pub struct ResolvedAgentConfig {
pub harness: Harness,
pub model: Option<String>,
pub prompt: String,
pub from_agent_def: bool,
pub agent_type: Option<String>,
}Expand description
Resolved configuration for spawning an agent
Fields§
§harness: HarnessThe harness to use (claude or opencode)
model: Option<String>The model to use (if specified)
prompt: StringThe prompt to send to the agent
from_agent_def: boolWhether this config came from an agent definition
agent_type: Option<String>The agent type name (if from agent def)
Implementations§
Source§impl ResolvedAgentConfig
impl ResolvedAgentConfig
Sourcepub fn display_info(&self) -> String
pub fn display_info(&self) -> String
Get a display string for logging (e.g., “opencode:grok-code-fast-1@fast-builder”)
Trait Implementations§
Source§impl Clone for ResolvedAgentConfig
impl Clone for ResolvedAgentConfig
Source§fn clone(&self) -> ResolvedAgentConfig
fn clone(&self) -> ResolvedAgentConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResolvedAgentConfig
impl RefUnwindSafe for ResolvedAgentConfig
impl Send for ResolvedAgentConfig
impl Sync for ResolvedAgentConfig
impl Unpin for ResolvedAgentConfig
impl UnwindSafe for ResolvedAgentConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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