pub enum AgentRunStep {
CallModel {
prompt: Arc<Message>,
history: Vec<Arc<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. Emitted again for the same attempt
after a restart; see AgentRun::next_step for what a re-issue
requires of the driver.
Fields
CallTools
Execute these tool calls and feed each answer back via
AgentRun::answer (or several at once via AgentRun::answer_all).
Fields
§
calls: Vec<PendingToolCall>The current assistant turn’s unanswered tool calls, 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 Forget for AgentRunStep
impl Freeze for AgentRunStep
impl Move 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.