Skip to main content

sparrow_core/
identity.rs

1//! Agent identity — the name/role/personality an agent runs under. A trivial
2//! foundational type shared by the engine and the memory layer; it lives in
3//! `sparrow-core` so neither has to depend on the other just to name an agent.
4
5#[derive(Debug, Clone)]
6pub struct Identity {
7    pub name: String,
8    pub role: String,
9    pub personality: String,
10}
11
12impl Default for Identity {
13    fn default() -> Self {
14        Self {
15            name: "sparrow".into(),
16            role: "software engineer".into(),
17            personality: "concise, competent, helpful".into(),
18        }
19    }
20}