feat(agent): add reasoning mode types and thinking extraction

Add ReasoningMode type (off/on/stream) to AgentOptions and related
config types. Add extractThinking() for extracting thinking content
blocks from LLM responses, mirroring the existing extractText() pattern.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
yushen 2026-02-04 15:50:35 +08:00
parent cea3336256
commit 77d5702f80
4 changed files with 22 additions and 0 deletions

View file

@ -4,6 +4,8 @@ export type SessionMeta = {
provider?: string;
model?: string;
thinkingLevel?: string;
/** Reasoning mode: off, on, stream */
reasoningMode?: string;
/** Context window token 数 */
contextWindowTokens?: number;
};