Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Chat = Type("Chat", func() { Extend(ChatOverview) Attribute("messages", ArrayOf(ChatMessage), "The list of messages in the chat") Required("messages") })
View Source
var ChatMessage = Type("ChatMessage", func() {
Attribute("id", String, "The ID of the message")
Attribute("role", String, "The role of the message")
Attribute("content", String, "The content of the message")
Attribute("model", String, "The model that generated the message")
Attribute("tool_call_id", String, "The tool call ID of the message")
Attribute("tool_calls", String, "The tool calls in the message as a JSON blob")
Attribute("finish_reason", String, "The finish reason of the message")
Attribute("user_id", String, "The ID of the user who created the message")
Attribute("created_at", String, func() {
Description("When the message was created.")
Format(FormatDateTime)
})
Required("id", "role", "model", "created_at")
})
View Source
var ChatOverview = Type("ChatOverview", func() {
Attribute("id", String, "The ID of the chat")
Attribute("title", String, "The title of the chat")
Attribute("user_id", String, "The ID of the user who created the chat")
Attribute("num_messages", Int, "The number of messages in the chat")
Attribute("created_at", String, func() {
Description("When the chat was created.")
Format(FormatDateTime)
})
Attribute("updated_at", String, func() {
Description("When the chat was last updated.")
Format(FormatDateTime)
})
Required("id", "title", "user_id", "num_messages", "created_at", "updated_at")
})
View Source
var ListChatsResult = Type("ListChatsResult", func() { Attribute("chats", ArrayOf(ChatOverview), "The list of chats") Required("chats") })
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.