Tool Error
class ToolError(val toolCallId: String, val toolName: String, val message: String, val error: AgentError? = null, val providerMetadata: ProviderMetadata = ProviderMetadata.None) : StreamEvent(source)
Tool execution failed. error carries the typed AgentError (NoSuchTool / InvalidToolInput / ToolExecution / ToolCallRepairFailed) so in-process consumers can when (event.error) instead of substring-matching message. @Transient — it's dropped on serialization (AgentError isn't @Serializable); message is the wire-stable rendering and stays the single source of display text.
Since
0.3.0-beta01
Constructors
Link copied to clipboard
constructor(toolCallId: String, toolName: String, message: String, error: AgentError? = null, providerMetadata: ProviderMetadata = ProviderMetadata.None)