Class OpenAiResponsesChatProperties

java.lang.Object
org.springframework.ai.model.openai.autoconfigure.AbstractOpenAiProperties
org.springframework.ai.model.openai.autoconfigure.OpenAiResponsesChatProperties

@ConfigurationProperties("spring.ai.openai.responses") public class OpenAiResponsesChatProperties extends AbstractOpenAiProperties
Configuration properties for the OpenAI Responses API chat model, selected with spring.ai.openai.chat.api=responses.

Connection settings are shared with the Chat Completions model under spring.ai.openai, and can be overridden here.

Since:
2.1.0
Author:
Dimitar Proynov
  • Field Details

  • Constructor Details

    • OpenAiResponsesChatProperties

      public OpenAiResponsesChatProperties()
  • Method Details

    • getMaxOutputTokens

      public @Nullable Integer getMaxOutputTokens()
    • setMaxOutputTokens

      public void setMaxOutputTokens(@Nullable Integer maxOutputTokens)
    • getTemperature

      public @Nullable Double getTemperature()
    • setTemperature

      public void setTemperature(@Nullable Double temperature)
    • getTopP

      public @Nullable Double getTopP()
    • setTopP

      public void setTopP(@Nullable Double topP)
    • getReasoningEffort

      public @Nullable String getReasoningEffort()
    • setReasoningEffort

      public void setReasoningEffort(@Nullable String reasoningEffort)
    • getReasoningSummary

      public @Nullable String getReasoningSummary()
    • setReasoningSummary

      public void setReasoningSummary(@Nullable String reasoningSummary)
    • getVerbosity

      public @Nullable String getVerbosity()
    • setVerbosity

      public void setVerbosity(@Nullable String verbosity)
    • getResponseFormat

      public @Nullable OpenAiChatModel.ResponseFormat getResponseFormat()
    • setResponseFormat

      public void setResponseFormat(@Nullable OpenAiChatModel.ResponseFormat responseFormat)
    • getStrict

      public @Nullable Boolean getStrict()
    • setStrict

      public void setStrict(@Nullable Boolean strict)
    • getToolChoice

      public @Nullable Object getToolChoice()
    • setToolChoice

      public void setToolChoice(@Nullable Object toolChoice)
    • getParallelToolCalls

      public @Nullable Boolean getParallelToolCalls()
    • setParallelToolCalls

      public void setParallelToolCalls(@Nullable Boolean parallelToolCalls)
    • getMaxToolCalls

      public @Nullable Integer getMaxToolCalls()
    • setMaxToolCalls

      public void setMaxToolCalls(@Nullable Integer maxToolCalls)
    • getInclude

      public @Nullable List<String> getInclude()
    • setInclude

      public void setInclude(@Nullable List<String> include)
    • getTruncation

      public @Nullable String getTruncation()
    • setTruncation

      public void setTruncation(@Nullable String truncation)
    • getServiceTier

      public @Nullable String getServiceTier()
    • setServiceTier

      public void setServiceTier(@Nullable String serviceTier)
    • getPromptCacheKey

      public @Nullable String getPromptCacheKey()
    • setPromptCacheKey

      public void setPromptCacheKey(@Nullable String promptCacheKey)
    • getSafetyIdentifier

      public @Nullable String getSafetyIdentifier()
    • setSafetyIdentifier

      public void setSafetyIdentifier(@Nullable String safetyIdentifier)
    • getMetadata

      public @Nullable Map<String,String> getMetadata()
    • setMetadata

      public void setMetadata(@Nullable Map<String,String> metadata)
    • getExtraBody

      public @Nullable Map<String,Object> getExtraBody()
    • setExtraBody

      public void setExtraBody(@Nullable Map<String,Object> extraBody)
    • getHostedTools

    • setHostedTools

      public void setHostedTools(OpenAiResponsesChatProperties.HostedTools hostedTools)
    • toOptions

      public OpenAiResponsesChatOptions toOptions()