lsp • AI Agent SDK

LSP Integration Module for PraisonAI Agents.

lsp

AI Agent

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
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
from praisonaiagents import lsp