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

A call to a custom tool created by the model.

Fields

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

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

  • :type - required - :custom
    The type of the tool. Always custom.
    Allowed values: "custom"

Summary

Types

@type t() :: %ExOpenAI.Components.ChatCompletionMessageCustomToolCall{
  custom: %{input: String.t(), name: String.t()},
  id: String.t(),
  type: :custom
}