Specific
record Specific(String toolName) implements ToolChoice
源码Source
io/agentscope/core/model/ToolChoice.java:71–83承载特定数据的记录类型。位于 io.agentscope.core.model 包,实现 ToolChoice。核心成员包括 toolName、Specific。
Specific mode: Force the model to call a specific tool by name.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
toolName | String | 执行工具名称相关操作。 The name of the tool that must be called |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public Specific(String toolName) | 创建特定工具选项。 Creates a Specific tool choice. |
记录组件详情Record Component Detail
toolName
String toolName执行工具名称相关操作。
The name of the tool that must be called
源码Source
io/agentscope/core/model/ToolChoice.java:71–83构造器详情Constructor Detail
Specific
public Specific(String toolName)
创建特定工具选项。
Creates a Specific tool choice.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
toolName | String | 工具名称(类型 `String`)。The name of the tool that must be called (must not be null or empty) |
IllegalArgumentException可能抛出 `IllegalArgumentException`。if toolName is null or empty
源码Source
io/agentscope/core/model/ToolChoice.java:78–82