autogen
autogen.OnContextCondition
OnContextCondition
Defines a condition for transitioning to another agent or nested chats using context variables and the ContextExpression class.
This is for context variable-based condition evaluation (does not use the agent’s LLM).
These are evaluated before the OnCondition and AfterWork conditions.
Name | Description |
---|---|
target | Type: ConversableAgent | dict[str, typing.Any] | None Default: None |
condition | Type: str | ContextExpression | None Default: None |
available | Type: Callable[[ConversableAgent, list[dict[str, Any]]], bool] | str | ContextExpression | None Default: None |
Class Attributes
available
condition