pub struct AgentDescriptor { /* private fields */ }Expand description
Immutable, registry-resolved definition of one typed agent version.
This value is a definition snapshot, not a mutable runtime object. The durable runtime compiles it onto journaled graph semantics and records model attempts, tool invocations, approvals, and checkpoints independently.
Implementations§
Source§impl AgentDescriptor
impl AgentDescriptor
Sourcepub const FINAL_OUTPUT_TOOL_NAME: &'static str = "stateknot_final_output"
pub const FINAL_OUTPUT_TOOL_NAME: &'static str = "stateknot_final_output"
Framework-owned model-visible name used by tool-call structured output.
Sourcepub fn new(
metadata: CapabilityMetadata,
input_schema: SchemaReference,
output_schema: SchemaReference,
model: ModelDescriptor,
instructions: AgentInstructions,
tools: AgentTools,
execution: AgentExecutionConfig,
budget_limits: BudgetLimits,
) -> Result<Self, AgentDescriptorError>
pub fn new( metadata: CapabilityMetadata, input_schema: SchemaReference, output_schema: SchemaReference, model: ModelDescriptor, instructions: AgentInstructions, tools: AgentTools, execution: AgentExecutionConfig, budget_limits: BudgetLimits, ) -> Result<Self, AgentDescriptorError>
Constructs and validates one executable agent definition snapshot.
Schema documents and provider compatibility profiles must additionally be resolved and validated by the trusted local registry before this descriptor becomes selectable.
§Errors
Returns AgentDescriptorError for invalid classification, retired
model binding, incoherent ordinary-tool controls, reserved-name
shadowing, or a model capability mismatch.
Sourcepub const fn metadata(&self) -> &CapabilityMetadata
pub const fn metadata(&self) -> &CapabilityMetadata
Returns common identity, discovery, lifecycle, scope, and extension data.
Sourcepub const fn input_schema(&self) -> &SchemaReference
pub const fn input_schema(&self) -> &SchemaReference
Returns the immutable typed input schema identity.
Sourcepub const fn output_schema(&self) -> &SchemaReference
pub const fn output_schema(&self) -> &SchemaReference
Returns the immutable typed final-output schema identity.
Sourcepub const fn model(&self) -> &ModelDescriptor
pub const fn model(&self) -> &ModelDescriptor
Returns the exact resolved model binding snapshot.
Sourcepub const fn instructions(&self) -> &AgentInstructions
pub const fn instructions(&self) -> &AgentInstructions
Returns ordered trusted instructions.
Sourcepub const fn tools(&self) -> &AgentTools
pub const fn tools(&self) -> &AgentTools
Returns canonically ordered ordinary tools.
Sourcepub const fn execution(&self) -> &AgentExecutionConfig
pub const fn execution(&self) -> &AgentExecutionConfig
Returns finite deterministic loop controls.
Sourcepub const fn budget_limits(&self) -> &BudgetLimits
pub const fn budget_limits(&self) -> &BudgetLimits
Returns the optional agent-level run-budget layer.
Trait Implementations§
Source§impl Clone for AgentDescriptor
impl Clone for AgentDescriptor
Source§impl Debug for AgentDescriptor
impl Debug for AgentDescriptor
Source§impl<'de> Deserialize<'de> for AgentDescriptor
impl<'de> Deserialize<'de> for AgentDescriptor
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>,
impl Eq for AgentDescriptor
Source§impl JsonSchema for AgentDescriptor
impl JsonSchema for AgentDescriptor
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more