fix to_capcha

This commit is contained in:
VladislavIlin7 2026-04-24 15:55:07 +03:00
parent f1f32d8366
commit 3b7d02ee81
3 changed files with 13 additions and 1 deletions

View file

@ -73,6 +73,7 @@ from hermes_constants import OPENROUTER_BASE_URL
from agent.prompt_builder import (
DEFAULT_AGENT_IDENTITY, PLATFORM_HINTS,
MEMORY_GUIDANCE, SESSION_SEARCH_GUIDANCE, SKILLS_GUIDANCE,
BROWSER_CAPTCHA_GUIDANCE,
)
from agent.model_metadata import (
fetch_model_metadata,
@ -2279,6 +2280,8 @@ class AIAgent:
tool_guidance.append(SESSION_SEARCH_GUIDANCE)
if "skill_manage" in self.valid_tool_names:
tool_guidance.append(SKILLS_GUIDANCE)
if "internet_browser" in self.valid_tool_names and "to_captcha" in self.valid_tool_names:
tool_guidance.append(BROWSER_CAPTCHA_GUIDANCE)
if tool_guidance:
prompt_parts.append(" ".join(tool_guidance))