AFTER_WORK - AG2

AFTER_WORK

autogen.agentchat.contrib.swarm_agent.AFTER_WORK

AFTER_WORK(*args, **kwargs)

Bases: AfterWork

Deprecated: Use AfterWork instead. This class will be removed in v0.14. All swarm functionality has been incorporated into group chat.

Source code in autogen/agentchat/contrib/swarm_agent.py

<br>104<br>105<br>106<br>107<br>108<br>109<br>110<br> <br>def __init__(self, *args: Any, **kwargs: Any) -> None:<br> warnings.warn(<br> "AFTER_WORK is deprecated and will be removed in v0.14. All swarm functionality has been incorporated into group chat.",<br> DeprecationWarning,<br> stacklevel=2,<br> )<br> super().__init__(*args, **kwargs)<br>

agent`instance-attribute

agent

next_agent_selection_msg`class-attributeinstance-attribute``

next_agent_selection_msg = None