autogen
autogen.OnCondition
OnCondition
Defines a condition for transitioning to another agent or nested chats.
This is for LLM-based condition evaluation where these conditions are translated into tools and attached to the agent.
These are evaluated after the OnCondition conditions but before the AfterWork conditions.
Name | Description |
---|---|
target | Type: ConversableAgent | dict[str, typing.Any] | None Default: None |
condition | Type: str | ContextStr | Callable[[ConversableAgent, list[dict[str, Any]]], str] | None Default: None |
available | Type: Callable[[ConversableAgent, list[dict[str, Any]]], bool] | str | ContextExpression | None Default: None |
Instance Attributes
available
condition