Currently langchain-js integration is in beta. It currently supports only the agents and chains based on
ChatModels, like "gpt-4" and "gpt-3.5-turbo".- import the
NebulyCallbackHandlerfrom the Nebuly SDK - pass the
NebulyCallbackHandlerto the original langchain method calls
sendData method needs to be called AFTER the chain has been run.
The needed parameters are
string
required
An id or username uniquely identifying the end-user. We recommend hashing their username or email address, in order to avoid sending us any identifying information.
string
required
The Nebuly API key. If no API key is explicitly provided, the handler will search for it in the NEBULY_API_KEY environment variable.
Chat Models
- Typescript
Retrievers
- Typescript
Agents
- Full response
- Streaming response