AS AgentScopeAPI 手册 / API Reference

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
toolsSet<String>工具列表(类型 `Set`)。The tools.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/extensions/judge/jev/example/JevToolSelectionMiddleware.java:244–250

maxTools

public Builder maxTools(int maxTools)

设置最大工具。

Performs the max tools operation.

参数Parameters
名称Name类型Type说明Description
maxToolsint最大工具(类型 `int`)。The max tools.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/extensions/judge/jev/example/JevToolSelectionMiddleware.java:252–255

confidenceThreshold

public Builder confidenceThreshold(double confidenceThreshold)

设置置信度阈值。

Performs the confidence threshold operation.

参数Parameters
名称Name类型Type说明Description
confidenceThresholddouble置信度阈值(类型 `double`)。The confidence threshold.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/extensions/judge/jev/example/JevToolSelectionMiddleware.java:257–260

failOpen

public Builder failOpen(boolean failOpen)

设置该配置项。

Performs the fail open operation.

参数Parameters
名称Name类型Type说明Description
failOpenbooleanfail 打开(类型 `boolean`)。The fail open.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/extensions/judge/jev/example/JevToolSelectionMiddleware.java:262–265

build

public JevToolSelectionMiddleware build()

构建并返回最终实例。

Creates and returns an instance.

返回Returns JevToolSelectionMiddleware
返回JevToolSelectionMiddleware。Returns jev tool selection middleware.
源码Source io/agentscope/extensions/judge/jev/example/JevToolSelectionMiddleware.java:267–269
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.