Image Agent • Rust AI Agent SDK
ImageAgent: A specialized agent for generating images using AI models.
ImageAgent
Defined in the agents module.
Rust AI Agent SDK
A specialized agent for generating images using AI models.
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph LR
input["Input Data"] --> agent["Agent: ImageAgent"]
agent --> output["Output Result"]
style agent fill:#8B0000,color:#fff
style input fill:#8B0000,color:#fff
style output fill:#8B0000,color:#fffFields
| Name | Type | Description |
|---|---|---|
name | String | Agent name |
model | String | LLM model (e.g., “dall-e-3”, “dall-e-2”) |
config | ImageConfig | Image configuration |
verbose | bool | Verbose output |
Methods
new
fn new() -> ImageAgentBuilderCreate a new ImageAgent builder
name
fn name(&self) -> &strGet agent name
generate
fn generate(&self, prompt: &str) -> Result<ImageResult>Generate an image from a prompt (placeholder)
Parameters:
| Name | Type |
|---|---|
prompt | &str |
Source
View on GitHubpraisonai/src/agents/mod.rs at line 288