pub struct ToolkitPackBundle {
pub snapshot: ToolPackSnapshot,
pub sidecar: PackageSidecarSnapshot,
pub capabilities: Vec<CapabilitySpec>,
pub routes: Vec<ToolRoute>,
}Expand description
Toolkit pack toolkit pack bundle value. Use it to assemble exported tool-pack configuration; installation or activation effects are documented by the bundle executor.
Fields§
§snapshot: ToolPackSnapshotSnapshot used by this record or request.
sidecar: PackageSidecarSnapshotSidecar used by this record or request.
capabilities: Vec<CapabilitySpec>Capabilities frozen into the package or returned by an adapter health check.
routes: Vec<ToolRoute>Collection of routes values. Ordering and membership should be treated as part of the serialized contract when relevant.
Implementations§
Source§impl ToolkitPackBundle
impl ToolkitPackBundle
Sourcepub fn from_snapshot(snapshot: ToolPackSnapshot) -> Result<Self, AgentError>
pub fn from_snapshot(snapshot: ToolPackSnapshot) -> Result<Self, AgentError>
Constructs this value from snapshot. Use it when adapting canonical SDK records without introducing a second behavior path.
Sourcepub fn install_into(
&self,
builder: RuntimePackageBuilder,
) -> RuntimePackageBuilder
pub fn install_into( &self, builder: RuntimePackageBuilder, ) -> RuntimePackageBuilder
Install into. This updates the provided RuntimePackageBuilder with bundle routes and sidecars; it does not activate tools by itself.
Trait Implementations§
Source§impl Clone for ToolkitPackBundle
impl Clone for ToolkitPackBundle
Source§fn clone(&self) -> ToolkitPackBundle
fn clone(&self) -> ToolkitPackBundle
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 ToolkitPackBundle
impl RefUnwindSafe for ToolkitPackBundle
impl Send for ToolkitPackBundle
impl Sync for ToolkitPackBundle
impl Unpin for ToolkitPackBundle
impl UnsafeUnpin for ToolkitPackBundle
impl UnwindSafe for ToolkitPackBundle
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