Skip to main content

Task

Defined in the task module.
Rust AI Agent SDK A unit of work that can be executed by an Agent

Fields

Methods

new

Create a new task with description Parameters:

id

Get task ID

display_name

Get task name or description

is_completed

Check if task is completed

is_failed

Check if task failed

can_retry

Check if task can be retried

increment_retry

Increment retry count

set_result

Set task result Parameters:

set_failed

Set task as failed Parameters:

result_str

Get result as string

substitute_variables

Substitute variables in description Parameters:

Source

View on GitHub

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

Rust Tasks

Rust Execution