类 ToolCallParam.Builder
java.lang.Object
io.agentscope.core.tool.ToolCallParam.Builder
- 封闭类:
ToolCallParam
Builder for ToolCallParam.
-
方法概要
修饰符和类型方法说明Sets the calling agent.build()Builds the ToolCallParam instance.context(ToolExecutionContext context) Sets the tool execution context.emitter(ToolEmitter emitter) Sets the ToolEmitter for streaming tool output.Sets the input parameters.toolUseBlock(ToolUseBlock toolUseBlock) Sets the tool use block.
-
方法详细资料
-
toolUseBlock
Sets the tool use block.- 参数:
toolUseBlock- The tool use block- 返回:
- This builder
-
input
Sets the input parameters.- 参数:
input- The input parameters- 返回:
- This builder
-
agent
Sets the calling agent.- 参数:
agent- The agent- 返回:
- This builder
-
context
Sets the tool execution context.- 参数:
context- The execution context- 返回:
- This builder
-
emitter
Sets the ToolEmitter for streaming tool output.- 参数:
emitter- The ToolEmitter- 返回:
- This builder
-
build
Builds the ToolCallParam instance.- 返回:
- A new ToolCallParam
-