mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-06 23:12:22 +02:00
Centralize web fallback and core tool policy
This commit is contained in:
+2
-6
@@ -22760,13 +22760,9 @@ async def stream_agent_loop(
|
||||
# after that narrow surface was selected.
|
||||
and not (_low_signal_turn and workspace)
|
||||
):
|
||||
_core_agent_tools = {"bash", "web_search", "web_fetch", "ask_user"}
|
||||
_known_schema_names = {
|
||||
schema.get("function", {}).get("name") or schema.get("name")
|
||||
for schema in FUNCTION_TOOL_SCHEMAS
|
||||
_core_agent_tools = {
|
||||
"bash", "python", "read_file", "web_search", "web_fetch", "ask_user",
|
||||
}
|
||||
if "private_browser" in _known_schema_names:
|
||||
_core_agent_tools.add("private_browser")
|
||||
_core_agent_tools.difference_update(_hard_blocked_tools)
|
||||
_relevant_tools.update(_core_agent_tools)
|
||||
if _base_relevant_tools is None:
|
||||
|
||||
Reference in New Issue
Block a user