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 moreSource§impl Debug for ProfilePictureConfig
impl Debug for ProfilePictureConfig
Source§impl Default for ProfilePictureConfig
impl Default for ProfilePictureConfig
Source§fn default() -> ProfilePictureConfig
fn default() -> ProfilePictureConfig
Source§impl<'de> Deserialize<'de> for ProfilePictureConfig
impl<'de> Deserialize<'de> for ProfilePictureConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for ProfilePictureConfig
impl JsonSchema for ProfilePictureConfig
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more