Skip to main contentpraisonaiagents.lsp
Core SDK
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:
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)
Overview
This module provides components for lsp.