pub enum AgentRunStep {
CallModel {
prompt: Message,
history: Vec<Message>,
turn: usize,
},
CallTools {
calls: Vec<PendingToolCall>,
},
Done(PromptResponse),
}Expand description
What a driver must do next to advance an AgentRun.
Deliberately exhaustive: a driver must handle every step, so adding a variant is a breaking change by design.
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§fn clone(&self) -> AgentRunStep
fn clone(&self) -> AgentRunStep
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 moreAuto 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