Struct Agent RunResult

View as Markdown

Generated from cargo doc --no-deps -p nemo-fabric-core.

pub struct AgentRunResult {
    pub status: AgentRunStatus,
    pub output: Value,
    pub error: Option<AgentRunError>,
    pub usage: Option<AgentUsage>,
    pub artifacts: Vec<AgentArtifact>,
    pub extensions: BTreeMap<String, Value>,
}

Southbound terminal result returned by an adapter target.

Fields

status: AgentRunStatus

Adapter-target completion status.

output: Value

Primary adapter-target output.

error: Option<AgentRunError>

Adapter error when the invocation did not succeed.

usage: Option<AgentUsage>

Normalized model usage when reported by the adapter target.

artifacts: Vec<AgentArtifact>

Artifacts produced by the adapter target.

extensions: BTreeMap<String, Value>

Adapter-owned result fields.

Implementations

impl AgentRunResult

impl AgentRunResult

validate

pub fn validate(&self) -> Result<(), AgentRunResultValidationError>

Validate terminal status, error, and artifact invariants.

Trait Implementations

impl Clone for AgentRunResult

impl Clone for AgentRunResult

clone

fn clone(&self) -> AgentRunResult

clone_from

fn clone_from(&mut self, source: &Self)

impl Debug for AgentRunResult

impl Debug for AgentRunResult

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<'de> Deserialize<'de> for AgentRunResult

impl<'de> Deserialize<'de> for AgentRunResult

deserialize

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,

impl JsonSchema for AgentRunResult

impl JsonSchema for AgentRunResult

schema_name

fn schema_name() -> Cow<'static, str>

schema_id

fn schema_id() -> Cow<'static, str>

json_schema

fn json_schema(generator: &mut SchemaGenerator) -> Schema

inline_schema

fn inline_schema() -> bool

impl PartialEq for AgentRunResult

impl PartialEq for AgentRunResult

eq

fn eq(&self, other: &AgentRunResult) -> bool

ne

fn ne(&self, other: &Rhs) -> bool

impl Serialize for AgentRunResult

impl Serialize for AgentRunResult

serialize

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
    __S: Serializer,

impl StructuralPartialEq for AgentRunResult

impl StructuralPartialEq for AgentRunResult