pub struct ChildAgentReference { /* private fields */ }Expand description
Exact Agent definition pin, including instructions, tools, model and limits.
Identity alone cannot detect different definitions published under the same owner/name/version. This domain-separated digest includes the complete canonical descriptor, without copying its private content into the parent.
Implementations§
Source§impl ChildAgentReference
impl ChildAgentReference
Sourcepub fn from_descriptor(
descriptor: &AgentDescriptor,
) -> Result<Self, ChildRunPolicyError>
pub fn from_descriptor( descriptor: &AgentDescriptor, ) -> Result<Self, ChildRunPolicyError>
Pins a complete trusted descriptor using strict interoperable JSON.
Sourcepub const fn identity(&self) -> &CapabilityIdentity
pub const fn identity(&self) -> &CapabilityIdentity
Returns the exact owner-qualified Agent version.
Sourcepub const fn definition_digest(&self) -> Digest
pub const fn definition_digest(&self) -> Digest
Returns the complete descriptor fingerprint, not an authorization grant.
Trait Implementations§
Source§impl Clone for ChildAgentReference
impl Clone for ChildAgentReference
Source§impl Debug for ChildAgentReference
impl Debug for ChildAgentReference
Source§impl<'de> Deserialize<'de> for ChildAgentReference
impl<'de> Deserialize<'de> for ChildAgentReference
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
impl Eq for ChildAgentReference
Source§impl JsonSchema for ChildAgentReference
impl JsonSchema for ChildAgentReference
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ChildAgentReference
impl PartialEq for ChildAgentReference
Source§impl Serialize for ChildAgentReference
impl Serialize for ChildAgentReference
impl StructuralPartialEq for ChildAgentReference
Auto Trait Implementations§
impl Forget for ChildAgentReference
impl Freeze for ChildAgentReference
impl Move for ChildAgentReference
impl RefUnwindSafe for ChildAgentReference
impl Send for ChildAgentReference
impl Sync for ChildAgentReference
impl Unpin for ChildAgentReference
impl UnsafeUnpin for ChildAgentReference
impl UnwindSafe for ChildAgentReference
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