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

# Function Plugin • Rust AI Agent SDK

> FunctionPlugin: A simple function-based plugin.

# FunctionPlugin

> Defined in the [**plugins**](../modules/plugins) module.

<Badge color="orange">Rust AI Agent SDK</Badge>

A simple function-based plugin.

## Fields

| Name         | Type                                                                            | Description |
| ------------ | ------------------------------------------------------------------------------- | ----------- |
| `info`       | `PluginInfo`                                                                    | -           |
| `handler`    | `Box&lt;dyn Fn(PluginHook`                                                      | -           |
| `serde_json` | `:Value) -&gt; Result&lt;Option&lt;serde_json::Value&gt;&gt; + Send + Sync&gt;` | -           |

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-rust/praisonai/src/plugins/mod.rs#L213">
  `praisonai/src/plugins/mod.rs` at line 213
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Plugins" icon="plug" href="/docs/rust/plugins" />
</CardGroup>
