Image Agent Builder • Rust AI Agent SDK
ImageAgentBuilder: Builder for ImageAgent
ImageAgentBuilder
Defined in the agents module.
Rust AI Agent SDK
Builder for ImageAgent
Fields
| Name | Type | Description |
|---|---|---|
name | Option<String> | – |
model | Option<String> | – |
config | ImageConfig | – |
verbose | bool | – |
Methods
name
fn name(mut self, name: impl Into<String>) -> SelfSet the agent name
Parameters:
| Name | Type |
|---|---|
name | impl Into<String> |
model
fn model(mut self, model: impl Into<String>) -> SelfSet the model
Parameters:
| Name | Type |
|---|---|
model | impl Into<String> |
config
fn config(mut self, config: ImageConfig) -> SelfSet the config
Parameters:
| Name | Type |
|---|---|
config | ImageConfig |
verbose
fn verbose(mut self, verbose: bool) -> SelfSet verbose mode
Parameters:
| Name | Type |
|---|---|
verbose | bool |
build
fn build(self) -> Result<ImageAgent>Build the ImageAgent
Source
View on GitHubpraisonai/src/agents/mod.rs at line 344