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();Content copied to clipboard
Functions
Link copied to clipboard
Builds a new MessagePart.Tool.Result instance.
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.