mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-08-25 12:36:30 +00:00
Add an explicit reasoning Off to the per-agent config, backed by the langchaingo tri-state API. Off emits llms.WithReasoningDisabled() (the provider disable wire) via BuildOptions, and UsesAdaptiveThinking is guarded so Off overrides the adaptive-only auto-adaptive. Per-model capability is derived at runtime from llms.ReasoningSupportFor and surfaced through GraphQL ModelReasoningInfo, so the UI only offers Off where it actually disables: cannotDisable reports when Off would be rejected (always-on models) OR a silent no-op (an unclassified default-on model whose disable wire is omitted), and capability is surfaced for any thinking-capable model (e.g. Gemini, which declares thinking without a reasoning block). A new ProviderType.ReasoningProvider() supplies the provider to the resolver. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>