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_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}#
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_fields: ClassVar[Dict[str, FieldInfo]] = {'info': FieldInfo(annotation=Dict[str, Any], required=True), 'msgs': FieldInfo(annotation=List[BaseMessage], required=True), 'terminated': FieldInfo(annotation=bool, required=True)}#
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.
This replaces Model.__fields__ from Pydantic V1.
- 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_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}#
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_fields: ClassVar[Dict[str, FieldInfo]] = {'info': FieldInfo(annotation=Dict[str, Any], required=True), 'msgs': FieldInfo(annotation=List[BaseMessage], required=True), 'terminated': FieldInfo(annotation=bool, required=True)}#
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.
This replaces Model.__fields__ from Pydantic V1.
- property msg#
- msgs: List[BaseMessage]#
- terminated: bool#