Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:ARCANGEL0 EVA check reasoning support

From Leeroopedia
Knowledge Sources
Domains LLM, API_Integration
Last Updated 2026-10-29 14:00 GMT

Overview

Concrete tool for probing a model's reasoning parameter support from its metadata, provided by the Mitsu provider client.

Description

The check_reasoning_support function queries the provider's model metadata to determine if the selected model supports reasoning parameters (e.g., `reasoning_effort`, `reasoning`). It checks:

  • `supported_parameters` list for `reasoning_effort` or `reasoning`
  • `capabilities.reasoning` boolean
  • `supports_reasoning` boolean
  • `reasoning_parameter` field

Returns one of: `"reasoning_effort"`, `"reasoning"`, `"unsupported"`, `None` (unknown), or a special template name for NVIDIA NIM models.

Usage

  • Session open: Called during `open_session` to apply reasoning defaults for the selected model.
  • Provider setup: Called during onboarding to configure reasoning settings.

Code Reference

Source Location

  • Repository: Mitsu
  • File: providers/client.py

Signature

def check_reasoning_support(profile: dict[str, Any]) -> str | None:

Import

from mitsu.providers.client import check_reasoning_support

I/O Contract

Inputs

Name Type Required Description
profile dict[str, Any] Yes Provider config with base_url, model, api_key, protocol, provider_id

Outputs

Name Type Description
returns None "reasoning_effort", "reasoning", "unsupported", None (unknown), or "nvidia_chat_template"

Usage Examples

Check Reasoning Support

from mitsu.providers.client import check_reasoning_support

profile = {
    "base_url": "https://api.openai.com/v1",
    "model": "o3-mini",
    "api_key": "sk-...",
    "protocol": "openai",
    "provider_id": "openai",
}

result = check_reasoning_support(profile)
if result == "reasoning_effort":
    profile["reasoning_enabled"] = True
    profile["reasoning_parameter"] = "reasoning_effort"
elif result == "unsupported":
    profile["reasoning_enabled"] = False

Related Pages

Implements Principle

Requires Environment

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment