Image Agent Builder • Rust AI Agent SDK

ImageAgentBuilder: Builder for ImageAgent

ImageAgentBuilder

Defined in the agents module.

Rust AI Agent SDK

Builder for ImageAgent

Diagram

Input Data

Agent: ImageAgentBuilder

Output Result

Fields

NameTypeDescription
nameOption<String>–
modelOption<String>–
configImageConfig–
verbosebool–

Methods

name

rust
fn name(mut self, name: impl Into<String>) -> Self

Set the agent name

Parameters:

NameType
nameimpl Into&lt;String&gt;

model

rust
fn model(mut self, model: impl Into<String>) -> Self

Set the model

Parameters:

NameType
modelimpl Into&lt;String&gt;

config

rust
fn config(mut self, config: ImageConfig) -> Self

Set the config

Parameters:

NameType
configImageConfig

verbose

rust
fn verbose(mut self, verbose: bool) -> Self

Set verbose mode

Parameters:

NameType
verbosebool

build

rust
fn build(self) -> Result<ImageAgent>

Build the ImageAgent

Source

View on GitHub

praisonai/src/agents/mod.rs at line 344


Related Documentation