Class ChatOptions

java.lang.Object
com.tnsai.agents.async.ChatOptions

public final class ChatOptions extends Object
Options for asynchronous chat operations.
  • Method Details

    • getSystemPrompt

      public Optional<String> getSystemPrompt()
      Gets the optional system prompt.
    • getHistory

      public Optional<List<Map<String,Object>>> getHistory()
      Gets the optional conversation history.
    • getTemperature

      public Optional<Float> getTemperature()
      Gets the optional temperature override.
    • getMaxTokens

      public Optional<Integer> getMaxTokens()
      Gets the optional max tokens override.
    • getTimeout

      public Duration getTimeout()
      Gets the timeout duration.
    • isStream

      public boolean isStream()
      Returns true if streaming is enabled.
    • isUseTools

      public boolean isUseTools()
      Returns true if tools should be used.
    • defaults

      public static ChatOptions defaults()
      Creates default options.
    • builder

      public static ChatOptions.Builder builder()
      Creates a new builder.