mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-08-30 11:49:50 +02:00
[eric] tree: group browser sub-agent modules under agents/browser
This commit is contained in:
@@ -15,14 +15,14 @@ from uuid import uuid4
|
||||
|
||||
import anthropic
|
||||
|
||||
from backend.apps.agents import browser_history
|
||||
from backend.apps.agents.browser_history import (
|
||||
from backend.apps.agents.browser import browser_history
|
||||
from backend.apps.agents.browser.browser_history import (
|
||||
_MAX_HISTORY_MESSAGES,
|
||||
_trim_history_by_turns,
|
||||
_validate_message_pairing,
|
||||
clear_browser_history,
|
||||
)
|
||||
from backend.apps.agents.browser_loop import (
|
||||
from backend.apps.agents.browser.browser_loop import (
|
||||
_LOOP_DETECTION_EXCLUDED_TOOLS,
|
||||
_LOOP_HARD_CAP,
|
||||
_LOOP_WARNING_TEXT,
|
||||
@@ -30,7 +30,7 @@ from backend.apps.agents.browser_loop import (
|
||||
_detect_loop,
|
||||
_hash_tool_call,
|
||||
)
|
||||
from backend.apps.agents.browser_schema import (
|
||||
from backend.apps.agents.browser.browser_schema import (
|
||||
_ACTION_TOOLS_REQUIRING_REPORT,
|
||||
ACTION_MAP,
|
||||
BROWSER_TOOLS_SCHEMA,
|
||||
+1
-1
@@ -470,7 +470,7 @@ async def browser_agent_run(request: Request):
|
||||
"""Run one or more browser sub-agents in parallel.
|
||||
Called by the browser_agent_mcp_server stdio subprocess."""
|
||||
from backend.apps.settings.settings import load_settings
|
||||
from backend.apps.agents.browser_agent import run_browser_agents
|
||||
from backend.apps.agents.browser.browser_agent import run_browser_agents
|
||||
|
||||
body = await request.json()
|
||||
tasks = body.get("tasks", [])
|
||||
|
||||
Reference in New Issue
Block a user