Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nlbridge/core

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nlbridge/core - npm Package Compare versions

Comparing version 0.2.0-beta to 0.2.1-beta

18

nlbridge-core.d.ts

@@ -9,11 +9,9 @@ type ActionId = 'chat' | 'chat-stream';

type ChatStreamActionPayload = {
type ChatActionPayload = {
message: string;
};
type ChatStreamActionRunner = (action: 'chat-stream', payload: ChatStreamActionPayload) => Promise<{
type ChatActionRunner = (action: 'chat', payload: ChatActionPayload) => Promise<{
success: true;
result: {
onChunkReceived: (callback: (chunk: string) => void) => void;
onComplete: (callback: () => void) => void;
onError: (callback: (error: string) => void) => void;
message: string;
};

@@ -25,9 +23,11 @@ } | {

type ChatActionPayload = {
type ChatStreamActionPayload = {
message: string;
};
type ChatActionRunner = (action: 'chat', payload: ChatActionPayload) => Promise<{
type ChatStreamActionRunner = (action: 'chat-stream', payload: ChatStreamActionPayload) => Promise<{
success: true;
result: {
message: string;
onChunkReceived: (callback: (chunk: string) => void) => void;
onComplete: (callback: () => void) => void;
onError: (callback: (error: string) => void) => void;
};

@@ -51,2 +51,2 @@ } | {

export { type ActionId, type OpenAiChatModel, type OpenAiConfig, actionRunner, actions, asOpenAiChatModel, asValidAction, isValidAction, isValidPayloadForAction, openAiDefaultChatModel };
export { type ActionId, type ChatActionPayload, type ChatActionRunner, type ChatStreamActionPayload, type ChatStreamActionRunner, type OpenAiChatModel, type OpenAiConfig, actionRunner, actions, asOpenAiChatModel, asValidAction, isValidAction, isValidPayloadForAction, openAiDefaultChatModel };
{
"name": "@nlbridge/core",
"version": "0.2.0-beta",
"version": "0.2.1-beta",
"description": "The core library content for @nlbridge",

@@ -5,0 +5,0 @@ "keywords": [

@@ -1,2 +0,2 @@

# `nlbridge` Express.js 🌲💬⚙️
# `nlbridge` Express.js 🌲💬 🌉

@@ -3,0 +3,0 @@ ![Free And Open Source](https://img.shields.io/badge/Free%20%26%20Open%20Source-1ccb61)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc