> 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 Function Definition

> A function definition within a tool definition.

Generated from `cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi`.

<pre />

A function definition within a tool definition.

## Fields

### `name: String`

The name of the function.

### `description: Option<String>`

A description of what the function does.

### `parameters: Option<Json>`

The JSON Schema for the function parameters.

## Trait Implementations

### `impl Clone for FunctionDefinition`

<pre />

#### `clone`

<pre />

#### `clone_from`

<pre />

### `impl Debug for FunctionDefinition`

<pre />

#### `fmt`

<pre />

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

<pre />

#### `deserialize`

<pre />

### `impl PartialEq for FunctionDefinition`

<pre />

#### `eq`

<pre />

#### `ne`

<pre />

### `impl Serialize for FunctionDefinition`

<pre />

#### `serialize`

<pre />

### `impl StructuralPartialEq for FunctionDefinition`

<pre />