> ## 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.

# agent • Rust AI Agent SDK

> Agent module for PraisonAI

# agent

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

Agent module for PraisonAI

This module provides the core Agent struct and builder pattern.
Agents are the primary execution unit in PraisonAI.

# Example

```rust,ignore theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
use praisonai_core::Agent;

let agent = Agent::new()
.name("assistant")
.instructions("You are a helpful assistant")
.build();

let response = agent.chat("Hello!").await?;
```

## Import

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
use praisonai::agent::*;
```

## Classes

<CardGroup cols={2}>
  <Card title="Agent" icon="brackets-curly" href="../classes/Agent">
    The core Agent struct Agents are the primary execution unit in PraisonAI. They combine: - LLM provider for generating responses - Tools for...
  </Card>
</CardGroup>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Agent" icon="robot" href="/docs/rust/agent" />

  <Card title="Rust Overview" icon="book-open" href="/docs/rust/overview" />

  <Card title="Rust Quickstart" icon="rocket" href="/docs/rust/quickstart" />

  <Card title="Rust Installation" icon="download" href="/docs/rust/installation" />

  <Card title="Rust Autonomy" icon="wand-magic-sparkles" href="/docs/rust/autonomy" />
</CardGroup>
