OpenAIResponsesModel
이 콘텐츠는 아직 번역되지 않았습니다.
Model implementation that uses OpenAI’s Responses API to generate responses.
Extended by
Section titled “Extended by”Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new OpenAIResponsesModel(client, model): OpenAIResponsesModel;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
|
Returns
Section titled “Returns”OpenAIResponsesModel
Properties
Section titled “Properties”supportsPromptModelSelection
Section titled “supportsPromptModelSelection”readonly supportsPromptModelSelection: true = true;Responses prompts can select the model when no explicit override is supplied.
Implementation of
Section titled “Implementation of”Model.supportsPromptModelSelection
Methods
Section titled “Methods”getResponse()
Section titled “getResponse()”getResponse(request): Promise<ModelResponse>;Get a response from the OpenAI model using the Responses API.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
|
|
The request to send to the model. |
Returns
Section titled “Returns”Promise<ModelResponse>
A promise that resolves to the response from the model.
Implementation of
Section titled “Implementation of”getRetryAdvice()
Section titled “getRetryAdvice()”getRetryAdvice(args): | ModelRetryAdvice | undefined;Provide optional retry advice for a failed request.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
Returns
Section titled “Returns”| ModelRetryAdvice
| undefined
Implementation of
Section titled “Implementation of”getStreamedResponse()
Section titled “getStreamedResponse()”getStreamedResponse(request): AsyncIterable<StreamEvent>;Get a streamed response from the OpenAI model using the Responses API.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
|
|
The request to send to the model. |
Returns
Section titled “Returns”AsyncIterable<StreamEvent>
An async iterable of the response from the model.