Skip to main content

API Reference

Welcome to the Nebula SDK API Reference. This section provides detailed documentation for all classes, methods, and types available in the SDK.

Overview

The Nebula SDK is organized into several main modules:

Chat

Conversational AI with streaming support

Memory

Persistent storage for AI context and data

Agent

Autonomous AI agents with tool integration

Storage

Decentralized storage on the 0G network

Quick Reference

Core Classes

Common Types

Authentication

All API calls require authentication. Set your API key when initializing SDK components:

Error Handling

The SDK uses structured error objects for consistent error handling:

Rate Limits

The SDK respects the following rate limits:

Pagination

For endpoints that return large datasets, use pagination:

Versioning

The SDK follows semantic versioning. Always specify the version in your package.json:

Support