![Swarmauri Logo](https://github.com/swarmauri/swarmauri-sdk/blob/3d4d1cfa949399d7019ae9d8f296afba773dfb7f/assets/swarmauri.brand.theme.svg)

<p align="center">
    <a href="https://pypi.org/project/swarmauri_llm_perplexity/">
        <img src="https://img.shields.io/pypi/dm/swarmauri_llm_perplexity" alt="PyPI - Downloads"/></a>
    <a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_llm_perplexity/">
        <img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_llm_perplexity.svg"/></a>
    <a href="https://pypi.org/project/swarmauri_llm_perplexity/">
        <img src="https://img.shields.io/pypi/pyversions/swarmauri_llm_perplexity" alt="PyPI - Python Version"/></a>
    <a href="https://pypi.org/project/swarmauri_llm_perplexity/">
        <img src="https://img.shields.io/pypi/l/swarmauri_llm_perplexity" alt="PyPI - License"/></a>
    <a href="https://pypi.org/project/swarmauri_llm_perplexity/">
        <img src="https://img.shields.io/pypi/v/swarmauri_llm_perplexity?label=swarmauri_llm_perplexity&color=green" alt="PyPI - swarmauri_llm_perplexity"/></a>
</p>

---

# swarmauri_llm_perplexity

Provider-specific Perplexity LLM package for Swarmauri. This package offers direct imports for PerplexityModel while keeping implementation parity with `swarmauri_standard`.

## Features

- `PerplexityModel` adapter exported from `swarmauri_standard.llms.PerplexityModel`.
- Compatible with Python 3.10 through 3.12.

## Installation

```bash
# uv
uv add swarmauri_llm_perplexity

# pip
pip install swarmauri_llm_perplexity
```

## Usage

```python
from swarmauri_llm_perplexity import PerplexityModel
from swarmauri_standard.conversations.Conversation import Conversation
from swarmauri_standard.messages.HumanMessage import HumanMessage

conversation = Conversation()
conversation.add_message(HumanMessage(content="Hello from Swarmauri"))

model = PerplexityModel()
# Configure provider credentials before making requests.
# result = model.predict(conversation=conversation)
```

## Workflow Notes

- These adapters intentionally mirror the corresponding classes in `swarmauri_standard`.
- Use the provider package that matches your deployment and credential setup.
- Install only the provider packages you need to keep dependencies minimal.
