Skip to main content
LangChain connects to RedPill through its OpenAI integration. Use the Chat Completions base URL and an exact model ID from the live catalog.

Send a message

Use model.stream(...) instead of model.invoke(...) to render tokens as they arrive.

Build an agent

LangChain’s create_agent runtime is built on LangGraph. Bound each run and validate tool input:
Choose a model whose supported_features includes tools.

Add retrieval

Query the embedding catalog, then configure OpenAIEmbeddings with a current model:

Verification boundary

This base-URL integration does not verify ACI locally. TypeScript applications that require an attested, TLS-bound connection can inject connectAci().fetch through LangChain’s configuration hook and audit the retained receipt, using the same pattern as the OpenAI SDK.