@nlbridge/core
Advanced tools
Comparing version 0.2.0-beta to 0.2.1-beta
@@ -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) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10581
71