MCPcopy
hub / github.com/docker/docker-agent / NewMessageItem

Function NewMessageItem

pkg/session/session.go:340–342  ·  view source on GitHub ↗

Helper functions for creating SessionItems NewMessageItem creates a SessionItem containing a message

(msg *Message)

Source from the content-addressed store, hash-verified

338
339// NewMessageItem creates a SessionItem containing a message
340func NewMessageItem(msg *Message) Item {
341 return Item{Message: msg}
342}
343
344// NewSubSessionItem creates a SessionItem containing a sub-session
345func NewSubSessionItem(subSession *Session) Item {

Calls

no outgoing calls