pub struct ChildRunDeclaration { /* private fields */ }Expand description
One node-owned, named delegation slot with pinned Agent and graph contracts.
Implementations§
Source§impl ChildRunDeclaration
impl ChildRunDeclaration
Sourcepub fn new(
node_id: NodeId,
slot: ChildRunSlot,
agent: &AgentDescriptor,
graph: &CompiledGraph,
) -> Result<Self, ChildRunPolicyError>
pub fn new( node_id: NodeId, slot: ChildRunSlot, agent: &AgentDescriptor, graph: &CompiledGraph, ) -> Result<Self, ChildRunPolicyError>
Declares exactly one target. Schema pins must match its compiled graph.
Sourcepub const fn slot(&self) -> &ChildRunSlot
pub const fn slot(&self) -> &ChildRunSlot
Returns the stable, case-sensitive slot identity.
Sourcepub const fn agent(&self) -> &ChildAgentReference
pub const fn agent(&self) -> &ChildAgentReference
Returns the complete Agent definition pin.
Sourcepub const fn graph(&self) -> &GraphReference
pub const fn graph(&self) -> &GraphReference
Returns the exact independently executable child graph.
Sourcepub const fn input_schema(&self) -> &SchemaReference
pub const fn input_schema(&self) -> &SchemaReference
Returns the pinned child input schema.
Sourcepub const fn output_schema(&self) -> &SchemaReference
pub const fn output_schema(&self) -> &SchemaReference
Returns the pinned child terminal output schema.
Sourcepub fn validate_target(
&self,
target: &CompiledGraph,
limits: ChildRunTopologyLimits,
) -> Result<(), ChildRunPolicyError>
pub fn validate_target( &self, target: &CompiledGraph, limits: ChildRunTopologyLimits, ) -> Result<(), ChildRunPolicyError>
Validates a locally resolved graph and strictly decreasing depth.
Depth counts edges below this Run (a leaf has depth zero). Every target must fit the parent’s declared remaining depth. This excludes recursive deployment cycles; it does not count live descendants or reserve budget.
Trait Implementations§
Source§impl Clone for ChildRunDeclaration
impl Clone for ChildRunDeclaration
Source§impl Debug for ChildRunDeclaration
impl Debug for ChildRunDeclaration
Source§impl<'de> Deserialize<'de> for ChildRunDeclaration
impl<'de> Deserialize<'de> for ChildRunDeclaration
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 ChildRunDeclaration
Source§impl JsonSchema for ChildRunDeclaration
impl JsonSchema for ChildRunDeclaration
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 ChildRunDeclaration
impl PartialEq for ChildRunDeclaration
Source§impl Serialize for ChildRunDeclaration
impl Serialize for ChildRunDeclaration
impl StructuralPartialEq for ChildRunDeclaration
Auto Trait Implementations§
impl Forget for ChildRunDeclaration
impl Freeze for ChildRunDeclaration
impl Move for ChildRunDeclaration
impl RefUnwindSafe for ChildRunDeclaration
impl Send for ChildRunDeclaration
impl Sync for ChildRunDeclaration
impl Unpin for ChildRunDeclaration
impl UnsafeUnpin for ChildRunDeclaration
impl UnwindSafe for ChildRunDeclaration
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