pub struct AgentShell {
pub state: AgentState,
pub appearance: CharacterAppearance,
pub action_queue: VecDeque<CharacterAction>,
pub personality_traits: Vec<String>,
}Expand description
The shell — bridges agent state to character appearance.
Fields§
§state: AgentState§appearance: CharacterAppearance§action_queue: VecDeque<CharacterAction>§personality_traits: Vec<String>Implementations§
Source§impl AgentShell
impl AgentShell
pub fn new(id: &str, room_id: &str) -> Self
Sourcepub fn finish_dissolve(&mut self)
pub fn finish_dissolve(&mut self)
Complete dissolution.
Sourcepub fn flush_actions(&mut self) -> Vec<CharacterAction>
pub fn flush_actions(&mut self) -> Vec<CharacterAction>
Flush pending game actions.
Sourcepub fn character_card(&self) -> String
pub fn character_card(&self) -> String
Get the agent’s game-friendly description.
Trait Implementations§
Source§impl Clone for AgentShell
impl Clone for AgentShell
Source§fn clone(&self) -> AgentShell
fn clone(&self) -> AgentShell
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AgentShell
impl Debug for AgentShell
Source§impl<'de> Deserialize<'de> for AgentShell
impl<'de> Deserialize<'de> for AgentShell
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AgentShell
impl RefUnwindSafe for AgentShell
impl Send for AgentShell
impl Sync for AgentShell
impl Unpin for AgentShell
impl UnsafeUnpin for AgentShell
impl UnwindSafe for AgentShell
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