View Source ExOpenAI.Components.UserMessageItem (ex_openai.ex v2.0.0-beta2)
User-authored messages within a thread.
Fields
:attachments- required -[ExOpenAI.Components.Attachment.t()]
Attachments associated with the user message. Defaults to an empty list.:content- required -[ExOpenAI.Components.UserMessageInputText.t() | ExOpenAI.Components.UserMessageQuotedText.t()]
Ordered content elements supplied by the user.:created_at- required -integer()
Unix timestamp (in seconds) for when the item was created.:id- required -String.t()
Identifier of the thread item.:inference_options- required -ExOpenAI.Components.InferenceOptions.t() | any():object- required -:"chatkit.thread_item"
Type discriminator that is alwayschatkit.thread_item.
Allowed values:"chatkit.thread_item"
Default:"chatkit.thread_item":thread_id- required -String.t()
Identifier of the parent thread.:type- required -:"chatkit.user_message"
Allowed values:"chatkit.user_message"
Default:"chatkit.user_message"
Summary
Types
@type t() :: %ExOpenAI.Components.UserMessageItem{ attachments: [ExOpenAI.Components.Attachment.t()], content: [ ExOpenAI.Components.UserMessageInputText.t() | ExOpenAI.Components.UserMessageQuotedText.t() ], created_at: integer(), id: String.t(), inference_options: ExOpenAI.Components.InferenceOptions.t() | any(), object: :"chatkit.thread_item", thread_id: String.t(), type: :"chatkit.user_message" }