Skip to main content

agent_state_at

Function agent_state_at 

Source
pub fn agent_state_at(
    text: &str,
    offset: usize,
    types: &HashMap<String, Arc<TypeDecl>>,
) -> Option<(AgentDecl, AgentStateModel)>
Expand description

The agent enclosing offset, with its model built against types (the unit’s combined type table). None outside every agent.