UpdateSystemMessage - AG2

UpdateSystemMessage

``autogen.UpdateSystemMessagedataclass[

UpdateSystemMessage(content_updater)

Update the agent's system message before they reply

PARAMETER DESCRIPTION
content_updater The format string or function to update the agent's system message. Can be a format string or a Callable. If a string, it will be used as a template and substitute the context variables. If a Callable, it should have the signature: def my_content_updater(agent: ConversableAgent, messages: List[Dict[str, Any]]) -> str
TYPE:Union[Callable, str]

``content_updaterinstance-attribute

content_updater