类class
agentscope.middlewareChatModelCandidate
@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 |
|---|---|---|---|
name | str | 名称字段。 | — |
model | ChatModelBase | 模型字段。 | — |
description | str | `description` 字段。 | — |
属性详情Attribute Detail
name
str名称字段。声明为 str。
The name field.
源码Source
agentscope/middleware/_model_router.py:27model
ChatModelBase模型字段。声明为 ChatModelBase。
The model field.
源码Source
agentscope/middleware/_model_router.py:30description
strdescription 字段。声明为 str。
The description field.
源码Source
agentscope/middleware/_model_router.py:33