pub struct BasicIdentity {
pub agent_id: AgentId,
pub soul: SoulProfile,
}Expand description
Basic identity provider for open-source usage (no crypto, no policy).
Fields§
§agent_id: AgentId§soul: SoulProfileImplementations§
Trait Implementations§
Source§impl AgentIdentityProvider for BasicIdentity
impl AgentIdentityProvider for BasicIdentity
Source§fn soul_profile(&self) -> &SoulProfile
fn soul_profile(&self) -> &SoulProfile
Agent’s soul profile (name, mission, preferences).
Source§fn sign_jwt(&self, _audience: &str, _ttl_secs: u64) -> Option<String>
fn sign_jwt(&self, _audience: &str, _ttl_secs: u64) -> Option<String>
Sign a JWT with the agent’s identity key. None if no crypto identity.
Source§fn capabilities(&self) -> &[String]
fn capabilities(&self) -> &[String]
List of granted capabilities. Empty = unrestricted.
Source§fn economic_mode(&self) -> &str
fn economic_mode(&self) -> &str
Current economic mode from belief state.
Source§fn policy_allows(&self, _action: &str) -> bool
fn policy_allows(&self, _action: &str) -> bool
Check if a specific action is allowed by the agent’s policy.
Source§fn persona_block(&self) -> String
fn persona_block(&self) -> String
Build a persona block for the system prompt.
Source§impl Clone for BasicIdentity
impl Clone for BasicIdentity
Source§fn clone(&self) -> BasicIdentity
fn clone(&self) -> BasicIdentity
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BasicIdentity
impl Debug for BasicIdentity
Source§impl Default for BasicIdentity
impl Default for BasicIdentity
Source§fn default() -> BasicIdentity
fn default() -> BasicIdentity
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BasicIdentity
impl RefUnwindSafe for BasicIdentity
impl Send for BasicIdentity
impl Sync for BasicIdentity
impl Unpin for BasicIdentity
impl UnsafeUnpin for BasicIdentity
impl UnwindSafe for BasicIdentity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more