pub struct AgentNode {
pub id: String,
pub agent_hash: String,
pub name: Option<String>,
pub input_schema: Option<Value>,
pub output_schema: Option<Value>,
}Expand description
An agent node: a full agent loop referenced by content hash.
Fields§
§id: StringThe node’s stable id, unique within the document.
agent_hash: StringContent hash of the agent definition (model, prompt, tools, budget) this
node runs, in sha256:<64 lowercase hex> form. A hash, never an
embedded definition: that keeps this crate independent of the
agent-definition schema and lets the same definition be shared across
nodes and runs by identity.
name: Option<String>Optional short display label for this node. See the module docs’ “The
optional node display name” section for the bound and the deliberate
hash-inclusion contrast with the agent name field. Additive: absent
on the wire when unset.
input_schema: Option<Value>Optional JSON Schema for the payload this node consumes. Additive: absent on the wire when unset.
output_schema: Option<Value>Optional JSON Schema for the payload this node produces.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentNode
impl<'de> Deserialize<'de> for AgentNode
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>,
Source§impl JsonSchema for AgentNode
impl JsonSchema for AgentNode
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