export declare const AGENT_REASONING_TRACE_SCHEMA_VERSION = "agent-reasoning-trace/0.1"; export declare const REASONING_TRACE_MAX_CHARS = 64000; export interface ReasoningTracePayload extends Record { schema_version: typeof AGENT_REASONING_TRACE_SCHEMA_VERSION; kind: "reasoning"; runtime: string; text: string; truncated: boolean; redacted: boolean; } /** * Best-effort extraction of provider reasoning text from one raw stream envelope. * * Providers ship reasoning under a small set of well-known field names (Anthropic * `thinking` content items, OpenAI-compatible `reasoning`/`reasoning_content`). The walk * is bounded and collects only string values under those names; everything else in the * envelope stays local to the sandbox transcript. */ export declare function extractReasoningText(raw: unknown): string; /** Project reasoning into one bounded payload that filters credentials and preserves semantics. */ export declare function buildReasoningTracePayload(text: string, runtime: string, alreadyTruncated?: boolean): ReasoningTracePayload;