Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.92 KB

File metadata and controls

36 lines (27 loc) · 1.92 KB

MessageItem

One message in an /add batch (spec §2). content accepts a plain string (shorthand for a single text ContentItem) or an explicit ContentItem list.

Properties

Name Type Description Notes
sender_id str Who produced this message — the user id for a user turn, the agent id for an assistant turn. This is the identifier /api/v2/memory/get and /api/v2/memory/search later scope by (`user_id` / `agent_id`).
sender_name str [optional]
role str Turn type: "user", "assistant", or "tool" for a tool result. An agent trajectory uses the OpenAI shape — an "assistant" message carrying `tool_calls`, followed by a "tool" message carrying `tool_call_id`.
timestamp int When the message was produced, as a UNIX timestamp in MILLISECONDS. A seconds-scale value is rejected with 422 rather than silently rescaled, because a window mixing the two would mis-order and mis-split.
content Content
tool_calls List[ToolCall] [optional]
tool_call_id str [optional]

Example

from everos_cloud.models.message_item import MessageItem

# TODO update the JSON string below
json = "{}"
# create an instance of MessageItem from a JSON string
message_item_instance = MessageItem.from_json(json)
# print the JSON string representation of the object
print(MessageItem.to_json())

# convert the object into a dict
message_item_dict = message_item_instance.to_dict()
# create an instance of MessageItem from a dict
message_item_from_dict = MessageItem.from_dict(message_item_dict)

[Back to Model list] [Back to API list] [Back to README]