OnCondition

OnCondition(
    target: ConversableAgent | dict[str, Any] = None,
    condition: str | ContextStr | Callable[..., Any] = '',
    available: Callable | str | None = None
)

Defines a condition for transitioning to another agent or nested chats

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

Default: None
conditionType: str | ContextStr | Callable[…, Any]

Default:
availableType: Callable | str | None

Default: None

Class Attributes

available



condition



target