InputsUnion1 - TypeScript SDK
InputsUnion1 type definition
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
InputsUnion1 type definition
models.ReasoningItemconst value: models.ReasoningItem = {
id: "reasoning-abc123",
summary: [
{
text: "Step by step analysis",
type: "summary_text",
},
],
type: "reasoning",
};
models.EasyInputMessageconst value: models.EasyInputMessage = {
role: "user",
};
models.InputMessageItemconst value: models.InputMessageItem = {
role: "user",
};
models.FunctionCallItemconst value: models.FunctionCallItem = {
arguments: "{\"location\":\"San Francisco\"}",
callId: "call-abc123",
id: "call-abc123",
name: "get_weather",
type: "function_call",
};
models.FunctionCallOutputItemconst value: models.FunctionCallOutputItem = {
callId: "call-abc123",
output: "{\"temperature\":72,\"conditions\":\"sunny\"}",
type: "function_call_output",
};
models.ApplyPatchCallItemconst value: models.ApplyPatchCallItem = {
callId: "call_abc123",
operation: {
diff: "@@ function main() {\n+ console.log(\"hi\");\n }",
path: "/src/main.ts",
type: "update_file",
},
status: "completed",
type: "apply_patch_call",
};
models.ApplyPatchCallOutputItemconst value: models.ApplyPatchCallOutputItem = {
callId: "call_abc123",
status: "completed",
type: "apply_patch_call_output",
};
models.InputsMessageconst value: models.InputsMessage = {
content: [
{
text: "Hello! How can I help you?",
type: "output_text",
},
],
id: "msg-123",
role: "assistant",
type: "message",
};
models.InputsReasoningconst value: models.InputsReasoning = {
id: "reasoning-123",
summary: [
{
text: "Analyzed the problem and found the optimal solution.",
type: "summary_text",
},
],
type: "reasoning",
};
models.OutputFunctionCallItemconst value: models.OutputFunctionCallItem = {
arguments: "{\"location\":\"San Francisco\"}",
callId: "call-abc123",
name: "get_weather",
type: "function_call",
};
models.OutputCustomToolCallItemconst value: models.OutputCustomToolCallItem = {
callId: "call-abc123",
input: "*** Begin Patch\n*** End Patch",
name: "apply_patch",
type: "custom_tool_call",
};
models.OutputWebSearchCallItemconst value: models.OutputWebSearchCallItem = {
action: {
pattern: "<value>",
type: "find_in_page",
url: "https://tragic-requirement.com/",
},
id: "ws-abc123",
status: "completed",
type: "web_search_call",
};
models.OutputFileSearchCallItemconst value: models.OutputFileSearchCallItem = {
id: "fs-abc123",
queries: [
"search term",
],
status: "completed",
type: "file_search_call",
};
models.OutputImageGenerationCallItemconst value: models.OutputImageGenerationCallItem = {
id: "img-abc123",
status: "completed",
type: "image_generation_call",
};
models.OutputCodeInterpreterCallItemconst value: models.OutputCodeInterpreterCallItem = {
code: "print(\"hello\")",
containerId: "ctr-xyz789",
id: "ci-abc123",
outputs: [
{
logs: "hello\n",
type: "logs",
},
],
status: "completed",
type: "code_interpreter_call",
};
models.OutputComputerCallItemconst value: models.OutputComputerCallItem = {
callId: "call-abc123",
pendingSafetyChecks: [],
status: "completed",
type: "computer_call",
};
models.OutputDatetimeItemconst value: models.OutputDatetimeItem = {
datetime: "2026-03-12T14:30:00.000Z",
status: "completed",
timezone: "UTC",
type: "openrouter:datetime",
};
models.OutputWebSearchServerToolItemconst value: models.OutputWebSearchServerToolItem = {
status: "completed",
type: "openrouter:web_search",
};
models.OutputCodeInterpreterServerToolItemconst value: models.OutputCodeInterpreterServerToolItem = {
status: "completed",
type: "openrouter:code_interpreter",
};
models.OutputFileSearchServerToolItemconst value: models.OutputFileSearchServerToolItem = {
status: "completed",
type: "openrouter:file_search",
};
models.OutputImageGenerationServerToolItemconst value: models.OutputImageGenerationServerToolItem = {
status: "completed",
type: "openrouter:image_generation",
};
models.OutputBrowserUseServerToolItemconst value: models.OutputBrowserUseServerToolItem = {
status: "completed",
type: "openrouter:browser_use",
};
models.OutputBashServerToolItemconst value: models.OutputBashServerToolItem = {
status: "completed",
type: "openrouter:bash",
};
models.OutputTextEditorServerToolItemconst value: models.OutputTextEditorServerToolItem = {
status: "completed",
type: "openrouter:text_editor",
};
models.OutputApplyPatchServerToolItemconst value: models.OutputApplyPatchServerToolItem = {
status: "completed",
type: "openrouter:apply_patch",
};
models.OutputWebFetchServerToolItemconst value: models.OutputWebFetchServerToolItem = {
status: "completed",
type: "openrouter:web_fetch",
};
models.OutputToolSearchServerToolItemconst value: models.OutputToolSearchServerToolItem = {
status: "completed",
type: "openrouter:tool_search",
};
models.OutputMemoryServerToolItemconst value: models.OutputMemoryServerToolItem = {
status: "completed",
type: "openrouter:memory",
};
models.OutputMcpServerToolItemconst value: models.OutputMcpServerToolItem = {
status: "completed",
type: "openrouter:mcp",
};
models.OutputSearchModelsServerToolItemconst value: models.OutputSearchModelsServerToolItem = {
status: "completed",
type: "openrouter:experimental__search_models",
};
models.LocalShellCallItemconst value: models.LocalShellCallItem = {
action: {
command: [
"ls",
"-la",
],
env: {
"PATH": "/usr/bin",
},
type: "exec",
},
callId: "call-abc123",
id: "shell-abc123",
status: "completed",
type: "local_shell_call",
};
models.LocalShellCallOutputItemconst value: models.LocalShellCallOutputItem = {
id: "output-abc123",
output: "total 24\ndrwxr-xr-x 5 user staff 160 Jan 1 12:00 .",
type: "local_shell_call_output",
};
models.ShellCallItemconst value: models.ShellCallItem = {
action: {
commands: [
"ls",
"-la",
],
},
callId: "call-abc123",
type: "shell_call",
};
models.ShellCallOutputItemconst value: models.ShellCallOutputItem = {
callId: "call-abc123",
output: [
{
type: "stdout",
},
],
type: "shell_call_output",
};
models.McpListToolsItemconst value: models.McpListToolsItem = {
id: "mcp-list-abc123",
serverLabel: "database-server",
tools: [
{
inputSchema: {
"properties": {
"query": {
"type": "string",
},
},
"type": "object",
},
name: "query_database",
},
],
type: "mcp_list_tools",
};
models.McpApprovalRequestItemconst value: models.McpApprovalRequestItem = {
arguments: "{\"id\":\"123\"}",
id: "approval-abc123",
name: "delete_record",
serverLabel: "database-server",
type: "mcp_approval_request",
};
models.McpApprovalResponseItemconst value: models.McpApprovalResponseItem = {
approvalRequestId: "approval-abc123",
approve: true,
type: "mcp_approval_response",
};
models.McpCallItemconst value: models.McpCallItem = {
arguments: "{\"query\":\"SELECT * FROM users\"}",
id: "mcp-call-abc123",
name: "query_database",
serverLabel: "database-server",
type: "mcp_call",
};
models.CustomToolCallItemconst value: models.CustomToolCallItem = {
callId: "call-abc123",
input: "*** Begin Patch\n*** End Patch",
name: "apply_patch",
type: "custom_tool_call",
};
models.CustomToolCallOutputItemconst value: models.CustomToolCallOutputItem = {
callId: "call-abc123",
output: "patch applied successfully",
type: "custom_tool_call_output",
};
models.CompactionItemconst value: models.CompactionItem = {
encryptedContent: "enc_abc123...",
type: "compaction",
};
models.ItemReferenceItemconst value: models.ItemReferenceItem = {
id: "msg-abc123",
type: "item_reference",
};