pub struct ServiceSideCapabilityRegistry { /* private fields */ }Implementations§
Source§impl ServiceSideCapabilityRegistry
impl ServiceSideCapabilityRegistry
pub fn new() -> Self
pub fn register_input_resolver<R>(
&mut self,
resolver: R,
) -> ServiceSideResult<()>where
R: ServiceSideInputResolver + 'static,
pub fn register_tool<T>(&mut self, tool: T) -> ServiceSideResult<()>where
T: ServiceSideTool + 'static,
Sourcepub fn inject_tools(&self, request: &mut UniversalRequest) -> usize
pub fn inject_tools(&self, request: &mut UniversalRequest) -> usize
Inject every registered host tool into the request, preserving any client declaration with the same name as the request owner.
pub async fn resolve_inputs( &self, request: &mut UniversalRequest, ) -> ServiceSideResult<ServiceSideResolutionReport>
pub async fn execute_tool_calls( &self, response: &UniversalResponse, ) -> ServiceSideResult<ServiceSideToolExecution>
Trait Implementations§
Source§impl Default for ServiceSideCapabilityRegistry
impl Default for ServiceSideCapabilityRegistry
Source§fn default() -> ServiceSideCapabilityRegistry
fn default() -> ServiceSideCapabilityRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ServiceSideCapabilityRegistry
impl !UnwindSafe for ServiceSideCapabilityRegistry
impl Freeze for ServiceSideCapabilityRegistry
impl Send for ServiceSideCapabilityRegistry
impl Sync for ServiceSideCapabilityRegistry
impl Unpin for ServiceSideCapabilityRegistry
impl UnsafeUnpin for ServiceSideCapabilityRegistry
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