Skip to content

OpenAIApiSurface

Namespace AgentPrism · Assembly AgentPrism.OpenAI.dll

Selects which of the two OpenAI chat APIs is used.

public enum OpenAIApiSurface

ChatCompletions = 0

The Chat Completions API. The conversation history stays on the client and is written to the AgentPrism persistence layer. This is the default path.

Responses = 1

The Responses API. The OpenAI service owns the conversation state.

The OpenAI library still marks this surface as “evaluation purposes only” (OPENAI001). Its usage is confined to a single file.

The choice comes from ModelBinding.Provider: OpenAIProviderNames.ChatCompletions or OpenAIProviderNames.Responses. UseOpenAI registers both.