pub enum AgentRunStep {
CallModel {
prompt: Message,
history: Vec<Message>,
turn: usize,
},
CallTools {
calls: Vec<PendingToolCall>,
},
Done(PromptResponse),
}Expand description
Required driver action to advance an AgentRun.
Variants§
CallModel
Send a completion request to the model and feed the result back via
AgentRun::model_response.
Fields
CallTools
Execute these tool calls and feed the results back via
AgentRun::tool_results.
Fields
§
calls: Vec<PendingToolCall>The tool calls of the current assistant turn, in emission order.
Done(PromptResponse)
The run is complete.
Trait Implementations§
Source§impl Clone for AgentRunStep
impl Clone for AgentRunStep
Source§impl Debug for AgentRunStep
impl Debug for AgentRunStep
Source§impl<'de> Deserialize<'de> for AgentRunStep
impl<'de> Deserialize<'de> for AgentRunStep
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
Auto Trait Implementations§
impl Freeze for AgentRunStep
impl RefUnwindSafe for AgentRunStep
impl Send for AgentRunStep
impl Sync for AgentRunStep
impl Unpin for AgentRunStep
impl UnsafeUnpin for AgentRunStep
impl UnwindSafe for AgentRunStep
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
Source§fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
Convert this value without routing structured data through a string.