View Source ExOpenAI.Components.Message (ex_openai.ex v2.0.0-beta)

A message to or from the model.

Fields

  • :content - required - [any() | any() | any() | any() | any() | any() | any() | any() | any()]
    The content of the message

  • :id - required - String.t()
    The unique ID of the message.

  • :phase - optional - any() | any()

  • :role - required - any()
    The role of the message. One of unknown, user, assistant, system, critic, discriminator, developer, or tool.

  • :status - required - any()
    The status of item. One of in_progress, completed, or incomplete. Populated when items are returned via API.

  • :type - required - :message
    The type of the message. Always set to message.
    Allowed values: "message"
    Default: "message"

Summary

Types