pub struct TextTurnResult {
pub thread: ThreadStartResponse,
pub turn: TurnStartResponse,
pub events: EventCollector,
}Expand description
Result of a one-shot text turn.
The raw thread and turn responses are kept alongside the collected turn
events so callers can inspect IDs, model details, diffs, and errors without
re-querying the app-server.
Fields§
§thread: ThreadStartResponse§turn: TurnStartResponse§events: EventCollectorImplementations§
Source§impl TextTurnResult
impl TextTurnResult
Sourcepub fn agent_message(&self) -> &str
pub fn agent_message(&self) -> &str
Returns the concatenated assistant text deltas observed for the turn.
Sourcepub fn latest_diff(&self) -> Option<&str>
pub fn latest_diff(&self) -> Option<&str>
Returns the latest unified diff observed for the turn, if any.
Trait Implementations§
Source§impl Clone for TextTurnResult
impl Clone for TextTurnResult
Source§fn clone(&self) -> TextTurnResult
fn clone(&self) -> TextTurnResult
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 moreSource§impl Debug for TextTurnResult
impl Debug for TextTurnResult
Source§impl From<TextTurnResult> for RestTextTurnResponse
impl From<TextTurnResult> for RestTextTurnResponse
Source§fn from(result: TextTurnResult) -> Self
fn from(result: TextTurnResult) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TextTurnResult
impl RefUnwindSafe for TextTurnResult
impl Send for TextTurnResult
impl Sync for TextTurnResult
impl Unpin for TextTurnResult
impl UnsafeUnpin for TextTurnResult
impl UnwindSafe for TextTurnResult
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