toggle menu
http4k
6.9.0.0
jvm
switch theme
search in API
http4k-connect-ai-anthropic
/
org.http4k.connect.anthropic.action
/
Content
Content
@
JsonSerializable
@
Polymorphic
(
labelKey
=
"type"
)
sealed
class
Content
Inheritors
Text
Image
ToolUse
ToolResult
Members
Types
Image
Link copied to clipboard
@
JsonSerializable
@
PolymorphicLabel
(
value
=
"image"
)
data
class
Image
(
val
source
:
Source
)
:
Content
Text
Link copied to clipboard
@
JsonSerializable
@
PolymorphicLabel
(
value
=
"text"
)
data
class
Text
(
val
text
:
String
)
:
Content
Tool
Result
Link copied to clipboard
@
JsonSerializable
@
PolymorphicLabel
(
value
=
"tool_result"
)
data
class
ToolResult
(
val
tool_use_id
:
ToolUseId
,
val
content
:
Any
)
:
Content
Tool
Use
Link copied to clipboard
@
JsonSerializable
@
PolymorphicLabel
(
value
=
"tool_use"
)
data
class
ToolUse
(
val
name
:
ToolName
,
val
id
:
ToolUseId
,
val
input
:
Any
)
:
Content