SDKs

Official SDKs

Typed Python client for the Claix API, plus drop-in tools for LangChain, LangGraph, CrewAI, and LlamaIndex.

LlamaIndex

Claix ToolSpec for LlamaIndex

Endpoint

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

2. Spec functions

FunctionWhat it does
extract_documentExtract typed JSON from a local file using schema_id. Optional space_id and is_agent_mode.
ask_documentAsk up to 5 questions about a persisted document_id. Missing evidence is JSON null.
ask_knowledge_spaceAsk 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

Request examples

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