Skip to main content
Three tools manage an agent’s goal: an objective the agent keeps working toward whenever it has nothing else to do. They are equivalent to murmur goal in the CLI. Every tool takes these targeting parameters:

goal_get

Returns the agent’s goal: its goal_id and revision, objective, status and why, turn counts, max_continuations and run_continuations (turns the goal has started since it was last set, resumed, or edited), and the latest report. Fails when the agent has no goal.

goal_set

Gives an agent a goal, or changes the one it has. An agent cannot set, edit, or clear its own goal. objective with max_continuations sets a new, active goal, replacing any goal the agent has. objective alone edits the goal goal_id names, and action changes its status. action: clear removes whatever goal the agent has. Setting a new goal or clearing takes no goal_id, action takes no max_continuations, and action: clear takes no objective.

goal_report

Available to an agent on its own VM. Reports its goal complete or blocked; this is the only way an agent ends a goal.

Spawning with a goal

The spawn tool takes a goal object with an objective and max_continuations. With a goal, description is optional: the agent starts on the goal.