pub struct AssistantTurn {
pub message_id: String,
pub agent: String,
pub content: String,
pub tool_calls: Vec<ToolCall>,
}Expand description
One assistant turn parsed from an opencode transcript.
Pure data — no IO concerns. Produced by
smos::opencode::transcript::parse_transcript and consumed by
ImportOpencodeSession::execute.
Fields§
§message_id: String§agent: String§content: String§tool_calls: Vec<ToolCall>Trait Implementations§
Source§impl Clone for AssistantTurn
impl Clone for AssistantTurn
Source§fn clone(&self) -> AssistantTurn
fn clone(&self) -> AssistantTurn
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 AssistantTurn
impl Debug for AssistantTurn
Source§impl PartialEq for AssistantTurn
impl PartialEq for AssistantTurn
Source§fn eq(&self, other: &AssistantTurn) -> bool
fn eq(&self, other: &AssistantTurn) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AssistantTurn
Auto Trait Implementations§
impl Freeze for AssistantTurn
impl RefUnwindSafe for AssistantTurn
impl Send for AssistantTurn
impl Sync for AssistantTurn
impl Unpin for AssistantTurn
impl UnsafeUnpin for AssistantTurn
impl UnwindSafe for AssistantTurn
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