Skip to main content

TaskOutput

Defined in the task module.
Rust AI Agent SDK Task output containing the result of task execution

Fields

Methods

new

Create a new task output Parameters:

with_json

Set JSON output Parameters:

with_agent

Set agent name Parameters:

with_duration

Set duration Parameters:

with_tokens

Set token usage Parameters:

with_metadata

Add metadata Parameters:

as_str

Get raw output as string

parse_json

Try to parse raw output as JSON

Source

View on GitHub

praisonai/src/task/mod.rs at line 28

Rust Tasks

Rust Execution

Rust Output

Rust Structured Output

Rust Display