> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/relay/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/relay/_mcp/server.

# Struct Event Category

> Semantic category carried by ATOF `category`.

Generated from `cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker`.

```rust
pub struct EventCategory(/* private fields */);
```

Semantic category carried by ATOF `category`.

This is intentionally string-backed so consumers can preserve category values from newer producers without failing deserialization.

## Implementations

### `impl EventCategory`

<pre />

#### `agent`

<pre />

Top-level agent or workflow scope.

##### Returns

An [`EventCategory`](/reference/api/rust-library-reference/nemo-relay-plugin/struct-eventcategory) with the wire value `agent`.

#### `function`

<pre />

Generic function or application step.

##### Returns

An [`EventCategory`](/reference/api/rust-library-reference/nemo-relay-plugin/struct-eventcategory) with the wire value `function`.

#### `llm`

<pre />

LLM call.

##### Returns

An [`EventCategory`](/reference/api/rust-library-reference/nemo-relay-plugin/struct-eventcategory) with the wire value `llm`.

#### `tool`

<pre />

Tool invocation.

##### Returns

An [`EventCategory`](/reference/api/rust-library-reference/nemo-relay-plugin/struct-eventcategory) with the wire value `tool`.

#### `retriever`

<pre />

Retrieval step.

##### Returns

An [`EventCategory`](/reference/api/rust-library-reference/nemo-relay-plugin/struct-eventcategory) with the wire value `retriever`.

#### `embedder`

<pre />

Embedding-generation step.

##### Returns

An [`EventCategory`](/reference/api/rust-library-reference/nemo-relay-plugin/struct-eventcategory) with the wire value `embedder`.

#### `reranker`

<pre />

Result reranking step.

##### Returns

An [`EventCategory`](/reference/api/rust-library-reference/nemo-relay-plugin/struct-eventcategory) with the wire value `reranker`.

#### `guardrail`

<pre />

Guardrail or validation step.

##### Returns

An [`EventCategory`](/reference/api/rust-library-reference/nemo-relay-plugin/struct-eventcategory) with the wire value `guardrail`.

#### `evaluator`

<pre />

Evaluation or scoring step.

##### Returns

An [`EventCategory`](/reference/api/rust-library-reference/nemo-relay-plugin/struct-eventcategory) with the wire value `evaluator`.

#### `custom`

<pre />

Vendor-defined custom category.

##### Returns

An [`EventCategory`](/reference/api/rust-library-reference/nemo-relay-plugin/struct-eventcategory) with the wire value `custom`.

#### `unknown`

<pre />

Unknown or unclassified work.

##### Returns

An [`EventCategory`](/reference/api/rust-library-reference/nemo-relay-plugin/struct-eventcategory) with the wire value `unknown`.

#### `new`

<pre />

Create a category from an arbitrary producer-provided string.

##### Parameters

* `value`: Wire category value to preserve.

##### Returns

An [`EventCategory`](/reference/api/rust-library-reference/nemo-relay-plugin/struct-eventcategory) containing `value`.

#### `as_str`

<pre />

Return the string form serialized on the wire.

##### Returns

The category value as a string slice.

#### `to_scope_type`

<pre />

Convert this category to the closest legacy scope type for internal adapters that still need span-kind classification.

##### Returns

The closest matching [`ScopeType`](/reference/api/rust-library-reference/nemo-relay-plugin/enum-scopetype), or [`ScopeType::Unknown`](/reference/api/rust-library-reference/nemo-relay-plugin/enum-scopetype) when the category has no legacy equivalent.

## Trait Implementations

### `impl Clone for EventCategory`

<pre />

#### `clone`

<pre />

#### `clone_from`

<pre />

### `impl Debug for EventCategory`

<pre />

#### `fmt`

<pre />

### `impl<'de> Deserialize<'de> for EventCategory`

<pre />

#### `deserialize`

<pre />

### `impl From<&EventCategory> for ScopeType`

<pre />

#### `from`

<pre />

### `impl From<ScopeType> for EventCategory`

<pre />

#### `from`

<pre />

### `impl Hash for EventCategory`

<pre />

#### `hash`

<pre />

#### `hash_slice`

<pre />

### `impl Ord for EventCategory`

<pre />

#### `cmp`

<pre />

#### `max`

<pre />

#### `min`

<pre />

#### `clamp`

<pre />

### `impl PartialEq for EventCategory`

<pre />

#### `eq`

<pre />

#### `ne`

<pre />

### `impl PartialOrd for EventCategory`

<pre />

#### `partial_cmp`

<pre />

#### `lt`

<pre />

#### `le`

<pre />

#### `gt`

<pre />

#### `ge`

<pre />

### `impl Serialize for EventCategory`

<pre />

#### `serialize`

<pre />

### `impl Eq for EventCategory`

<pre />

### `impl StructuralPartialEq for EventCategory`

<pre />