Package-level declarations
Types
Represents the "delta," or changes of a chat message. This is used by streams stream 1 token at a time.
Represents the data for a Tool.Type.CODE_INTERPRETER tool call. This contains the code that was run by the code interpreter, and the outputs of the code interpreter.
Represents a tool call by an com.cjcrafter.openai.assistants.Assistant to a code interpreter.
Represents a function call by either a chat completion, or an Assistant.
Represents the "delta," or changes of a function call. This is used by streams to stream 1 token at a time.
Represents the parameters of the function. You can think of this like a method signature, where each property is a parameter to a method.
Represents 1 single parameter from a map of parameters for a function.
Represents a tool call for Tool.Type.FUNCTION.
Represents a tool call for Tool.Type.RETRIEVAL.
Wraps a tool call by ChatGPT. You should check the type of the tool call, and handle the request. For example, if the type is Tool.Type.FUNCTION, you should call the function and return the result.
Represents the "delta," or changes of a tool call. This is used by streams to stream 1 token at a time.
Sometimes, you may want chat to be forced to use a tool. Sometimes you may want to prevent chat from using a tool. This sealed class represents all options that can be used with the Chat endpoint.