pub enum AssistantTurn {
Text(String),
Calls(Vec<ToolCall>),
Both {
text: String,
calls: Vec<ToolCall>,
},
}Expand description
Was das Modell als Antwort geliefert hat.
Variants§
Text(String)
Calls(Vec<ToolCall>)
Modell will Werkzeuge ausführen — der Loop ruft sie auf und antwortet mit Role::Tool.
Both
Manche Modelle mischen beides (Kommentar + Calls).
Implementations§
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