类 ToolUseBlock.Builder
java.lang.Object
io.agentscope.core.message.ToolUseBlock.Builder
- 封闭类:
ToolUseBlock
Builder for constructing ToolUseBlock instances.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明build()Builds a new ToolUseBlock with the configured properties.Sets the raw content for streaming tool calls.Sets the unique identifier for the tool call.Sets the input parameters for the tool.Sets the provider-specific metadata.Sets the name of the tool to execute.
-
构造器详细资料
-
Builder
public Builder()
-
-
方法详细资料
-
id
Sets the unique identifier for the tool call.- 参数:
id- The tool call ID- 返回:
- This builder for chaining
-
name
Sets the name of the tool to execute.- 参数:
name- The tool name- 返回:
- This builder for chaining
-
input
Sets the input parameters for the tool.- 参数:
input- The tool input parameters map- 返回:
- This builder for chaining
-
content
Sets the raw content for streaming tool calls.- 参数:
content- The raw content for streaming- 返回:
- This builder for chaining
-
metadata
Sets the provider-specific metadata.For Gemini, use
ToolUseBlock.METADATA_THOUGHT_SIGNATUREas the key to store thought signatures.- 参数:
metadata- The metadata map- 返回:
- This builder for chaining
-
build
Builds a new ToolUseBlock with the configured properties.- 返回:
- A new ToolUseBlock instance
-