@@ -1536,9 +1536,10 @@ export interface ResponseCustomToolCallOutput {
15361536 call_id : string ;
15371537
15381538 /**
1539- * The output from the custom tool call generated by your code.
1539+ * The output from the custom tool call generated by your code. Can be a string or
1540+ * an list of output content.
15401541 */
1541- output : string ;
1542+ output : string | Array < ResponseInputText | ResponseInputImage | ResponseInputFile > ;
15421543
15431544 /**
15441545 * The type of the custom tool call output. Always `custom_tool_call_output`.
@@ -1878,6 +1879,11 @@ export interface ResponseFunctionCallArgumentsDoneEvent {
18781879 */
18791880 item_id : string ;
18801881
1882+ /**
1883+ * The name of the function that was called.
1884+ */
1885+ name : string ;
1886+
18811887 /**
18821888 * The index of the output item.
18831889 */
@@ -1891,6 +1897,16 @@ export interface ResponseFunctionCallArgumentsDoneEvent {
18911897 type : 'response.function_call_arguments.done' ;
18921898}
18931899
1900+ /**
1901+ * A text input to the model.
1902+ */
1903+ export type ResponseFunctionCallOutputItem =
1904+ | ResponseInputTextContent
1905+ | ResponseInputImageContent
1906+ | ResponseInputFileContent ;
1907+
1908+ export type ResponseFunctionCallOutputItemList = Array < ResponseFunctionCallOutputItem > ;
1909+
18941910/**
18951911 * A tool call to run a function. See the
18961912 * [function calling guide](https://platform.openai.com/docs/guides/function-calling)
@@ -1953,9 +1969,10 @@ export interface ResponseFunctionToolCallOutputItem {
19531969 call_id : string ;
19541970
19551971 /**
1956- * A JSON string of the output of the function tool call.
1972+ * The output from the function call generated by your code. Can be a string or an
1973+ * list of output content.
19571974 */
1958- output : string ;
1975+ output : string | Array < ResponseInputText | ResponseInputImage | ResponseInputFile > ;
19591976
19601977 /**
19611978 * The type of the function tool call output. Always `function_call_output`.
@@ -2319,6 +2336,36 @@ export interface ResponseInputFile {
23192336 filename ?: string ;
23202337}
23212338
2339+ /**
2340+ * A file input to the model.
2341+ */
2342+ export interface ResponseInputFileContent {
2343+ /**
2344+ * The type of the input item. Always `input_file`.
2345+ */
2346+ type : 'input_file' ;
2347+
2348+ /**
2349+ * The base64-encoded data of the file to be sent to the model.
2350+ */
2351+ file_data ?: string | null ;
2352+
2353+ /**
2354+ * The ID of the file to be sent to the model.
2355+ */
2356+ file_id ?: string | null ;
2357+
2358+ /**
2359+ * The URL of the file to be sent to the model.
2360+ */
2361+ file_url ?: string | null ;
2362+
2363+ /**
2364+ * The name of the file to be sent to the model.
2365+ */
2366+ filename ?: string | null ;
2367+ }
2368+
23222369/**
23232370 * An image input to the model. Learn about
23242371 * [image inputs](https://platform.openai.com/docs/guides/vision).
@@ -2347,6 +2394,34 @@ export interface ResponseInputImage {
23472394 image_url ?: string | null ;
23482395}
23492396
2397+ /**
2398+ * An image input to the model. Learn about
2399+ * [image inputs](https://platform.openai.com/docs/guides/vision)
2400+ */
2401+ export interface ResponseInputImageContent {
2402+ /**
2403+ * The type of the input item. Always `input_image`.
2404+ */
2405+ type : 'input_image' ;
2406+
2407+ /**
2408+ * The detail level of the image to be sent to the model. One of `high`, `low`, or
2409+ * `auto`. Defaults to `auto`.
2410+ */
2411+ detail ?: 'low' | 'high' | 'auto' | null ;
2412+
2413+ /**
2414+ * The ID of the file to be sent to the model.
2415+ */
2416+ file_id ?: string | null ;
2417+
2418+ /**
2419+ * The URL of the image to be sent to the model. A fully qualified URL or base64
2420+ * encoded image in a data URL.
2421+ */
2422+ image_url ?: string | null ;
2423+ }
2424+
23502425/**
23512426 * A message input to the model with a role indicating instruction following
23522427 * hierarchy. Instructions given with the `developer` or `system` role take
@@ -2476,9 +2551,9 @@ export namespace ResponseInputItem {
24762551 call_id : string ;
24772552
24782553 /**
2479- * A JSON string of the output of the function tool call.
2554+ * Text, image, or file output of the function tool call.
24802555 */
2481- output : string ;
2556+ output : string | ResponsesAPI . ResponseFunctionCallOutputItemList ;
24822557
24832558 /**
24842559 * The type of the function tool call output. Always `function_call_output`.
@@ -2838,6 +2913,21 @@ export interface ResponseInputText {
28382913 type : 'input_text' ;
28392914}
28402915
2916+ /**
2917+ * A text input to the model.
2918+ */
2919+ export interface ResponseInputTextContent {
2920+ /**
2921+ * The text input to the model.
2922+ */
2923+ text : string ;
2924+
2925+ /**
2926+ * The type of the input item. Always `input_text`.
2927+ */
2928+ type : 'input_text' ;
2929+ }
2930+
28412931/**
28422932 * Content item used to generate a response.
28432933 */
@@ -5684,6 +5774,8 @@ export declare namespace Responses {
56845774 type ResponseFormatTextJSONSchemaConfig as ResponseFormatTextJSONSchemaConfig ,
56855775 type ResponseFunctionCallArgumentsDeltaEvent as ResponseFunctionCallArgumentsDeltaEvent ,
56865776 type ResponseFunctionCallArgumentsDoneEvent as ResponseFunctionCallArgumentsDoneEvent ,
5777+ type ResponseFunctionCallOutputItem as ResponseFunctionCallOutputItem ,
5778+ type ResponseFunctionCallOutputItemList as ResponseFunctionCallOutputItemList ,
56875779 type ResponseFunctionToolCall as ResponseFunctionToolCall ,
56885780 type ResponseFunctionToolCallItem as ResponseFunctionToolCallItem ,
56895781 type ResponseFunctionToolCallOutputItem as ResponseFunctionToolCallOutputItem ,
@@ -5699,11 +5791,14 @@ export declare namespace Responses {
56995791 type ResponseInputAudio as ResponseInputAudio ,
57005792 type ResponseInputContent as ResponseInputContent ,
57015793 type ResponseInputFile as ResponseInputFile ,
5794+ type ResponseInputFileContent as ResponseInputFileContent ,
57025795 type ResponseInputImage as ResponseInputImage ,
5796+ type ResponseInputImageContent as ResponseInputImageContent ,
57035797 type ResponseInputItem as ResponseInputItem ,
57045798 type ResponseInputMessageContentList as ResponseInputMessageContentList ,
57055799 type ResponseInputMessageItem as ResponseInputMessageItem ,
57065800 type ResponseInputText as ResponseInputText ,
5801+ type ResponseInputTextContent as ResponseInputTextContent ,
57075802 type ResponseItem as ResponseItem ,
57085803 type ResponseMcpCallArgumentsDeltaEvent as ResponseMcpCallArgumentsDeltaEvent ,
57095804 type ResponseMcpCallArgumentsDoneEvent as ResponseMcpCallArgumentsDoneEvent ,
0 commit comments