pub struct ToolCallDecoration {
pub tool_id: String,
pub signature: Option<String>,
pub additional_params: Option<Value>,
}Expand description
Decoration a provider attaches to a streamed tool call that is still assembling, matched by its established provider id (e.g. OpenRouter encrypted reasoning details). Carried onto the completed call by the adapter’s end event.
Fields§
§tool_id: StringEstablished provider id of the call to decorate.
signature: Option<String>Provider signature to attach to the completed call.
additional_params: Option<Value>Provider-specific metadata to attach to the completed call.
Trait Implementations§
Source§impl Clone for ToolCallDecoration
impl Clone for ToolCallDecoration
Source§fn clone(&self) -> ToolCallDecoration
fn clone(&self) -> ToolCallDecoration
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 ToolCallDecoration
impl RefUnwindSafe for ToolCallDecoration
impl Send for ToolCallDecoration
impl Sync for ToolCallDecoration
impl Unpin for ToolCallDecoration
impl UnsafeUnpin for ToolCallDecoration
impl UnwindSafe for ToolCallDecoration
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