Skip to main content

Module: shared

Variables

AI_ROLE

Const AI_ROLE: "AI"

Defined in

packages/convostack-shared/dist/index.d.ts:4


CONVERSATION_EVENT_KIND_CONVERSATION_METADATA

Const CONVERSATION_EVENT_KIND_CONVERSATION_METADATA: "conversation_metadata"

Defined in

packages/convostack-shared/dist/index.d.ts:3


CONVERSATION_EVENT_KIND_MESSAGE

Const CONVERSATION_EVENT_KIND_MESSAGE: "message"

Defined in

packages/convostack-shared/dist/index.d.ts:1


CONVERSATION_EVENT_KIND_MESSAGE_PART

Const CONVERSATION_EVENT_KIND_MESSAGE_PART: "message_part"

Defined in

packages/convostack-shared/dist/index.d.ts:2


HUMAN_ROLE

Const HUMAN_ROLE: "Human"

Defined in

packages/convostack-shared/dist/index.d.ts:5

Functions

addSecondsToDate

addSecondsToDate(date, seconds): Date

Parameters

NameType
dateDate
secondsnumber

Returns

Date

Defined in

packages/convostack-shared/dist/index.d.ts:10


generateRandomID

generateRandomID(length): string

Parameters

NameType
lengthnumber

Returns

string

Defined in

packages/convostack-shared/dist/index.d.ts:7


unixTimestamp

unixTimestamp(date?): number

Parameters

NameType
date?Date

Returns

number

Defined in

packages/convostack-shared/dist/index.d.ts:9