PSF: Foundry Progress Sync. 57 high-fidelity blueprints established. Open Fleet routing (Kimi/Qwen) active. GTD updated.
This commit is contained in:
@@ -1,29 +1,18 @@
|
||||
(in-package :org-agent)
|
||||
|
||||
(defun economist-route-task (context)
|
||||
"Analyzes the stimulus context and returns a prioritized list of providers.
|
||||
High-priority or complex tasks (e.g., :architect) get powerful models.
|
||||
Routine tasks (e.g., :heartbeat, :persistence) get cheap/flash models."
|
||||
(let* ((payload (getf context :payload))
|
||||
(sensor (getf payload :sensor))
|
||||
(complexity (ignore-errors (uiop:symbol-call :org-agent.skills.org-skill-router :router-classify-complexity context))))
|
||||
(cond
|
||||
;; Explicit user interaction or Reasoning tasks
|
||||
((or (member sensor '(:user-command)) (eq complexity :REASONING)) '(:openrouter))
|
||||
|
||||
;; Cognitive or Reflexive tasks
|
||||
(t '(:openrouter))))) ; Route through OpenRouter to avoid direct Google 429s
|
||||
(declare (ignore context))
|
||||
'(:openrouter)) ; Exclusively use OpenRouter for the Open Fleet
|
||||
|
||||
(defun economist-get-model-for-provider (provider &optional context)
|
||||
"Returns the specific model ID recommended for the given provider/complexity.
|
||||
Updated for April 2026 SOTA. Prefers Gemini 3.0/2.5 Flash for reflexes."
|
||||
"Returns Open-Source SOTA model IDs. Updated April 2026."
|
||||
(let ((complexity (ignore-errors (uiop:symbol-call :org-agent.skills.org-skill-router :router-classify-complexity context))))
|
||||
(case provider
|
||||
(:openrouter
|
||||
(case complexity
|
||||
(:REASONING "anthropic/claude-3.5-sonnet")
|
||||
(:COGNITION "moonshotai/kimi-k2.5")
|
||||
(t "google/gemini-3-flash-preview")))
|
||||
(:REASONING "qwen/qwen-2.5-72b-instruct") ; Heavy lifting
|
||||
(:COGNITION "moonshotai/kimi-k2.5") ; Interaction
|
||||
(t "qwen/qwen-2.5-72b-instruct"))) ; Standard reflex
|
||||
(t nil))))
|
||||
|
||||
(defun economist-patch-kernel ()
|
||||
|
||||
Reference in New Issue
Block a user