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

# harnest.ui

> Public Python signatures, fields, and methods.

[All Python modules](https://usefused.com/docs/harnest/reference/api/overview.md) · [Import and compatibility guidance](https://usefused.com/docs/harnest/build/python-imports.md)

## Exports

| Name | Kind |
| - | - |
| [`emit`](#emit) | Function |

## emit

Send a named JSON value to the caller without adding it to model history.

AG-UI exposes this as CUSTOM; native transports expose ui\_event. Use public
display data only. Values are limited to 64 KiB, with 128 events and 512 KiB
per invocation. Streamed emissions apply backpressure and are not durable.

```python theme={null}
async emit(name: str, value: Any) -> None
```

> [accordion] Parameters and example
>
> | Parameter | Type | Default |
> | - | - | - |
> | `name` | `str` | Required |
> | `value` | `Any` | Required |
>
> ```python theme={null}
> from harnest.ui import emit
>
> await emit(name=..., value=...)
> ```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.