toggle menu
Embabel Agent Documentation
JVM
switch theme
search in API
Embabel Agent Documentation
/
com.embabel.chat
/
UserMessage
/
UserMessage
User
Message
constructor
(
content
:
String
,
name
:
String
?
=
null
,
assets
:
List
<
Asset
>
=
emptyList()
,
timestamp
:
Instant
=
Instant.now()
)
Convenience constructor for text-only messages with optional assets.
constructor
(
parts
:
List
<
ContentPart
>
,
name
:
String
?
=
null
,
assets
:
List
<
Asset
>
=
emptyList()
,
timestamp
:
Instant
=
Instant.now()
)