pub enum NativeStep {
ToolCalls(Vec<ToolOutput>),
Final(String),
}Expand description
What one native tool-calling turn did (see LoopRunner::step_response).
Variants§
ToolCalls(Vec<ToolOutput>)
The model called tools; here are their results, in call order. Send
them back to the model (see crate::native::tool_results_openai and
crate::native::tool_results_anthropic) and step again.
Final(String)
The model answered without calling a tool.
Trait Implementations§
Source§impl Clone for NativeStep
impl Clone for NativeStep
Source§impl Debug for NativeStep
impl Debug for NativeStep
Source§impl<'de> Deserialize<'de> for NativeStep
impl<'de> Deserialize<'de> for NativeStep
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 NativeStep
Source§impl PartialEq for NativeStep
impl PartialEq for NativeStep
Source§impl Serialize for NativeStep
impl Serialize for NativeStep
impl StructuralPartialEq for NativeStep
Auto Trait Implementations§
impl Freeze for NativeStep
impl RefUnwindSafe for NativeStep
impl Send for NativeStep
impl Sync for NativeStep
impl Unpin for NativeStep
impl UnsafeUnpin for NativeStep
impl UnwindSafe for NativeStep
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