Class ResponseService
OpenAI's most advanced interface for generating model responses.
Supports text and image inputs, and text outputs.
Create stateful interactions with the model,
using the output of previous responses as input.
Extend the model's capabilities with built-in tools for
file search, web search, computer use, and more.
Allow the model access to external systems and data using function calling.
https://platform.openai.com/docs/api-reference/responses
Inheritance
ResponseService
Assembly: Glitch9.AIDevKit.Provider.OpenAI.dll
Syntax
public sealed class ResponseService : CrudServiceBase<OpenAIClient>, ICrudService
Constructors
|
Edit this page
View Source
ResponseService(OpenAIClient)
Declaration
public ResponseService(OpenAIClient client)
Parameters
Methods
|
Edit this page
View Source
CancelAsync(string, RequestOptions)
Declaration
public UniTask<Response> CancelAsync(string responseId, RequestOptions options = null)
Parameters
Returns
|
Edit this page
View Source
CreateAsync(ResponseRequest, RequestOptions)
Declaration
public UniTask<Response> CreateAsync(ResponseRequest request, RequestOptions options = null)
Parameters
Returns
|
Edit this page
View Source
DeleteAsync(string, RequestOptions)
Declaration
public UniTask<Response> DeleteAsync(string responseId, RequestOptions options = null)
Parameters
Returns
|
Edit this page
View Source
Declaration
public UniTask<Queried<ConversationItem>> ListInputItemsAsync(string responseId, CursorQuery query = null, RequestOptions options = null)
Parameters
Returns
|
Edit this page
View Source
RetrieveAsync(string, ResponseQuery, RequestOptions)
Declaration
public UniTask<Response> RetrieveAsync(string responseId, ResponseQuery query = null, RequestOptions options = null)
Parameters
Returns
|
Edit this page
View Source
StreamAsync(ResponseRequest, RequestOptions)
Declaration
public IGenerativeStream<ResponseEventBase, ConversationItem> StreamAsync(ResponseRequest request, RequestOptions options = null)
Parameters
Returns
Implements
Extension Methods