Skip to main content

ImageAgentBuilder

Defined in the agents module.
Rust AI Agent SDK Builder for ImageAgent

Fields

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

Methods

name

fn name(mut self, name: impl Into<String>) -> Self
Set the agent name Parameters:
NameType
nameimpl Into&lt;String&gt;

model

fn model(mut self, model: impl Into<String>) -> Self
Set the model Parameters:
NameType
modelimpl Into&lt;String&gt;

config

fn config(mut self, config: ImageConfig) -> Self
Set the config Parameters:
NameType
configImageConfig

verbose

fn verbose(mut self, verbose: bool) -> Self
Set verbose mode Parameters:
NameType
verbosebool

build

fn build(self) -> Result<ImageAgent>
Build the ImageAgent

Source

View on GitHub

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