langgoap.AgentModel#
- class AgentModel(*args, **kwargs)[source]#
Predicts an external agent’s next action given a world state.
Generic over the action type
A. Conventional values include direction strings ("North","South", …),ActionSpecreferences, or any domain-specific hashable action token.- __init__(*args, **kwargs)#
Methods
__init__(*args, **kwargs)expected(state)Return the deterministic point-estimate action for
state.sample(state, rng)Draw one action from this agent's distribution for
state.