MCPcopy Index your code
hub / github.com/docker/docker-agent / ImplicitUserMessageAt

Function ImplicitUserMessageAt

pkg/session/session.go:291–295  ·  view source on GitHub ↗

ImplicitUserMessageAt is like ImplicitUserMessage but stamps the message with an explicit creation time, letting callers (and tests) avoid the wall clock.

(createdAt time.Time, content string)

Source from the content-addressed store, hash-verified

289// ImplicitUserMessageAt is like ImplicitUserMessage but stamps the message with
290// an explicit creation time, letting callers (and tests) avoid the wall clock.
291func ImplicitUserMessageAt(createdAt time.Time, content string) *Message {
292 msg := UserMessageAt(createdAt, content)
293 msg.Implicit = true
294 return msg
295}
296
297func UserMessage(content string, multiContent ...chat.MessagePart) *Message {
298 return UserMessageAt(time.Now(), content, multiContent...)

Calls 1

UserMessageAtFunction · 0.85