Get Started
Installation
Open Source SDK
Check out the open-source Github Repo
Introduction
In addition to the TypeScript SDK documentation, all Guides showcase code examples in TypeScript.
Check the Literal AI TypeScript Client on NPM for the documentation.
npm i @literalai/client@latest
Instantiation
import { LiteralClient } from "@literalai/client";
const literalAiClient = new LiteralClient({apiKey: process.env["LITERAL_API_KEY"]});
Disable Thread and Step Ingestion APIs
When instantiating the client, you have the option to disable the Thread and Step ingestion APIs that comes with the SDK, like thread.step()
. This can be useful when you want to disable this without changing the code.
import { LiteralClient } from "@literalai/client";
const literalAiClient = new LiteralClient({
apiKey: process.env["LITERAL_API_KEY"],
disabled: true
});
Was this page helpful?