AgentToolResult

data class AgentToolResult<Output>(val successful: Boolean, val errorMessage: String? = null, val result: Output? = null)(source)

Represents the result of executing an agent tool operation.

Constructors

Link copied to clipboard
constructor(successful: Boolean, errorMessage: String? = null, result: Output? = null)

Properties

Link copied to clipboard

An optional error message describing the failure, if any.

Link copied to clipboard

An optional agent tool result.

Link copied to clipboard

Indicates whether the operation was successful.