Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
ImageConfig
Defined in the agents module.
Rust AI Agent SDK
Configuration for image generation settings.
Fields
| Name | Type | Description |
|---|
style | String | Style of the generated image |
response_format | String | Response format (url or b64_json) |
timeout | u32 | Timeout in seconds |
size | Option<String> | Image size (e.g., “1024x1024”, “1792x1024”) |
quality | Option<String> | Image quality (standard or hd) |
api_base | Option<String> | API base URL |
api_key | Option<String> | API key |
Methods
new
Create a new ImageConfig
style
fn style(mut self, style: impl Into<String>) -> Self
Set the style
Parameters:
| Name | Type |
|---|
style | impl Into<String> |
size
fn size(mut self, size: impl Into<String>) -> Self
Set the size
Parameters:
| Name | Type |
|---|
size | impl Into<String> |
quality
fn quality(mut self, quality: impl Into<String>) -> Self
Set the quality
Parameters:
| Name | Type |
|---|
quality | impl Into<String> |
Source
View on GitHub
praisonai/src/agents/mod.rs at line 230