Skip to main content

Module: model

Table of contents

Enumerations

Classes

Interfaces

Type Aliases

Variables

Type Aliases

ChatAuxiliaryBar

Ƭ ChatAuxiliaryBar: Object

Type declaration

NameTypeDescription
idstringAn unique id
renderReact.ReactNodeThe content that will be displayed in the auxiliary bar
titlestringThe title

Defined in

src/model/chat.ts:128


ChatInfo

Ƭ ChatInfo: Object

Type declaration

NameTypeDescription
createdDateDate | stringDate when the chat was created.
idstringUnique identifier for the chat.
initiatorstringUser who initiated the chat.
isDirect?booleanFalse if this is a group chat, true if this is a 1-1 chat.
namestringName of the chat.

Defined in

src/model/chat.ts:23


ChatMember

Ƭ ChatMember: Object

Type declaration

NameTypeDescription
handleMessageTypes?string[]The type of messages that this member handlers (only applied to brains)
idstringThe id of the member
memberTypestringThe member type (user, brain or assistant)
settings?ChatMemberSettingThe current settings of the member

Defined in

src/model/chat.ts:147


ChatMemberSetting

Ƭ ChatMemberSetting: Object

Index signature

[key: string]: any

Type declaration

NameTypeDescription
ignorePreviousMessages?booleanIf true, the full chat history won't be sent to the brain, only the latest message. (Only applied to brains)
instructions?stringCustom instructions (Only applied to brains)

Defined in

src/model/chat.ts:137


ChatMessage

Ƭ ChatMessage: Object

Type declaration

NameTypeDescription
attachments?ChatMessageAttachment[]Array of attachments included in the message.
audio?stringAudio content of the message, if any.
hidden?booleanIndicates if the message is hidden.
idstringThe message identifier.
isSystemMessage?booleanTrue if the message is a system message. (We use this for error messages, or other messages that shouldn't be catch by brains in the history)
recipientsstring[]Array of recipient identifiers.
sendDateDate | stringDate and time when the message was sent.
senderIdstringIdentifier of the message sender.
text?stringText content of the message, if any.

Defined in

src/model/chat.ts:89


ChatMessageAttachment

Ƭ ChatMessageAttachment: Object

Type declaration

NameTypeDescription
attachmentTypestringType of the attachment.
caption?stringOptional caption for the attachment.
filestringFile path or URL for the attachment.
idstringUnique identifier for the attachment.
mimeTypestringMIME type of the attachment.
originalFileNamestringOriginal file name of the attachment.
sizenumberSize of the attachment in bytes.

Defined in

src/model/chat.ts:58


FileType

Ƭ FileType: keyof typeof FileTypes

Defined in

src/model/workbench/explorer/folderTree.tsx:13


IAuxiliaryBarMode

Ƭ IAuxiliaryBarMode: "default" | "tabs"

Defined in

src/model/workbench/auxiliaryBar.ts:8


IAuxiliaryData

Ƭ IAuxiliaryData: Object

Type declaration

NameType
keyUniqueId
titleReact.ReactNode

Defined in

src/model/workbench/auxiliaryBar.ts:10


IEditorOptions

Ƭ IEditorOptions: MonacoEditor.IEditorOptions & MonacoEditor.IGlobalEditorOptions

Defined in

src/model/workbench/editor.ts:31


RenderFunctionProps

Ƭ RenderFunctionProps: (props: any) => React.ReactNode

Type declaration

▸ (props): React.ReactNode

Parameters
NameType
propsany
Returns

React.ReactNode

Defined in

src/model/workbench/explorer/explorer.tsx:13

Variables

KeyCodeString

Const KeyCodeString: Partial\<{ [key in KeyCode]: string }>

Defined in

src/model/keybinding.ts:3