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

Module for representing the OpenAI schema ChatCompletionRequestToolMessage.

Fields

  • :content - required - String.t() | [ExOpenAI.Components.ChatCompletionRequestToolMessageContentPart.t()]
    The contents of the tool message.

  • :role - required - :tool
    The role of the messages author, in this case tool.
    Allowed values: "tool"

  • :tool_call_id - required - String.t()
    Tool call that this message is responding to.

Summary

Types

@type t() :: %ExOpenAI.Components.ChatCompletionRequestToolMessage{
  content:
    String.t()
    | [ExOpenAI.Components.ChatCompletionRequestToolMessageContentPart.t()],
  role: :tool,
  tool_call_id: String.t()
}