pub struct TurnContinuation { /* private fields */ }Expand description
Continuation state for one provider-agnostic agent turn.
The concrete representation keeps provider-runtime recovery details out of
TurnRequest while allowing CLI channels to consume only replay text.
Implementations§
Source§impl TurnContinuation
impl TurnContinuation
Sourcepub fn replaying(replay_transcript: String) -> Self
pub fn replaying(replay_transcript: String) -> Self
Creates continuation state for a stateless turn that replays prior text.
Sourcepub fn provider(
live_transcript: Option<Arc<dyn LiveTranscript>>,
persisted_instruction_conversation_id: Option<String>,
provider_conversation_id: Option<String>,
replay_transcript: Option<String>,
) -> Self
pub fn provider( live_transcript: Option<Arc<dyn LiveTranscript>>, persisted_instruction_conversation_id: Option<String>, provider_conversation_id: Option<String>, replay_transcript: Option<String>, ) -> Self
Creates continuation state for a provider runtime that may resume a native conversation and reconstruct context from a live transcript.
Sourcepub fn replay_transcript(&self) -> Option<&str>
pub fn replay_transcript(&self) -> Option<&str>
Returns replayable transcript text when this turn carries it.
Sourcepub fn provider_conversation_id(&self) -> Option<&str>
pub fn provider_conversation_id(&self) -> Option<&str>
Returns the provider-native conversation identifier when available.
Sourcepub fn persisted_instruction_conversation_id(&self) -> Option<&str>
pub fn persisted_instruction_conversation_id(&self) -> Option<&str>
Returns the conversation identifier that received the instruction bootstrap when available.
Trait Implementations§
Source§impl Clone for TurnContinuation
impl Clone for TurnContinuation
Source§fn clone(&self) -> TurnContinuation
fn clone(&self) -> TurnContinuation
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for TurnContinuation
impl !UnwindSafe for TurnContinuation
impl Freeze for TurnContinuation
impl Send for TurnContinuation
impl Sync for TurnContinuation
impl Unpin for TurnContinuation
impl UnsafeUnpin for TurnContinuation
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> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.