> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ag2.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# autogen.agentchat.group.available_condition.AvailableCondition

<h2 id="autogen.agentchat.group.available_condition.AvailableCondition" class="doc doc-heading">
  <code class="doc-symbol doc-symbol-heading doc-symbol-class" />

  <span class="doc doc-object-name doc-class-name">AvailableCondition</span>
</h2>

```python theme={null}
AvailableCondition(**data: Any)
```

Protocol for determining if a condition is available to be evaluated.<br />Create a new model by parsing and validating input data from keyword arguments.<br />Raises \[`ValidationError`]\[pydantic\_core.ValidationError] if the input data cannot be
validated to form a valid model.<br />`self` is explicitly positional-only to allow `self` as a field name.

<b>Parameters:</b>

| Name     | Description   |
| -------- | ------------- |
| `**data` | **Type:** Any |

### Class Attributes

<code class="doc-symbol doc-symbol-heading doc-symbol-attribute" />

#### model\_config

<br />

<br />

### Instance Methods

<code class="doc-symbol doc-symbol-heading doc-symbol-method" />

#### is\_available

```python theme={null}
is_available(
    self,
    agent: ConversableAgent,
    messages: list[dict[str, Any]]
) -> bool
```

Determine if the condition should be considered for evaluation.<br />

<b>Parameters:</b>

| Name       | Description                                                                 |
| ---------- | --------------------------------------------------------------------------- |
| `agent`    | The agent evaluating the condition<br /><br />**Type:** ConversableAgent    |
| `messages` | The conversation history<br /><br />**Type:** list\[dict\[str, typing.Any]] |

<b>Returns:</b>

| Type | Description                                                |
| ---- | ---------------------------------------------------------- |
| bool | True if the condition should be evaluated, False otherwise |

<br />
