langgoap.ActionResult#

class ActionResult(action_name, success, state_before=<factory>, state_after=<factory>, error=None)[source]#

Result of executing a single GOAP action.

Parameters:
  • action_name (str)

  • success (bool)

  • state_before (dict[str, Any])

  • state_after (dict[str, Any])

  • error (str | None)

action_name#

Name of the action that was executed.

Type:

str

success#

Whether the action completed successfully.

Type:

bool

state_before#

World state before execution.

Type:

dict[str, Any]

state_after#

World state after execution.

Type:

dict[str, Any]

error#

Error message if the action failed.

Type:

str | None

__init__(action_name, success, state_before=<factory>, state_after=<factory>, error=None)#
Parameters:
  • action_name (str)

  • success (bool)

  • state_before (dict[str, Any])

  • state_after (dict[str, Any])

  • error (str | None)

Return type:

None

Methods

__init__(action_name, success[, ...])

Attributes