camel.responses 包#

子模块#

camel.responses.agent_responses 模块#

class camel.responses.agent_responses.ChatAgentResponse(*, msgs: List[BaseMessage], terminated: bool, info: Dict[str, Any])[来源]#

基类:BaseModel

ChatAgent的响应。

msgs#

一个包含零条、一条或若干条消息的列表。 如果列表为空,说明消息生成过程中出现了错误。 如果列表只有一条消息,这是正常模式。 如果列表有多条消息,这是评论模式。

Type:

列表[BaseMessage]

terminated#

一个布尔值,表示代理是否决定终止聊天会话。

Type:

布尔值

info#

关于聊天消息的额外信息。

Type:

字典[字符串, 任意类型]

info: Dict[str, Any]#
model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True}#

模型的配置,应该是一个符合[ConfigDict][pydantic.config.ConfigDict]的字典。

property msg#
msgs: List[BaseMessage]#
terminated: bool#

模块内容#

class camel.responses.ChatAgentResponse(*, msgs: List[BaseMessage], terminated: bool, info: Dict[str, Any])[来源]#

基类:BaseModel

ChatAgent的响应。

msgs#

一个包含零条、一条或几条消息的列表。 如果列表为空,说明消息生成过程中出现了错误。 如果列表中有一条消息,这是正常模式。 如果列表中有多条消息,这是评论模式。

Type:

列表[BaseMessage]

terminated#

一个布尔值,指示代理是否决定终止聊天会话。

Type:

布尔值

info#

关于聊天消息的额外信息。

Type:

字典[字符串, 任意类型]

info: Dict[str, Any]#
model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True}#

模型的配置,应该是一个符合[ConfigDict][pydantic.config.ConfigDict]的字典。

property msg#
msgs: List[BaseMessage]#
terminated: bool#