The TypeScript SDK and docs are currently in beta.
Report issues on GitHub.
Example Usage
import { ResponsesOutputItemReasoning } from "@openrouter/sdk/models";
let value: ResponsesOutputItemReasoning = {
type: "reasoning",
id: "reasoning-abc123",
summary: [
{
type: "summary_text",
text: "Analyzed the problem using first principles",
},
],
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
type | models.ResponsesOutputItemReasoningType | :heavy_check_mark: | N/A | |
id | string | :heavy_check_mark: | N/A | |
content | models.ReasoningTextContent[] | :heavy_minus_sign: | N/A | |
summary | models.ReasoningSummaryText[] | :heavy_check_mark: | N/A | |
encryptedContent | string | :heavy_minus_sign: | N/A | |
status | models.ResponsesOutputItemReasoningStatusUnion | :heavy_minus_sign: | N/A | |
signature | string | :heavy_minus_sign: | A signature for the reasoning content, used for verification | EvcBCkgIChABGAIqQKkSDbRuVEQUk9qN1odC098l9SEj… |
format | models.ResponsesOutputItemReasoningFormat | :heavy_minus_sign: | The format of the reasoning content | anthropic-claude-v1 |