pub struct ToolSurfacing {
pub deferred: Vec<ToolSpec>,
pub loads: Vec<ToolLoad>,
}Expand description
Deferred tools as a provider that can surface tools mid-conversation
sends them, so loading one never changes the request’s tool block (and
with it the whole cached prefix). Providers without that ignore it:
ModelRequest::tools already holds every tool the model may call.
Fields§
§deferred: Vec<ToolSpec>Every deferred tool not loaded when the run segment started, name-sorted: declared hidden on every call of the segment.
loads: Vec<ToolLoad>Those loaded since, in load order.
Trait Implementations§
Source§impl Clone for ToolSurfacing
impl Clone for ToolSurfacing
Source§impl Debug for ToolSurfacing
impl Debug for ToolSurfacing
Source§impl Default for ToolSurfacing
impl Default for ToolSurfacing
Source§impl<'de> Deserialize<'de> for ToolSurfacing
impl<'de> Deserialize<'de> for ToolSurfacing
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ToolSurfacing
impl PartialEq for ToolSurfacing
Source§impl Serialize for ToolSurfacing
impl Serialize for ToolSurfacing
impl StructuralPartialEq for ToolSurfacing
Auto Trait Implementations§
impl Forget for ToolSurfacing
impl Freeze for ToolSurfacing
impl Move for ToolSurfacing
impl RefUnwindSafe for ToolSurfacing
impl Send for ToolSurfacing
impl Sync for ToolSurfacing
impl Unpin for ToolSurfacing
impl UnsafeUnpin for ToolSurfacing
impl UnwindSafe for ToolSurfacing
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