agent-zero/plugins/_goal/tools/get_goal.py
Alessandro 84c13dab01 Add built-in goal management plugin
Adds the always-enabled _goal plugin with per-chat goal storage, WebUI goal strip, /goal slash command, and agent-facing goal tools.

Includes command-picker integration, focused plugin tests, and the generated 256x256 thumbnail asset.
2026-07-09 17:09:08 +02:00

10 lines
321 B
Python

from __future__ import annotations
from helpers.tool import Response, Tool
from plugins._goal.helpers import goals
class GetGoal(Tool):
async def execute(self, **kwargs) -> Response:
goal = goals.get_goal(self.agent.context.id)
return Response(message=goals.summarize_goal(goal), break_loop=False)