AS AgentScopeAPI 手册 / API Reference
类class agentscope.middleware

ChatModelCandidate

@dataclass
class ChatModelCandidate
源码Source agentscope/middleware/_model_router.py:24–34

聊天模型 Candidate,驱动智能体的推理、工具调用与会话执行。位于 agentscope.middleware 包。

A named chat model and the criteria for selecting it. Declared in agentscope.middleware.

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
namestr
名称字段。
—
modelChatModelBase
模型字段。
—
descriptionstr
`description` 字段。
—

属性详情Attribute Detail

name

str

名称字段。声明为 str。

The name field.

源码Source agentscope/middleware/_model_router.py:27

model

ChatModelBase

模型字段。声明为 ChatModelBase。

The model field.

源码Source agentscope/middleware/_model_router.py:30

description

str

description 字段。声明为 str。

The description field.

源码Source agentscope/middleware/_model_router.py:33
基于官方固定版本源码静态生成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.