Builder
public static final class Builder<I, O>
源码Source
io/agentscope/runtime/engine/agents/saa/RuntimeFunctionToolCallback.java:135–202构建器,用于构建并配置目标实例。位于 io.agentscope.runtime.engine.agents.saa 包。核心成员包括 description、inputSchema、inputType、toolMetadata、toolCallResultConverter、build。
A class in io.agentscope.runtime.engine.agents.saa that deploys, schedules and serves agents. Declared in io.agentscope.runtime.engine.agents.saa.
方法摘要Method Summary
方法详情Method Detail
description
public RuntimeFunctionToolCallback.Builder<I, O> description(String description)
设置该配置项。
Performs the description operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
description | String | 描述(类型 `String`)。The description. |
RuntimeFunctionToolCallback.Builder<I, O>返回RuntimeFunctionToolCallback.构建器。Returns runtime function tool callback builder.
源码Source
io/agentscope/runtime/engine/agents/saa/RuntimeFunctionToolCallback.java:158–161inputSchema
public RuntimeFunctionToolCallback.Builder<I, O> inputSchema(String inputSchema)
设置输入模式。
Performs the input schema operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
inputSchema | String | 输入模式(类型 `String`)。The input schema. |
RuntimeFunctionToolCallback.Builder<I, O>返回RuntimeFunctionToolCallback.构建器。Returns runtime function tool callback builder.
源码Source
io/agentscope/runtime/engine/agents/saa/RuntimeFunctionToolCallback.java:163–166inputType
public RuntimeFunctionToolCallback.Builder<I, O> inputType(Type inputType)
设置输入类型。
Performs the input type operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
inputType | Type | 输入类型(类型 `Type`)。The input type. |
RuntimeFunctionToolCallback.Builder<I, O>返回RuntimeFunctionToolCallback.构建器。Returns runtime function tool callback builder.
源码Source
io/agentscope/runtime/engine/agents/saa/RuntimeFunctionToolCallback.java:168–171inputType
public RuntimeFunctionToolCallback.Builder<I, O> inputType(ParameterizedTypeReference<?> inputType)
设置输入类型。
Performs the input type operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
inputType | ParameterizedTypeReference<?> | 输入类型(类型 `ParameterizedTypeReference`)。The input type. |
RuntimeFunctionToolCallback.Builder<I, O>返回RuntimeFunctionToolCallback.构建器。Returns runtime function tool callback builder.
源码Source
io/agentscope/runtime/engine/agents/saa/RuntimeFunctionToolCallback.java:173–177toolMetadata
public RuntimeFunctionToolCallback.Builder<I, O> toolMetadata(ToolMetadata toolMetadata)
设置工具元数据。
Performs the tool metadata operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
toolMetadata | ToolMetadata | 工具元数据(类型 `ToolMetadata`)。The tool metadata. |
RuntimeFunctionToolCallback.Builder<I, O>返回RuntimeFunctionToolCallback.构建器。Returns runtime function tool callback builder.
源码Source
io/agentscope/runtime/engine/agents/saa/RuntimeFunctionToolCallback.java:179–182toolCallResultConverter
public RuntimeFunctionToolCallback.Builder<I, O> toolCallResultConverter(ToolCallResultConverter toolCallResultConverter)
设置工具调用结果转换器。
Performs the tool call result converter operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
toolCallResultConverter | ToolCallResultConverter | 工具调用结果转换器(类型 `ToolCallResultConverter`)。The tool call result converter. |
RuntimeFunctionToolCallback.Builder<I, O>返回RuntimeFunctionToolCallback.构建器。Returns runtime function tool callback builder.
源码Source
io/agentscope/runtime/engine/agents/saa/RuntimeFunctionToolCallback.java:184–187build
public RuntimeFunctionToolCallback<I, O> build()
构建并返回最终实例。
Creates and returns an instance.
RuntimeFunctionToolCallback<I, O>返回RuntimeFunctionToolCallback。Returns runtime function tool callback.
源码Source
io/agentscope/runtime/engine/agents/saa/RuntimeFunctionToolCallback.java:189–200