BaseInputsUnion1 - TypeScript SDK
BaseInputsUnion1 type definition
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
BaseInputsUnion1 type definition
models.BaseInputsMessageconst value: models.BaseInputsMessage = {
content: "<value>",
role: "user",
};
models.OpenAIResponseInputMessageItemconst value: models.OpenAIResponseInputMessageItem = {
content: [
{
text: "Hello, how are you?",
type: "input_text",
},
],
id: "msg-abc123",
role: "user",
};
models.OpenAIResponseFunctionToolCallOutputconst value: models.OpenAIResponseFunctionToolCallOutput = {
callId: "call-abc123",
output: "{\"temperature\":72,\"conditions\":\"sunny\"}",
type: "function_call_output",
};
models.OpenAIResponseFunctionToolCallconst value: models.OpenAIResponseFunctionToolCall = {
arguments: "{\"location\":\"San Francisco\"}",
callId: "call-abc123",
name: "get_weather",
type: "function_call",
};
models.OutputItemImageGenerationCallconst value: models.OutputItemImageGenerationCall = {
id: "imagegen-abc123",
result:
"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==",
status: "completed",
type: "image_generation_call",
};
models.OutputMessageconst value: models.OutputMessage = {
content: [
{
text: "Hello! How can I help you today?",
type: "output_text",
},
],
id: "msg-abc123",
role: "assistant",
type: "message",
};
models.OpenAIResponseCustomToolCallconst value: models.OpenAIResponseCustomToolCall = {
callId: "call-abc123",
input: "*** Begin Patch\n*** End Patch",
name: "apply_patch",
type: "custom_tool_call",
};
models.OpenAIResponseCustomToolCallOutputconst value: models.OpenAIResponseCustomToolCallOutput = {
callId: "call-abc123",
output: "patch applied successfully",
type: "custom_tool_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",
};