Package Installation
Peer Dependencies
The AI SDK requires @graphysdk/core for the GraphConfig type:
TypeScript Configuration
The SDK is written in TypeScript and ships with type definitions. No additional @types packages are needed.
Minimum TypeScript version: 4.7+
Recommended tsconfig.json settings:
Environment Setup
First, create an API key in the Graphy console. Then store it in an environment variable:
Access it in your code:
Never commit API keys to version control. Use environment variables or a secrets manager.
Verify Installation