OnCondition

OnCondition(
    target: autogen.agentchat.conversable_agent.ConversableAgent | dict[str, typing.Any] = None,
    condition: str | autogen.agentchat.contrib.swarm_agent.ContextStr | Callable = '',
    available: str | Callable | None = None
)

Defines a condition for transitioning to another agent or nested chats

Parameters:
NameDescription
targetType: autogen.agentchat.conversable_agent.ConversableAgent | dict[str, typing.Any]

Default: None
conditionType: str | autogen.agentchat.contrib.swarm_agent.ContextStr | Callable

Default:
availableType: str | Callable | None

Default: None

Class Attributes

available



condition



target