ToolResultBuilder

Builder for creating MessagePart.Tool.Result instances from Java code.

Usage from Java:

MessagePart.Tool.Result message = MessageBuilder.toolResult()
.id("call_123")
.tool("search")
.content("Found 5 results")
.build();

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Link copied to clipboard

Sets the tool result ID.

Link copied to clipboard
Link copied to clipboard

Adds a text content part to the message.

Link copied to clipboard

Sets the tool name.