Adding full support for gpt-5 models (#5)

This commit is contained in:
Ahmed Allam
2025-08-15 13:02:39 -07:00
committed by GitHub
parent 675364086b
commit 337d64d362
19 changed files with 227 additions and 372 deletions

View File

@@ -57,6 +57,10 @@ def _run_agent_in_thread(
- Work independently with your own approach
- Use agent_finish when complete to report back to parent
- You are a SPECIALIST for this specific task
- The previous browser, sessions, proxy history, and files in /workspace were for your
parent agent. Do not depend on them.
- You are starting with a fresh context. Fresh proxy, browser, and files.
Only stuff in /shared_workspace is passed to you from context.
</instructions>
</agent_delegation>"""
@@ -192,16 +196,6 @@ def create_agent(
if prompt_modules:
module_list = [m.strip() for m in prompt_modules.split(",") if m.strip()]
if "root_agent" in module_list:
return {
"success": False,
"error": (
"The 'root_agent' module is reserved for the main agent "
"and cannot be used by sub-agents"
),
"agent_id": None,
}
if len(module_list) > 3:
return {
"success": False,