pub struct ModelTranscriptTurn { /* private fields */ }Expand description
One completed model tool-call turn and its complete durable outcomes.
Implementations§
Source§impl ModelTranscriptTurn
impl ModelTranscriptTurn
Sourcepub fn new<I>(
response: ModelResponse,
outcomes: I,
) -> Result<Self, ModelTranscriptTurnError>where
I: IntoIterator<Item = ModelToolOutcome>,
pub fn new<I>(
response: ModelResponse,
outcomes: I,
) -> Result<Self, ModelTranscriptTurnError>where
I: IntoIterator<Item = ModelToolOutcome>,
Binds every provider call to exactly one durable tool outcome in model order.
§Errors
Rejects missing replay data, missing or substituted provider call IDs, tool identity drift, duplicate invocation IDs, and ambiguous external write outcomes that require reconciliation rather than model continuation.
Sourcepub const fn response(&self) -> &ModelResponse
pub const fn response(&self) -> &ModelResponse
Returns the complete normalized preceding response.
Sourcepub const fn outcomes(&self) -> &[ModelToolOutcome]
pub const fn outcomes(&self) -> &[ModelToolOutcome]
Returns complete tool outcomes in proposal order.
Trait Implementations§
Source§impl Clone for ModelTranscriptTurn
impl Clone for ModelTranscriptTurn
Source§impl Debug for ModelTranscriptTurn
impl Debug for ModelTranscriptTurn
Source§impl<'de> Deserialize<'de> for ModelTranscriptTurn
impl<'de> Deserialize<'de> for ModelTranscriptTurn
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
impl Eq for ModelTranscriptTurn
Source§impl JsonSchema for ModelTranscriptTurn
impl JsonSchema for ModelTranscriptTurn
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ModelTranscriptTurn
impl PartialEq for ModelTranscriptTurn
Source§impl Serialize for ModelTranscriptTurn
impl Serialize for ModelTranscriptTurn
impl StructuralPartialEq for ModelTranscriptTurn
Auto Trait Implementations§
impl Forget for ModelTranscriptTurn
impl Freeze for ModelTranscriptTurn
impl Move for ModelTranscriptTurn
impl RefUnwindSafe for ModelTranscriptTurn
impl Send for ModelTranscriptTurn
impl Sync for ModelTranscriptTurn
impl Unpin for ModelTranscriptTurn
impl UnsafeUnpin for ModelTranscriptTurn
impl UnwindSafe for ModelTranscriptTurn
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