toggle menu
http4k
6.15.0.1
jvm
switch theme
search in API
http4k-ai-llm-core
/
org.http4k.ai.llm.model
/
Message
Message
@
JsonSerializable
@
Polymorphic
(
labelKey
=
"type"
)
sealed
class
Message
Inheritors
System
User
Assistant
ToolResult
Custom
Members
Types
Assistant
Link copied to clipboard
@
JsonSerializable
@
PolymorphicLabel
(
value
=
"assistant"
)
data
class
Assistant
(
val
contents
:
List
<
Content
>
=
emptyList()
,
val
toolRequests
:
List
<
ToolRequest
>
=
emptyList()
)
:
Message
Custom
Link copied to clipboard
@
JsonSerializable
@
PolymorphicLabel
(
value
=
"custom"
)
data
class
Custom
(
val
attributes
:
Map
<
String
,
Any
>
)
:
Message
System
Link copied to clipboard
@
JsonSerializable
@
PolymorphicLabel
(
value
=
"system"
)
data
class
System
(
val
text
:
String
)
:
Message
Tool
Result
Link copied to clipboard
@
JsonSerializable
@
PolymorphicLabel
(
value
=
"tool"
)
data
class
ToolResult
(
val
id
:
RequestId
,
val
tool
:
ToolName
,
val
text
:
String
)
:
Message
User
Link copied to clipboard
@
JsonSerializable
@
PolymorphicLabel
(
value
=
"user"
)
data
class
User
(
val
contents
:
List
<
Content
>
=
emptyList()
)
:
Message