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

# lsp • AI Agent SDK

> LSP Integration Module for PraisonAI Agents.

# lsp

<Badge color="blue">AI Agent</Badge>

LSP Integration Module for PraisonAI Agents.

Provides Language Server Protocol integration for code intelligence:

* Diagnostics (errors, warnings)
* Code completion suggestions
* Go to definition
* Find references
* Hover information

Zero Performance Impact:

* All imports are lazy loaded via **getattr**
* LSP client only initialized when needed
* No overhead when not in use

Usage:

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
from praisonaiagents.lsp import LSPClient

# Create client for a language
client = LSPClient(language="python")

# Start the language server
await client.start()

# Get diagnostics for a file
diagnostics = await client.get_diagnostics("/path/to/file.py")

# Get completions at a position
completions = await client.get_completions("/path/to/file.py", line=10, character=5)
```

## Import

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
from praisonaiagents import lsp
```
