@@ -358,14 +358,13 @@ export interface Response {
358358 incomplete_details : Response . IncompleteDetails | null ;
359359
360360 /**
361- * Inserts a system (or developer) message as the first item in the model's
362- * context.
361+ * A system (or developer) message inserted into the model's context.
363362 *
364363 * When using along with `previous_response_id`, the instructions from a previous
365364 * response will not be carried over to the next response. This makes it simple to
366365 * swap out system (or developer) messages in new responses.
367366 */
368- instructions : string | null ;
367+ instructions : string | Array < ResponseInputItem > | null ;
369368
370369 /**
371370 * Set of 16 key-value pairs that can be attached to an object. This can be useful
@@ -469,6 +468,12 @@ export interface Response {
469468 */
470469 previous_response_id ?: string | null ;
471470
471+ /**
472+ * Reference to a prompt template and its variables.
473+ * [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts).
474+ */
475+ prompt ?: ResponsePrompt | null ;
476+
472477 /**
473478 * **o-series models only**
474479 *
@@ -496,7 +501,7 @@ export interface Response {
496501 * When this parameter is set, the response body will include the `service_tier`
497502 * utilized.
498503 */
499- service_tier ?: 'auto' | 'default' | 'flex' | null ;
504+ service_tier ?: 'auto' | 'default' | 'flex' | 'scale' | null ;
500505
501506 /**
502507 * The status of the response generation. One of `completed`, `failed`,
@@ -3483,6 +3488,29 @@ export interface ResponseOutputTextAnnotationAddedEvent {
34833488 type : 'response.output_text_annotation.added' ;
34843489}
34853490
3491+ /**
3492+ * Reference to a prompt template and its variables.
3493+ * [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts).
3494+ */
3495+ export interface ResponsePrompt {
3496+ /**
3497+ * The unique identifier of the prompt template to use.
3498+ */
3499+ id : string ;
3500+
3501+ /**
3502+ * Optional map of values to substitute in for variables in your prompt. The
3503+ * substitution values can either be strings, or other Response input types like
3504+ * images or files.
3505+ */
3506+ variables ?: Record < string , string | ResponseInputText | ResponseInputImage | ResponseInputFile > | null ;
3507+
3508+ /**
3509+ * Optional version of the prompt template.
3510+ */
3511+ version ?: string | null ;
3512+ }
3513+
34863514/**
34873515 * Emitted when a response is queued and waiting to be processed.
34883516 */
@@ -4612,8 +4640,7 @@ export interface ResponseCreateParamsBase {
46124640 include ?: Array < ResponseIncludable > | null ;
46134641
46144642 /**
4615- * Inserts a system (or developer) message as the first item in the model's
4616- * context.
4643+ * A system (or developer) message inserted into the model's context.
46174644 *
46184645 * When using along with `previous_response_id`, the instructions from a previous
46194646 * response will not be carried over to the next response. This makes it simple to
@@ -4650,6 +4677,12 @@ export interface ResponseCreateParamsBase {
46504677 */
46514678 previous_response_id ?: string | null ;
46524679
4680+ /**
4681+ * Reference to a prompt template and its variables.
4682+ * [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts).
4683+ */
4684+ prompt ?: ResponsePrompt | null ;
4685+
46534686 /**
46544687 * **o-series models only**
46554688 *
@@ -4677,7 +4710,7 @@ export interface ResponseCreateParamsBase {
46774710 * When this parameter is set, the response body will include the `service_tier`
46784711 * utilized.
46794712 */
4680- service_tier ?: 'auto' | 'default' | 'flex' | null ;
4713+ service_tier ?: 'auto' | 'default' | 'flex' | 'scale' | null ;
46814714
46824715 /**
46834716 * Whether to store the generated model response for later retrieval via API.
@@ -4922,6 +4955,7 @@ export declare namespace Responses {
49224955 type ResponseOutputRefusal as ResponseOutputRefusal ,
49234956 type ResponseOutputText as ResponseOutputText ,
49244957 type ResponseOutputTextAnnotationAddedEvent as ResponseOutputTextAnnotationAddedEvent ,
4958+ type ResponsePrompt as ResponsePrompt ,
49254959 type ResponseQueuedEvent as ResponseQueuedEvent ,
49264960 type ResponseReasoningDeltaEvent as ResponseReasoningDeltaEvent ,
49274961 type ResponseReasoningDoneEvent as ResponseReasoningDoneEvent ,
0 commit comments