> ## 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.events.agent_events.ExecuteCodeBlockEvent

<h2 id="autogen.events.agent_events.ExecuteCodeBlockEvent" class="doc doc-heading">
  <code class="doc-symbol doc-symbol-heading doc-symbol-class" />

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

```python theme={null}
ExecuteCodeBlockEvent(*args: Any, **data: Any)
```

!!! abstract "Usage Documentation"
[Models](/docs/api-reference/autogen/events/concepts/models)

A base class for creating Pydantic models.<br />

<b>Parameters:</b>

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

### Class Attributes

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

#### code

<br />

<br />

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

#### code\_block\_count

<br />

<br />

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

#### language

<br />

<br />

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

#### model\_config

<br />

<br />

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

#### recipient

<br />

<br />
