This project contains the ResilientDB SDK and examples for building AI agents.
ResSDK/
├── resilient-sdk/ # The main SDK package
│ ├── src/ # SDK source code
│ ├── examples/ # Example applications
│ ├── openapi.yaml # OpenAPI specification
│ ├── package.json # SDK dependencies
│ └── tsconfig.json # TypeScript config
└── README.md # This file
cd resilient-sdk
npm install
npm run generate
npm run buildcd resilient-sdk/examples
npm install
npm run start- Type-safe API calls - Full TypeScript support
- OpenAPI compliant - Generated from OpenAPI specification
- Simple interface - Easy to use for AI agents
- Error handling - Comprehensive error types
resilient-sdk/examples/example.ts- Basic getTransactions usage
The SDK is designed to work seamlessly with AI agent frameworks like LangChain, providing:
- Structured API calls
- Type-safe parameters
- Clear error handling
- Easy integration with tool calling
- Update
resilient-sdk/openapi.yaml - Run
npm run generatein resilient-sdk - Update wrapper in
resilient-sdk/src/index.ts
- Create new TypeScript file in
resilient-sdk/examples/ - Import SDK:
import { ResilientDB } from '../dist/index' - Add your example code
MIT