LlamaIndex
Claix ToolSpec for LlamaIndex
Endpoint
SDK
pip install 'claix-ai[llamaindex]'ClaixToolSpec is a LlamaIndex BaseToolSpec. Call to_tool_list() and pass the tools to a LlamaIndex agent. Extraction still uses a Claix schema; Q&A uses persisted document_id / space_id.
1. Links
- GitHub · claix-python — claix/integrations/llamaindex.py
- PyPI · claix-ai[llamaindex] — installs llama-index-core with the SDK
- LlamaIndex docs — agents, ToolSpec, and tool lists
- Python SDK — ClaixClient, auth, and method map
2. Spec functions
| Function | What it does |
|---|---|
| extract_document | Extract typed JSON from a local file using schema_id. Optional space_id and is_agent_mode. |
| ask_document | Ask up to 5 questions about a persisted document_id. Missing evidence is JSON null. |
| ask_knowledge_space | Ask up to 5 cross-document questions over a space_id. |
3. Tool list
from claix import ClaixClient from claix.integrations.llamaindex import ClaixToolSpec spec = ClaixToolSpec(client=ClaixClient()) tools = spec.to_tool_list() # extract_document, ask_document, ask_knowledge_space