View Source ExOpenAI.Components.ChatCompletionTool (ex_openai.ex v2.0.0-beta2)

A function tool that can be used to generate a response.

Fields

  • :function - required - ExOpenAI.Components.FunctionObject.t()

  • :type - required - :function
    The type of the tool. Currently, only function is supported.
    Allowed values: "function"

Summary

Types

@type t() :: %ExOpenAI.Components.ChatCompletionTool{
  function: ExOpenAI.Components.FunctionObject.t(),
  type: :function
}