pub struct StaticCapabilityBundle { /* private fields */ }Expand description
Static capability bundle for reusable runtime composition.
Implementations§
Source§impl StaticCapabilityBundle
impl StaticCapabilityBundle
Sourcepub fn with_spec(self, spec: CapabilitySpec) -> Self
pub fn with_spec(self, spec: CapabilitySpec) -> Self
Set the bundle capability spec.
Sourcepub fn with_hook(self, hook: Arc<dyn AgentCapability>) -> Self
pub fn with_hook(self, hook: Arc<dyn AgentCapability>) -> Self
Add a capability hook.
Sourcepub fn with_stream_observer(self, observer: Arc<dyn AgentCapability>) -> Self
pub fn with_stream_observer(self, observer: Arc<dyn AgentCapability>) -> Self
Add a stream observer hook.
Sourcepub fn with_instruction(self, instruction: impl Into<String>) -> Self
pub fn with_instruction(self, instruction: impl Into<String>) -> Self
Add a static instruction.
Sourcepub fn with_dynamic_instruction(
self,
instruction: DynDynamicInstruction,
) -> Self
pub fn with_dynamic_instruction( self, instruction: DynDynamicInstruction, ) -> Self
Add a dynamic instruction.
Sourcepub fn with_toolset(self, toolset: &DynToolset) -> Self
pub fn with_toolset(self, toolset: &DynToolset) -> Self
Add one toolset.
Sourcepub fn with_model_settings(self, settings: ModelSettings) -> Self
pub fn with_model_settings(self, settings: ModelSettings) -> Self
Set model settings overlay.
Sourcepub fn with_request_params(self, params: ModelRequestParameters) -> Self
pub fn with_request_params(self, params: ModelRequestParameters) -> Self
Set request parameter overlay.
Sourcepub fn with_output_function(self, function: DynOutputFunction) -> Self
pub fn with_output_function(self, function: DynOutputFunction) -> Self
Add an output function.
Sourcepub fn with_output_validator(self, validator: Arc<dyn OutputValidator>) -> Self
pub fn with_output_validator(self, validator: Arc<dyn OutputValidator>) -> Self
Add an output validator.
Sourcepub const fn with_usage_limits(self, limits: UsageLimits) -> Self
pub const fn with_usage_limits(self, limits: UsageLimits) -> Self
Set usage limits overlay.
Trait Implementations§
Source§impl CapabilityBundle for StaticCapabilityBundle
impl CapabilityBundle for StaticCapabilityBundle
Source§fn spec(&self) -> CapabilitySpec
fn spec(&self) -> CapabilitySpec
Stable capability spec for bundle-level reconstruction evidence.
Source§fn stream_observers(&self) -> Vec<Arc<dyn AgentCapability>>
fn stream_observers(&self) -> Vec<Arc<dyn AgentCapability>>
Stream observer hooks contributed by this bundle.
Source§fn get_instructions(&self) -> Vec<String>
fn get_instructions(&self) -> Vec<String>
Static instructions contributed by this bundle.
Source§fn dynamic_instructions(&self) -> Vec<DynDynamicInstruction> ⓘ
fn dynamic_instructions(&self) -> Vec<DynDynamicInstruction> ⓘ
Dynamic instructions contributed by this bundle.
Source§fn get_tools(&self) -> Option<ToolRegistry>
fn get_tools(&self) -> Option<ToolRegistry>
Runtime tools and tool instructions contributed by this bundle.
Source§fn model_settings(&self) -> Option<ModelSettings>
fn model_settings(&self) -> Option<ModelSettings>
Model settings overlay contributed by this bundle.
Source§fn request_params(&self) -> Option<ModelRequestParameters>
fn request_params(&self) -> Option<ModelRequestParameters>
Request parameter overlay contributed by this bundle.
Source§fn output_functions(&self) -> Vec<DynOutputFunction> ⓘ
fn output_functions(&self) -> Vec<DynOutputFunction> ⓘ
Output functions contributed by this bundle.
Source§fn output_validators(&self) -> Vec<Arc<dyn OutputValidator>>
fn output_validators(&self) -> Vec<Arc<dyn OutputValidator>>
Output validators contributed by this bundle.
Source§fn usage_limits(&self) -> Option<UsageLimits>
fn usage_limits(&self) -> Option<UsageLimits>
Usage limits contributed by this bundle.
Source§impl Clone for StaticCapabilityBundle
impl Clone for StaticCapabilityBundle
Source§fn clone(&self) -> StaticCapabilityBundle
fn clone(&self) -> StaticCapabilityBundle
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 moreSource§impl Default for StaticCapabilityBundle
impl Default for StaticCapabilityBundle
Source§fn default() -> StaticCapabilityBundle
fn default() -> StaticCapabilityBundle
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for StaticCapabilityBundle
impl !UnwindSafe for StaticCapabilityBundle
impl Freeze for StaticCapabilityBundle
impl Send for StaticCapabilityBundle
impl Sync for StaticCapabilityBundle
impl Unpin for StaticCapabilityBundle
impl UnsafeUnpin for StaticCapabilityBundle
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