AgentBuilder
Defined in the Agent Builder module.Rust AI Agent SDK Builder for creating agents
Fields
| Name | Type | Description |
|---|---|---|
name | Option<String> | - |
instructions | Option<String> | - |
llm_config | LlmConfig | - |
tools | Vec<Box<dyn Tool>> | - |
memory_config | MemoryConfig | - |
config | AgentConfig | - |
Methods
new
name
| Name | Type |
|---|---|
name | impl Into<String> |
instructions
| Name | Type |
|---|---|
instructions | impl Into<String> |
model
| Name | Type |
|---|---|
model | impl Into<String> |
llm
| Name | Type |
|---|---|
model | impl Into<String> |
api_key
| Name | Type |
|---|---|
key | impl Into<String> |
base_url
| Name | Type |
|---|---|
url | impl Into<String> |
temperature
| Name | Type |
|---|---|
temp | f32 |
max_tokens
| Name | Type |
|---|---|
max | u32 |
tool
| Name | Type |
|---|---|
tool | impl Tool + 'static |
tools
| Name | Type |
|---|---|
tools | impl IntoIterator<Item |
memory
| Name | Type |
|---|---|
enabled | bool |
memory_config
| Name | Type |
|---|---|
config | MemoryConfig |
max_iterations
| Name | Type |
|---|---|
max | usize |
verbose
| Name | Type |
|---|---|
enabled | bool |
stream
| Name | Type |
|---|---|
enabled | bool |

