http4k
Toggle table of contents
6.55.0.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
http4k
http4k-ai-mcp-core
/
org.http4k.ai.mcp.model
/
Content
/
ToolResult
Tool
Result
@
JsonSerializable
@
PolymorphicLabel
(
value
=
"tool_result"
)
data
class
ToolResult
(
val
toolUseId
:
ToolUseId
,
val
content
:
List
<
Content
>
?
=
null
,
val
structuredContent
:
Map
<
String
,
Any
>
?
=
null
,
val
isError
:
Boolean
?
=
false
,
val
_meta
:
Content.Meta
?
=
null
)
:
Content
(
source
)
Members
Constructors
Tool
Result
Link copied to clipboard
constructor
(
toolUseId
:
ToolUseId
,
content
:
List
<
Content
>
?
=
null
,
structuredContent
:
Map
<
String
,
Any
>
?
=
null
,
isError
:
Boolean
?
=
false
,
_meta
:
Content.Meta
?
=
null
)
Properties
_
meta
Link copied to clipboard
val
_meta
:
Content.Meta
?
content
Link copied to clipboard
val
content
:
List
<
Content
>
?
is
Error
Link copied to clipboard
val
isError
:
Boolean
?
structured
Content
Link copied to clipboard
val
structuredContent
:
Map
<
String
,
Any
>
?
tool
Use
Id
Link copied to clipboard
val
toolUseId
:
ToolUseId