Class ModifyAssistantRequest.Builder

java.lang.Object
io.github.stefanbratanov.jvm.openai.ModifyAssistantRequest.Builder
Enclosing class:
ModifyAssistantRequest

public static class ModifyAssistantRequest.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • model

      public ModifyAssistantRequest.Builder model(String model)
      Parameters:
      model - ID of the model to use.
    • model

      Parameters:
      model - OpenAIModel to use.
    • name

      Parameters:
      name - The name of the assistant. The maximum length is 256 characters.
    • description

      public ModifyAssistantRequest.Builder description(String description)
      Parameters:
      description - The description of the assistant. The maximum length is 512 characters.
    • instructions

      public ModifyAssistantRequest.Builder instructions(String instructions)
      Parameters:
      instructions - The system instructions that the assistant uses. The maximum length is 256,000 characters.
    • tool

      Parameters:
      tool - tool to append to the list of tools enabled on the assistant.
    • tools

      public ModifyAssistantRequest.Builder tools(List<Tool> tools)
      Parameters:
      tools - tools to append to the list of tools enabled on the assistant.
    • fileIds

      public ModifyAssistantRequest.Builder fileIds(List<String> fileIds)
      Parameters:
      fileIds - A list of file IDs attached to this assistant. There can be a maximum of 20 files attached to the assistant. Files are ordered by their creation date in ascending order.
    • metadata

      public ModifyAssistantRequest.Builder metadata(Map<String,String> metadata)
      Parameters:
      metadata - Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maxium of 512 characters long.
    • temperature

      public ModifyAssistantRequest.Builder temperature(double temperature)
      Parameters:
      temperature - What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
    • topP

      public ModifyAssistantRequest.Builder topP(double topP)
      Parameters:
      topP - An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.
    • responseFormat

      public ModifyAssistantRequest.Builder responseFormat(AssistantsResponseFormat responseFormat)
      Parameters:
      responseFormat - An object specifying the format that the model must output.
    • build

      public ModifyAssistantRequest build()