langgoap.RolloutPolicy

langgoap.RolloutPolicy#

class RolloutPolicy(*args, **kwargs)[source]#

Pluggable rollout policy Protocol.

Implementations simulate forward from state for at most max_depth steps, returning a scalar reward in the [-1.0, +1.0] range defined by _shape_reward().

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

rollout(*, state, goal, actions)