Flint AI on GitHub
Source code, example agents, and issue tracking
Requirements
- Node.js 18 or later
- npm, pnpm, or yarn
Install the SDK
@langchain/openai, @langchain/anthropic, or @langchain/google-genai).
Peer dependencies and version ranges
Peer dependencies and version ranges
Every peer is optional and loaded dynamically, so a missing one surfaces only when you route through that provider — with a clear “install X” error — not at install time. For the three LLM SDKs,
wrap() also enforces the range at runtime and throws if the installed version is below the minimum or above the maximum supported major.Verify your installation
0.3.1).
Module formats
The SDK ships both ES module and CommonJS builds with TypeScript types, so it works in either module system:Troubleshooting
Troubleshooting
Cannot find module '@sandboxaq/flintai-sdk-ts'Confirm the install completed in the same project where you import it, and that your package.json lists it under dependencies.Cannot find module 'openai' (or another provider) at runtimePeers are loaded dynamically, so a provider you route through must be installed. Add the peer for that provider — see the table above.Provider version warning or error from wrap()wrap() reads the installed provider version and rejects one outside the supported range. Install a version within the range shown above:OPENAI_API_KEY, ANTHROPIC_API_KEY, GOOGLE_API_KEY), the SDK cannot tell which provider you mean, so auto-detection fails. This is common in local development. Call init() with an explicit provider before wrapping:Next steps
Configuration
Set up gateway URL, API keys, and environment variables
Monitor agents at runtime
Get your first traces in less than 10 minutes