This package is a thin OpenAPI wrapper for Nebula, our AI agent service.
npm install @thirdweb-dev/nebulaThis package is a thin OpenAPI wrapper for Nebula, our AI agent service.
``ts
import { configure } from "@thirdweb-dev/nebula";
// call this once at the startup of your application
configure({
secretKey: "
});
`
You can also configure the client with a Thirdweb client instance:
`ts
import { configureWithClient } from "@thirdweb-dev/nebula";
import { twClient } from "./thirdwebClient";
// call this once at the startup of your application
configureWithClient(twClient);
`
`ts
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.
`ts
import { getNebulaClient, getAgents } from "@thirdweb-dev/nebula";
// retrieve the Nebula auth token
const nebulaClient = getNebulaClient(authToken);
// pass the client inside the methods
const agentsResult = await getAgents({ client: nebulaClient });
``
This package was autogenerated from the Nebula openAPI spec using @hey-api/openapi-ts