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.
Sourcepub fn into_parts(self) -> TurnContinuationParts
pub fn into_parts(self) -> TurnContinuationParts
Consumes continuation state for a runtime adapter.
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