> ## 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.io.run_response.RunResponseProtocol

<h2 id="autogen.io.run_response.RunResponseProtocol" class="doc doc-heading">
  <code class="doc-symbol doc-symbol-heading doc-symbol-class" />

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

```python theme={null}
RunResponseProtocol(*args, **kwargs)
```

Base class for protocol classes.<br />Protocol classes are defined as:: <br />    class Proto(Protocol): <br />        def meth(self) -> int: <br />            ...<br />Such classes are primarily used with static type checkers that recognize
structural subtyping (static duck-typing).<br />For example:: <br />    class C: <br />        def meth(self) -> int: <br />            return 0

def func(x: Proto) -> int: <br />        return x.meth()

func(C())  # Passes static type check

See PEP 544 for details. Protocol classes decorated with
@typing.runtime\_checkable act as simple-minded runtime protocols that check
only the presence of given attributes, ignoring their type signatures.<br />Protocol classes can be generic, they are defined as:: <br />    class GenProto[T](Protocol): <br />        def meth(self) -> T: <br />            ...

<b>Parameters:</b>

| Name       | Description |
| ---------- | ----------- |
| `*args`    |             |
| `**kwargs` |             |

### Instance Attributes

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

#### context\_variables

<br />

<br />

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

#### cost

<br />

<br />

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

#### events

<br />

<br />

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

#### last\_speaker

<br />

<br />

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

#### messages

<br />

<br />

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

#### summary

<br />

<br />

### Instance Methods

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

#### process

```python theme={null}
process(self, processor: EventProcessorProtocol | None = None) -> None
```

<b>Parameters:</b>

| Name        | Description                                                                                                                    |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------ |
| `processor` | **Type:** [EventProcessorProtocol](/docs/api-reference/autogen/io/EventProcessorProtocol) \| None<br /><br />**Default:** None |

<br />

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

#### set\_ui\_tools

```python theme={null}
set_ui_tools(self, tools: list[Tool]) -> None
```

<b>Parameters:</b>

| Name    | Description                                                     |
| ------- | --------------------------------------------------------------- |
| `tools` | **Type:** list\[[Tool](/docs/api-reference/autogen/tools/Tool)] |

<br />
