mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-12-04 03:58:09 +00:00
The subordinate, unknown, MCP, and generic fallback tool log headlines no longer repeat the agent name. The unknown tool inherits the prefix-free base heading and takes the class-level blank line used by sibling tools, MCP keeps the tool name visible as an argument row, parallel children without a resolvable dedicated tool log through the prefix-free fallback, and the input and text editor fallback headings drop the prefix too. Framework helper DOX and both plugin AGENTS files document the prefix-free fallback rows, and regression tests cover the named headings for method and no-method calls, the generic fallback rows, and source guards for the plugin fallbacks. Validation: pytest tests/test_tool_heading_prefixes.py tests/test_text_editor_message_handler.py tests/test_parallel_tool.py
17 lines
464 B
Python
17 lines
464 B
Python
from helpers.tool import Tool, Response
|
|
from extensions.python.system_prompt._11_tools_prompt import (
|
|
build_prompt as build_tools_prompt
|
|
)
|
|
|
|
|
|
class Unknown(Tool):
|
|
|
|
async def execute(self, **kwargs):
|
|
tools = await build_tools_prompt(self.agent)
|
|
return Response(
|
|
message=self.agent.read_prompt(
|
|
"fw.tool_not_found.md", tool_name=self.name, tools_prompt=tools
|
|
),
|
|
break_loop=False,
|
|
)
|