pub enum CompletionAction {
Done(FinalResponse),
ExecuteToolCall {
tool_name: String,
tool_args: Value,
tool_call_id: ToolCallId,
call_id: Option<ProviderCallId>,
display_as: Option<String>,
},
}Expand description
What the model wants to do after a completion stream finishes.
Variants§
Done(FinalResponse)
Model produced text and is done (no tool call).
ExecuteToolCall
Model wants to execute a tool call. Under the RAP protocol tools are fire-and-forget: the agent loop stops after dispatching the call and the result arrives as a new input message later.
Auto Trait Implementations§
impl Freeze for CompletionAction
impl RefUnwindSafe for CompletionAction
impl Send for CompletionAction
impl Sync for CompletionAction
impl Unpin for CompletionAction
impl UnsafeUnpin for CompletionAction
impl UnwindSafe for CompletionAction
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