pub struct LlmSpawnOpts<'a> {
pub error: Option<&'a str>,
pub handle: Option<&'a str>,
pub name: Option<&'a str>,
pub state: Option<AgentState>,
}Fields§
§error: Option<&'a str>The loop error to create the agent with, for state FAILED. Refused with any other state.
handle: Option<&'a str>The runtime handle to restore the instance under, as published on its loop span as dagger.io/agent.id. Omit to mint a fresh instance.
name: Option<&'a str>Display label for the agent — telemetry and error messages; carries no identity. Defaults to a short name derived from the conversation.
state: Option<AgentState>The lifecycle state to create the agent in, as facts on the entry: IDLE is ready to be prompted, PAUSED parks it, FAILED holds an error a resume retries past, STOPPED preserves a dormant snapshot that send or resume can relaunch. RUNNING and WAITING_INPUT are refused: they describe a loop, and a restored loop died with the session that published it — restore such an agent as IDLE, its interrupted turn’s input still pending on the conversation.
Trait Implementations§
Source§impl<'a> Debug for LlmSpawnOpts<'a>
impl<'a> Debug for LlmSpawnOpts<'a>
Source§impl<'a> PartialEq for LlmSpawnOpts<'a>
impl<'a> PartialEq for LlmSpawnOpts<'a>
impl<'a> StructuralPartialEq for LlmSpawnOpts<'a>
Auto Trait Implementations§
impl<'a> Freeze for LlmSpawnOpts<'a>
impl<'a> RefUnwindSafe for LlmSpawnOpts<'a>
impl<'a> Send for LlmSpawnOpts<'a>
impl<'a> Sync for LlmSpawnOpts<'a>
impl<'a> Unpin for LlmSpawnOpts<'a>
impl<'a> UnsafeUnpin for LlmSpawnOpts<'a>
impl<'a> UnwindSafe for LlmSpawnOpts<'a>
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> 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> ⓘ
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