OutputShellCallOutputItem - TypeScript SDK

OutputShellCallOutputItem type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

A native shell_call_output item matching OpenAI’s Responses API shape. Carries per-command stdout, stderr, and the exit/timeout outcome.

Example Usage

1import { OutputShellCallOutputItem } from "@openrouter/sdk/models";
2
3let value: OutputShellCallOutputItem = {
4 callId: "<id>",
5 id: "msg-abc123",
6 output: [],
7 status: "completed",
8 type: "shell_call_output",
9};

Fields

FieldTypeRequiredDescriptionExample
callIdstring✔️N/A
idstring✔️N/A
maxOutputLengthnumberN/A
outputmodels.OutputShellCallOutputItemOutput[]✔️N/A
statusmodels.ShellCallStatus✔️Status of a shell call or its output.completed
type”shell_call_output”✔️N/A