TaskBuilder
Defined in the task module.Rust AI Agent SDK Builder for Task
Fields
| Name | Type | Description |
|---|---|---|
description | String | - |
name | Option<String> | - |
expected_output | String | - |
depends_on | Vec<String> | - |
next_tasks | Vec<String> | - |
condition | HashMap<String | - |
config | TaskConfig | - |
output_file | Option<String> | - |
output_variable | Option<String> | - |
variables | HashMap<String | - |
serde_json | :Value> | - |
task_type | TaskType | - |
is_start | bool | - |
Methods
new
| Name | Type |
|---|---|
description | impl Into<String> |
name
| Name | Type |
|---|---|
name | impl Into<String> |
expected_output
| Name | Type |
|---|---|
output | impl Into<String> |
depends_on
| Name | Type |
|---|---|
task | impl Into<String> |
next_task
| Name | Type |
|---|---|
task | impl Into<String> |
task_type
| Name | Type |
|---|---|
task_type | TaskType |
decision
loop_task
output_file
| Name | Type |
|---|---|
path | impl Into<String> |
output_variable
| Name | Type |
|---|---|
name | impl Into<String> |
variable
| Name | Type |
|---|---|
key | impl Into<String> |
value | serde_json::Value |
max_retries
| Name | Type |
|---|---|
retries | u32 |
on_error
| Name | Type |
|---|---|
behavior | OnError |
is_start
| Name | Type |
|---|---|
is_start | bool |
build
Source
View on GitHub
praisonai/src/task/mod.rs at line 319
