Nebula OpenAPI TypeScript wrapper
This package is a thin OpenAPI wrapper for Nebula, our AI agent service.
Configuration
import { configure } from "@thirdweb-dev/nebula";
configure({
secretKey: "<PROJECT_SECRET_KEY>",
});
You can also configure the client with a Thirdweb client instance:
import { configureWithClient } from "@thirdweb-dev/nebula";
import { twClient } from "./thirdwebClient";
configureWithClient(twClient);
Example Usage
import { getModels } from "@thirdweb-dev/nebula";
const models = await getModels();
You can also use this package on a client application (eg. NextJS) by retrieving the Nebula API client first.
import { getNebulaClient, getAgents } from "@thirdweb-dev/nebula";
const nebulaClient = getNebulaClient(authToken);
const agentsResult = await getAgents({ client: nebulaClient });
This package was autogenerated from the Nebula openAPI spec using @hey-api/openapi-ts