Class OpenAiOfficialResponsesChatModel.Builder
java.lang.Object
dev.langchain4j.model.openaiofficial.OpenAiOfficialResponsesChatModel.Builder
- Enclosing class:
OpenAiOfficialResponsesChatModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionazureOpenAIServiceVersion(com.openai.azure.AzureOpenAIServiceVersion azureOpenAIServiceVersion) build()client(com.openai.client.OpenAIClient client) credential(com.openai.credential.Credential credential) customHeaders(Map<String, String> customHeaders) defaultRequestParameters(ChatRequestParameters defaultRequestParameters) isGitHubModels(boolean isGitHubModels) isMicrosoftFoundry(boolean isMicrosoftFoundry) listeners(ChatModelListener... listeners) listeners(List<ChatModelListener> listeners) maxOutputTokens(Integer maxOutputTokens) maxRetries(Integer maxRetries) maxToolCalls(Integer maxToolCalls) microsoftFoundryDeploymentName(String microsoftFoundryDeploymentName) organizationId(String organizationId) parallelToolCalls(Boolean parallelToolCalls) previousResponseId(String previousResponseId) promptCacheKey(String promptCacheKey) promptCacheRetention(String promptCacheRetention) reasoningEffort(com.openai.models.ReasoningEffort reasoningEffort) reasoningSummary(com.openai.models.Reasoning.Summary reasoningSummary) responseFormat(ResponseFormat responseFormat) safetyIdentifier(String safetyIdentifier) serviceTier(String serviceTier) When Enterprise Open AI subscription is used, service tier = "priority" puts requests into a faster pool.strictJsonSchema(Boolean strictJsonSchema) strictTools(Boolean strictTools) temperature(Double temperature) textVerbosity(String textVerbosity) toolChoice(ToolChoice toolChoice) toolSpecifications(ToolSpecification... toolSpecifications) toolSpecifications(List<ToolSpecification> toolSpecifications) topLogprobs(Integer topLogprobs) truncation(String truncation)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
baseUrl
-
apiKey
-
credential
public OpenAiOfficialResponsesChatModel.Builder credential(com.openai.credential.Credential credential) -
microsoftFoundryDeploymentName
public OpenAiOfficialResponsesChatModel.Builder microsoftFoundryDeploymentName(String microsoftFoundryDeploymentName) -
azureOpenAIServiceVersion
public OpenAiOfficialResponsesChatModel.Builder azureOpenAIServiceVersion(com.openai.azure.AzureOpenAIServiceVersion azureOpenAIServiceVersion) -
organizationId
-
isMicrosoftFoundry
-
isGitHubModels
-
customHeaders
-
timeout
-
maxRetries
-
proxy
-
client
-
modelName
-
temperature
-
topP
-
maxOutputTokens
-
maxToolCalls
-
parallelToolCalls
-
previousResponseId
-
topLogprobs
-
truncation
-
include
-
serviceTier
When Enterprise Open AI subscription is used, service tier = "priority" puts requests into a faster pool. -
safetyIdentifier
-
promptCacheKey
-
promptCacheRetention
-
reasoningEffort
public OpenAiOfficialResponsesChatModel.Builder reasoningEffort(com.openai.models.ReasoningEffort reasoningEffort) -
reasoningSummary
public OpenAiOfficialResponsesChatModel.Builder reasoningSummary(com.openai.models.Reasoning.Summary reasoningSummary) -
textVerbosity
-
store
-
listeners
-
listeners
-
strictTools
-
strictJsonSchema
-
toolSpecifications
public OpenAiOfficialResponsesChatModel.Builder toolSpecifications(List<ToolSpecification> toolSpecifications) -
toolSpecifications
public OpenAiOfficialResponsesChatModel.Builder toolSpecifications(ToolSpecification... toolSpecifications) -
toolChoice
-
responseFormat
-
defaultRequestParameters
public OpenAiOfficialResponsesChatModel.Builder defaultRequestParameters(ChatRequestParameters defaultRequestParameters) -
build
-