Builder
public static final class Builder
源码Source
io/agentscope/extensions/judge/jev/example/JevToolSelectionMiddleware.java:232–270构建器,用于构建并配置目标实例。位于 io.agentscope.extensions.judge.jev.example 包。核心成员包括 alwaysIncludeTools、maxTools、confidenceThreshold、failOpen、build。
A class in io.agentscope.extensions.judge.jev.example that evaluates agent behaviour and records tracing and telemetry data. Declared in io.agentscope.extensions.judge.jev.example.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Builder alwaysIncludeTools(Set<String> tools) | 设置该配置项。 Performs the always include tools operation. |
public Builder maxTools(int maxTools) | 设置最大工具。 Performs the max tools operation. |
public Builder confidenceThreshold(double confidenceThreshold) | 设置置信度阈值。 Performs the confidence threshold operation. |
public Builder failOpen(boolean failOpen) | 设置该配置项。 Performs the fail open operation. |
public JevToolSelectionMiddleware build() | 构建并返回最终实例。 Creates and returns an instance. |
方法详情Method Detail
alwaysIncludeTools
public Builder alwaysIncludeTools(Set<String> tools)
设置该配置项。
Performs the always include tools operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
tools | Set<String> | 工具列表(类型 `Set`)。The tools. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/extensions/judge/jev/example/JevToolSelectionMiddleware.java:244–250maxTools
public Builder maxTools(int maxTools)
设置最大工具。
Performs the max tools operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
maxTools | int | 最大工具(类型 `int`)。The max tools. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/extensions/judge/jev/example/JevToolSelectionMiddleware.java:252–255confidenceThreshold
public Builder confidenceThreshold(double confidenceThreshold)
设置置信度阈值。
Performs the confidence threshold operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
confidenceThreshold | double | 置信度阈值(类型 `double`)。The confidence threshold. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/extensions/judge/jev/example/JevToolSelectionMiddleware.java:257–260failOpen
public Builder failOpen(boolean failOpen)
设置该配置项。
Performs the fail open operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
failOpen | boolean | fail 打开(类型 `boolean`)。The fail open. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/extensions/judge/jev/example/JevToolSelectionMiddleware.java:262–265build
public JevToolSelectionMiddleware build()
构建并返回最终实例。
Creates and returns an instance.
JevToolSelectionMiddleware返回JevToolSelectionMiddleware。Returns jev tool selection middleware.
源码Source
io/agentscope/extensions/judge/jev/example/JevToolSelectionMiddleware.java:267–269