Package org.springframework.ai.openai
Class OpenAiDecisionOptions.AbstractBuilder<B extends OpenAiDecisionOptions.AbstractBuilder<B>>
java.lang.Object
org.springframework.ai.decision.DefaultDecisionOptions.Builder<B>
org.springframework.ai.openai.OpenAiDecisionOptions.AbstractBuilder<B>
- All Implemented Interfaces:
Cloneable,DecisionOptions.Builder<B>
- Direct Known Subclasses:
OpenAiDecisionOptions.Builder
- Enclosing class:
- OpenAiDecisionOptions
protected abstract static class OpenAiDecisionOptions.AbstractBuilder<B extends OpenAiDecisionOptions.AbstractBuilder<B>>
extends DefaultDecisionOptions.Builder<B>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected @Nullable Stringprotected @Nullable Stringprotected @Nullable com.openai.credential.Credentialprotected @Nullable Booleanprotected @Nullable Booleanprotected @Nullable Integerprotected @Nullable Stringprotected @Nullable com.openai.azure.AzureOpenAIServiceVersionprotected @Nullable Stringprotected @Nullable Proxyprotected @Nullable Stringprotected @Nullable DurationFields inherited from class org.springframework.ai.decision.DefaultDecisionOptions.Builder
model -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()clone()combineWith(DecisionOptions.Builder<?> other) Override the values set so far with the non-null values of the given builder, whichever implementation it is.credential(@Nullable com.openai.credential.Credential credential) customHeaders(@Nullable Map<String, String> customHeaders) deploymentName(@Nullable String deploymentName) gitHubModels(@Nullable Boolean gitHubModels) maxRetries(@Nullable Integer maxRetries) microsoftFoundry(@Nullable Boolean microsoftFoundry) microsoftFoundryServiceVersion(@Nullable com.openai.azure.AzureOpenAIServiceVersion microsoftFoundryServiceVersion) organizationId(@Nullable String organizationId) safetyIdentifier(@Nullable String safetyIdentifier) Methods inherited from class org.springframework.ai.decision.DefaultDecisionOptions.Builder
model, self
-
Field Details
-
baseUrl
-
apiKey
-
credential
protected @Nullable com.openai.credential.Credential credential -
microsoftDeploymentName
-
microsoftFoundryServiceVersion
protected @Nullable com.openai.azure.AzureOpenAIServiceVersion microsoftFoundryServiceVersion -
organizationId
-
isMicrosoftFoundry
-
isGitHubModels
-
timeout
-
maxRetries
-
proxy
-
customHeaders
-
safetyIdentifier
-
-
Constructor Details
-
AbstractBuilder
protected AbstractBuilder()
-
-
Method Details
-
clone
- Specified by:
clonein interfaceDecisionOptions.Builder<B extends OpenAiDecisionOptions.AbstractBuilder<B>>- Overrides:
clonein classDefaultDecisionOptions.Builder<B extends OpenAiDecisionOptions.AbstractBuilder<B>>
-
baseUrl
-
apiKey
-
apiKey
-
credential
-
deploymentName
-
microsoftFoundryServiceVersion
public B microsoftFoundryServiceVersion(@Nullable com.openai.azure.AzureOpenAIServiceVersion microsoftFoundryServiceVersion) -
organizationId
-
microsoftFoundry
-
gitHubModels
-
timeout
-
maxRetries
-
proxy
-
customHeaders
-
safetyIdentifier
-
combineWith
Description copied from class:DefaultDecisionOptions.BuilderOverride the values set so far with the non-null values of the given builder, whichever implementation it is.A builder of another implementation is read through the options it builds, so a model its
build()fills in counts as set.- Specified by:
combineWithin interfaceDecisionOptions.Builder<B extends OpenAiDecisionOptions.AbstractBuilder<B>>- Overrides:
combineWithin classDefaultDecisionOptions.Builder<B extends OpenAiDecisionOptions.AbstractBuilder<B>>
-
build
- Specified by:
buildin interfaceDecisionOptions.Builder<B extends OpenAiDecisionOptions.AbstractBuilder<B>>- Overrides:
buildin classDefaultDecisionOptions.Builder<B extends OpenAiDecisionOptions.AbstractBuilder<B>>
-