Open Agent Loops
API Reference

reasoningKwargsFor

@open-agent-loops/core


function reasoningKwargsFor(modelId, mode?): Record<string, unknown> | undefined;

Defined in: providers/reasoning-kwargs.ts:328

Resolve the chat_template_kwargs to send for a model's thinking state, or undefined to inject nothing (unknown / non-reasoning model, or an always-on model with no toggle).

Parameters

ParameterTypeDefault valueDescription
modelIdstringundefinedThe model id, e.g. "deepseek-ai/DeepSeek-V4-Flash".
modeThinkingMode"auto"Desired thinking state; defaults to "auto" (family default).

Returns

Record<string, unknown> | undefined

The kwargs object to merge into the request body, or undefined.

On this page