AfterWork

AfterWork(agent: AfterWorkOption | ConversableAgent | str | Callable[..., Any], next_agent_selection_msg: str | ContextStr | Callable[..., Any] | None = None)

Handles the next step in the conversation when an agent doesn’t suggest a tool call or a handoff

Parameters:
NameDescription
agentType: AfterWorkOption | ConversableAgent | str | Callable[…, Any]
next_agent_selection_msgType: str | ContextStr | Callable[…, Any] | None

Default: None

Class Attributes

agent



next_agent_selection_msg