ToolResultOutput

Structured return type for Tool.toModelOutput.

Since

0.3.0-beta01

Inheritors

Types

Link copied to clipboard
@SerialName(value = "content")
class Content(val value: List<JsonElement>, val isError: Boolean = false) : ToolResultOutput
Link copied to clipboard
@SerialName(value = "error")
class Error(val message: String) : ToolResultOutput
Link copied to clipboard
@SerialName(value = "error-json")
class ErrorJson(val json: JsonElement) : ToolResultOutput
Link copied to clipboard
@SerialName(value = "execution-denied")
class ExecutionDenied(val reason: String? = null) : ToolResultOutput
Link copied to clipboard
@SerialName(value = "json")
class Json(val json: JsonElement) : ToolResultOutput
Link copied to clipboard
@SerialName(value = "text")
class Text(val text: String) : ToolResultOutput

Functions