pub enum AgentStepResult {
Finished(AgentRunner<Finished>),
RequiresTool(AgentRunner<AwaitingToolCall>),
}Expand description
Result of an inference step — either finished or needs tools.
Variants§
Finished(AgentRunner<Finished>)
Agent produced a final response.
RequiresTool(AgentRunner<AwaitingToolCall>)
Agent requested tool calls that need to be executed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AgentStepResult
impl RefUnwindSafe for AgentStepResult
impl Send for AgentStepResult
impl Sync for AgentStepResult
impl Unpin for AgentStepResult
impl UnsafeUnpin for AgentStepResult
impl UnwindSafe for AgentStepResult
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