pub struct ProfilePictureConfig {
pub image_model: Option<ImageModelConfig>,
pub fallback: ProfilePictureFallback,
}Expand description
#132 PR-1: profile-picture rendering settings for spawned child
bots. image_model is opt-in for AI-generated avatars; fallback
names the rendering used when image_model is absent OR generation
fails OR the API key is missing. Q3 (owner-ratified, tg 3445):
initials-in-colored-circle, no embedded emoji-font binary growth.
Fields§
§image_model: Option<ImageModelConfig>AI image-generation config. When set + API key resolves, the
wizard generates a square 512×512 image seeded from the agent’s
name + role and applies it via Bot API setProfilePhoto. Any
failure path (missing API key, generation error, upload error)
falls through to fallback.
fallback: ProfilePictureFallbackFallback rendering when image_model is absent or fails. v1
has one variant (Initials); the field is explicit so future
variants (per-agent override, None-to-skip) slot in
additively without breaking existing YAML.
Trait Implementations§
Source§impl Clone for ProfilePictureConfig
impl Clone for ProfilePictureConfig
Source§fn clone(&self) -> ProfilePictureConfig
fn clone(&self) -> ProfilePictureConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more