Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Latest commit

 

History

History
36 lines (30 loc) · 1.84 KB

MessageObject.md

File metadata and controls

36 lines (30 loc) · 1.84 KB

OpenapiClient::MessageObject

Properties

Name Type Description Notes
id String The identifier, which can be referenced in API endpoints.
object String The object type, which is always `thread.message`.
created_at Integer The Unix timestamp (in seconds) for when the message was created.
thread_id String The thread ID that this message belongs to.
role String The entity that produced the message. One of `user` or `assistant`.
content Array<MessageObjectContentInner> The content of the message in array of text and/or images.
assistant_id String If applicable, the ID of the assistant that authored this message.
run_id String If applicable, the ID of the run associated with the authoring of this message.
file_ids Array<String> A list of file IDs that the assistant should use. Useful for tools like retrieval and code_interpreter that can access files. A maximum of 10 files can be attached to a message.
metadata Object Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maxium of 512 characters long.

Example

require 'openapi_client'

instance = OpenapiClient::MessageObject.new(
  id: null,
  object: null,
  created_at: null,
  thread_id: null,
  role: null,
  content: null,
  assistant_id: null,
  run_id: null,
  file_ids: null,
  metadata: null
)