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