@promptbook/core
Advanced tools
Comparing version 0.12.0 to 0.13.0
@@ -0,3 +1,11 @@ | ||
/** | ||
* Socket.io error for remote text generation | ||
* | ||
* This is sent from server to client when error occurs and stops the process | ||
*/ | ||
export interface Ptps_Error { | ||
/** | ||
* The error message which caused the error | ||
*/ | ||
readonly errorMessage: string; | ||
} |
import { TaskProgress } from '../../../../../types/TaskProgress'; | ||
/** | ||
* Socket.io progress for remote text generation | ||
* | ||
* This is sent from server to client arbitrarily and may be sent multiple times | ||
*/ | ||
export interface Ptps_Progress { | ||
/** | ||
* The progress of text generation | ||
*/ | ||
readonly taskProgress: TaskProgress; | ||
} |
import { uuid } from '../../../../.././types/typeAliases'; | ||
import { Prompt } from '../../../../../types/Prompt'; | ||
/** | ||
* Socket.io progress for remote text generation | ||
* | ||
* This is a request from client to server | ||
*/ | ||
export interface Ptps_Request { | ||
/** | ||
* Client responsible for the requests | ||
*/ | ||
readonly clientId: uuid; | ||
/** | ||
* The Prompt to execute | ||
*/ | ||
readonly prompt: Prompt; | ||
} |
import { PromptResult } from '../../../../../execution/PromptResult'; | ||
/** | ||
* Socket.io error for remote text generation | ||
* | ||
* This is sent from server to client when the generated text is completed | ||
*/ | ||
export interface Ptps_Response { | ||
/** | ||
* The result of the prompt | ||
*/ | ||
promptResult: PromptResult; | ||
} |
import { PromptTemplatePipelineLibrary } from '../../../../../classes/PromptTemplatePipelineLibrary'; | ||
import { uuid } from '../../../../../types/typeAliases'; | ||
import { string_uri, uuid } from '../../../../../types/typeAliases'; | ||
import { CommonExecutionToolsOptions } from '../../../../CommonExecutionToolsOptions'; | ||
@@ -11,2 +11,9 @@ import { NaturalExecutionTools } from '../../../../NaturalExecutionTools'; | ||
/** | ||
* Path for the Socket.io server to listen | ||
* | ||
* @default '/socket.io' | ||
* @example '/promptbook/socket.io' | ||
*/ | ||
readonly path: string_uri; | ||
/** | ||
* Prompt template pipeline library to use | ||
@@ -13,0 +20,0 @@ * |
{ | ||
"name": "@promptbook/core", | ||
"version": "0.12.0", | ||
"version": "0.13.0", | ||
"description": "Library to supercharge your use of large language models", | ||
@@ -5,0 +5,0 @@ "private": false, |
@@ -0,3 +1,11 @@ | ||
/** | ||
* Socket.io error for remote text generation | ||
* | ||
* This is sent from server to client when error occurs and stops the process | ||
*/ | ||
export interface Ptps_Error { | ||
/** | ||
* The error message which caused the error | ||
*/ | ||
readonly errorMessage: string; | ||
} |
import { TaskProgress } from '../../../../../types/TaskProgress'; | ||
/** | ||
* Socket.io progress for remote text generation | ||
* | ||
* This is sent from server to client arbitrarily and may be sent multiple times | ||
*/ | ||
export interface Ptps_Progress { | ||
/** | ||
* The progress of text generation | ||
*/ | ||
readonly taskProgress: TaskProgress; | ||
} |
import { uuid } from '../../../../.././types/typeAliases'; | ||
import { Prompt } from '../../../../../types/Prompt'; | ||
/** | ||
* Socket.io progress for remote text generation | ||
* | ||
* This is a request from client to server | ||
*/ | ||
export interface Ptps_Request { | ||
/** | ||
* Client responsible for the requests | ||
*/ | ||
readonly clientId: uuid; | ||
/** | ||
* The Prompt to execute | ||
*/ | ||
readonly prompt: Prompt; | ||
} |
import { PromptResult } from '../../../../../execution/PromptResult'; | ||
/** | ||
* Socket.io error for remote text generation | ||
* | ||
* This is sent from server to client when the generated text is completed | ||
*/ | ||
export interface Ptps_Response { | ||
/** | ||
* The result of the prompt | ||
*/ | ||
promptResult: PromptResult; | ||
} |
import { PromptTemplatePipelineLibrary } from '../../../../../classes/PromptTemplatePipelineLibrary'; | ||
import { uuid } from '../../../../../types/typeAliases'; | ||
import { string_uri, uuid } from '../../../../../types/typeAliases'; | ||
import { CommonExecutionToolsOptions } from '../../../../CommonExecutionToolsOptions'; | ||
@@ -11,2 +11,9 @@ import { NaturalExecutionTools } from '../../../../NaturalExecutionTools'; | ||
/** | ||
* Path for the Socket.io server to listen | ||
* | ||
* @default '/socket.io' | ||
* @example '/promptbook/socket.io' | ||
*/ | ||
readonly path: string_uri; | ||
/** | ||
* Prompt template pipeline library to use | ||
@@ -13,0 +20,0 @@ * |
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
556840
7065