langgoap.DeterministicTransitionModel

langgoap.DeterministicTransitionModel#

class DeterministicTransitionModel(divergence_policy=None)[source]#

Default model: expected and sample both equal the action’s declared effects, regardless of RNG state.

This is the zero-configuration path. Every existing call site that does not wire a transition model sees this instance and its behaviour is bit-identical to the pre-TransitionModel code.

Parameters:

divergence_policy (DivergencePolicy | None)

__init__(divergence_policy=None)#
Parameters:

divergence_policy (DivergencePolicy | None)

Return type:

None

Methods

__init__([divergence_policy])

expected(state, action)

sample(state, action, rng)

Attributes

divergence_policy