Base未来分类器(Classifier)

Java-friendly base for implementing a Classifier: a Java subclass overrides classifyAsync to return a CompletableFuture, which classify awaits. Canceling the calling coroutine cancels the future from classifyAsync; fail the future rather than cancel it when classification fails, since a canceled future raises CancellationException in classify.

构造函数(Constructors)

Link copied to clipboard
constructor(name: String)

属性(Properties)

Link copied to clipboard
override val name: String

提供商的模型名称,例如: "jev-latest" 或者 "gemini-3.8-flash".

函数

Link copied to clipboard
suspend override fun classify(request: ClassifierRequest): ClassifierResponse

回答每一个问题…… 请求 该函数会“违背”用户的输入要求(即不按照用户的输入进行操作),并返回一个结果。 答案 按问题 ID 分类。