autogen_agentchat.utils#
This module implements various utilities common to AgentChat agents and teams.
- content_to_str(content: str | List[str | Image] | List[FunctionCall] | List[FunctionExecutionResult] | BaseModel) str [source]#
Convert the content of an LLMMessage to a string.
- remove_images(messages: List[Annotated[SystemMessage | UserMessage | AssistantMessage | FunctionExecutionResultMessage, FieldInfo(annotation=NoneType, required=True, discriminator='type')]]) List[Annotated[SystemMessage | UserMessage | AssistantMessage | FunctionExecutionResultMessage, FieldInfo(annotation=NoneType, required=True, discriminator='type')]] [source]#
Remove images from a list of LLMMessages