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

A call to a function tool created by the model.

Fields

  • :function - required - {:%{}, [], [{{:required, [], [:arguments]}, {{:., [], [{:__aliases__, [alias: false], [:String]}, :t]}, [], []}}, {{:required, [], [:name]}, {{:., [], [{:__aliases__, [alias: false], [:String]}, :t]}, [], []}}]}
    The function that the model called.

  • :id - required - String.t()
    The ID of the tool call.

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

Summary

Types

@type t() :: %ExOpenAI.Components.ChatCompletionMessageToolCall{
  function: %{arguments: String.t(), name: String.t()},
  id: String.t(),
  type: :function
}