pub enum StreamedResolution {
Repaired {
tool_name: String,
},
TurnAbandoned,
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, the skip’s tool results among them, are already in the
history, where project reads them. Finish the
provider stream for usage, record the completion call, then call
AgentRun::next_step.
Ignored
The invalid call is dropped and the turn goes on without it: the
run’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 Forget for StreamedResolution
impl Freeze for StreamedResolution
impl Move 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