Package: @effect/ai
Module: Prompt
Encoded representation of tool result parts for serialization.
Signature
export interface ToolResultPartEncoded extends BasePartEncoded<"tool-result", ToolResultPartOptions> {
/**
* Unique identifier matching the original tool call.
*/
readonly id: string
/**
* Name of the tool that was executed.
*/
readonly name: string
/**
* Whether or not the result of executing the tool call handler was an error.
*/
readonly isFailure: boolean
/**
* The result returned by the tool execution.
*/
readonly result: unknown
/**
* Whether the tool was executed by the provider (true) or framework (false).
*/
readonly providerExecuted: boolean
}
Since v1.0.0