pub enum StreamedResolution {
Repaired {
tool_name: String,
},
TurnAbandoned {
skipped_tool_result: Option<ToolResult>,
},
Ignored,
}Expand description
Resolution a driver must apply to a mid-stream invalid tool call.
Variants§
Repaired
The tool name was repaired. Apply it via
StreamedTurnAssembler::resolve_pending_invalid and keep consuming
the provider stream.
TurnAbandoned
The turn was rolled back (retry) or the call skipped; corrective
messages are already in the history. Finish the provider stream for
usage, record the completion call, then call
AgentRun::next_step.
Fields
§
skipped_tool_result: Option<ToolResult>For a skipped call, the synthetic tool result to surface to the consumer stream.
Ignored
The invalid call is dropped and the turn goes on without it: the
runner’s UnhandledInvalidToolCall::Ignore on the streaming
surface. Apply it via
StreamedTurnAssembler::resolve_pending_invalid and keep consuming
the provider stream; nothing of the call enters the run.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamedResolution
impl RefUnwindSafe for StreamedResolution
impl Send for StreamedResolution
impl Sync for StreamedResolution
impl Unpin for StreamedResolution
impl UnsafeUnpin for StreamedResolution
impl UnwindSafe for StreamedResolution
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