camel.responses package#
Submodules#
camel.responses.agent_responses module#
- class camel.responses.agent_responses.ChatAgentResponse(*, msgs: List[BaseMessage], terminated: bool, info: Dict[str, Any])[source]#
Bases:
BaseModel
Response of a ChatAgent.
- msgs#
A list of zero, one or several messages. If the list is empty, there is some error in message generation. If the list has one message, this is normal mode. If the list has several messages, this is the critic mode.
- Type:
List[BaseMessage]
- terminated#
A boolean indicating whether the agent decided to terminate the chat session.
- Type:
bool
- info#
Extra information about the chat message.
- Type:
Dict[str, Any]
- info: Dict[str, Any]#
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- property msg#
- msgs: List[BaseMessage]#
- terminated: bool#
Module contents#
- class camel.responses.ChatAgentResponse(*, msgs: List[BaseMessage], terminated: bool, info: Dict[str, Any])[source]#
Bases:
BaseModel
Response of a ChatAgent.
- msgs#
A list of zero, one or several messages. If the list is empty, there is some error in message generation. If the list has one message, this is normal mode. If the list has several messages, this is the critic mode.
- Type:
List[BaseMessage]
- terminated#
A boolean indicating whether the agent decided to terminate the chat session.
- Type:
bool
- info#
Extra information about the chat message.
- Type:
Dict[str, Any]
- info: Dict[str, Any]#
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- property msg#
- msgs: List[BaseMessage]#
- terminated: bool#