diff --git a/ai-hub/app/core/orchestration/agent_loop.py b/ai-hub/app/core/orchestration/agent_loop.py index ef920a6..7d6aa7c 100644 --- a/ai-hub/app/core/orchestration/agent_loop.py +++ b/ai-hub/app/core/orchestration/agent_loop.py @@ -65,12 +65,10 @@ provider_name = settings.ACTIVE_LLM_PROVIDER sys_prefs = user_service.get_system_settings(db) providers = sys_prefs.get("llm", {}).get("providers", {}) - for best_choice in ["deepseek", "gemini", "openai", "anthropic"]: + for best_choice in ["gemini", "deepseek", "openai", "anthropic"]: if best_choice in providers and providers[best_choice].get("api_key"): provider_name = best_choice - break - - break + break # Area 4.2: Hippocampus (Scratchpad) Idempotency Check # We skip this for simple chat prompts, but for autonomous loops its vital @@ -143,7 +141,7 @@ from sqlalchemy.orm.attributes import flag_modified flag_modified(instance, "tool_call_counts") - print(f"[AgentExecutor] Saved metrics for {agent_id}. Tool calls: {final_tool_counts}") + print(f"[AgentExecutor] Saved metrics for {agent_id} (Session: {session_id}). Tool calls: {final_tool_counts}") db.commit() return final_answer diff --git a/skills/browser-automation-agent/SKILL.md b/skills/browser-automation-agent/SKILL.md index b000a75..38357af 100644 --- a/skills/browser-automation-agent/SKILL.md +++ b/skills/browser-automation-agent/SKILL.md @@ -2,8 +2,9 @@ name: browser_automation_agent emoji: "🌐" description: > - Perform web browsing, data extraction, form filling, and UI automation using a - dedicated High-Performance Browser Service. Supports persistent browser sessions + Perform web browsing, real-time data retrieval (stocks, news, weather), extraction, and UI automation + using a dedicated High-Performance Browser Service. Use this tool whenever you need up-to-date + information that might be beyond your knowledge cutoff. Supports persistent browser sessions with stateful element refs (e1, e2, ...) for reliable multi-step interaction. skill_type: system is_enabled: true