UPDATE_SYSTEM_MESSAGE

UPDATE_SYSTEM_MESSAGE(update_function: str | Callable)

Update the agent’s system message before they reply

Parameters:
NameDescription
update_functionThe string or function to update the agent’s system message.

Can be a 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_update_function(agent: ConversableAgent, messages: List[Dict[str, Any]]) -> str

Type: str | Callable

Class Attributes

update_function