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
style
| Name | Type |
|---|---|
style | impl Into<String> |
size
| Name | Type |
|---|---|
size | impl Into<String> |
quality
| Name | Type |
|---|---|
quality | impl Into<String> |
Source
View on GitHub
praisonai/src/agents/mod.rs at line 230
