AfterWork

AfterWork(agent: AfterWorkOption | ConversableAgent | str | Callable[..., Any], next_agent_selection_msg: str | ContextStr | Callable[[ConversableAgent, list[dict[str, Any]]], str] | 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[[ConversableAgent, list[dict[str, Any]]], str] | None

Default: None

Instance Attributes

agent



next_agent_selection_msg