langgoap.Goal

Contents

langgoap.Goal#

Goal#

Methods

__init__([conditions, policy, objectives, ...])

from_builder([conditions, builder_output])

Construct a GoalSpec from a BuilderOutput.

from_dict(data)

Reconstruct from the dict produced by to_dict().

per_entity(entity_ids, conditions, *[, mode])

Build a MultiGoal with one GoalSpec per entity.

to_dict()

Serialise the declarative part of this goal to a JSON-native dict.

Attributes

conditions

policy

objectives

constraints

soft_goals

metrics

value

Utility weight consulted by MultiGoal(mode='best_value').

alias of GoalSpec