MCPcopy Create free account
hub / github.com/docker/model-test / ChatMessage

Struct ChatMessage

models/chat.go:17–21  ·  view source on GitHub ↗

ChatMessage represents a single message in a chat conversation

Source from the content-addressed store, hash-verified

15
16// ChatMessage represents a single message in a chat conversation
17type ChatMessage struct {
18 Role string `json:"role"`
19 Content string `json:"content"`
20 Timestamp time.Time `json:"timestamp"`
21}
22
23// ChatSession represents a conversation session with message history
24type ChatSession struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected