remix-nlux
Version:
Remix IDE NLUX integration. Remix IDE is the leading IDE for building and deploying smart contracts on Ethereum. NLUX is a JavaScript and React library for building conversational AI experiences.
211 lines (165 loc) • 4.56 kB
text/typescript
// CHAT _____________________
import {AiChat} from './aiChat/aiChat';
export {AiChat} from './aiChat/aiChat';
export const createAiChat = <AiMsg = string>(): AiChat<AiMsg> => new AiChat<AiMsg>();
export {Observable} from './bus/observable';
export type {
ConversationOptions,
ConversationLayout,
} from './aiChat/options/conversationOptions';
export type {ComposerOptions, RemixComposerOptions} from './aiChat/options/composerOptions';
export type {
ResponseRenderer,
PromptRendererProps,
PromptRenderer,
MessageOptions,
} from './aiChat/options/messageOptions';
export type {DisplayOptions} from './aiChat/options/displayOptions';
export type {
PersonaOptions,
AssistantPersona,
UserPersona,
} from './aiChat/options/personaOptions';
export type {
ConversationStarter,
} from './types/conversationStarter';
export type {
IObserver,
} from './bus/observer';
export type {
AiChatInternalProps,
} from './types/aiChat/props';
export type {
AiChatStatus,
} from './types/aiChat/aiChat';
export type {
EventName,
EventCallback,
EventsConfig,
EventsMap,
ErrorCallback,
ErrorEventDetails,
ReadyCallback,
ReadyEventDetails,
PreDestroyCallback,
PreDestroyEventDetails,
MessageSentCallback,
MessageSentEventDetails,
MessageStreamStartedCallback,
MessageStreamStartedEventDetails,
MessageReceivedCallback,
MessageReceivedEventDetails,
MessageRenderedCallback,
MessageRenderedEventDetails,
} from './types/event';
export type {
StandardChatAdapter,
} from '/types/adapters/chat/standardChatAdapter';
export type {
StandardAdapterInfo,
AdapterEncodeFunction,
AdapterDecodeFunction,
InputFormat,
OutputFormat,
} from '/types/adapters/chat/standardAdapterConfig';
export type {
AiChatProps,
UpdatableAiChatProps,
AiChatPropsInEvents,
} from './types/aiChat/props';
export type {
HistoryPayloadSize,
} from './aiChat/options/conversationOptions';
export type {
ChatAdapter,
StreamingAdapterObserver,
DataTransferMode,
StreamSend,
BatchSend,
} from '/types/adapters/chat/chatAdapter';
export type {
ChatAdapterExtras,
} from '/types/adapters/chat/chatAdapterExtras';
export type {
ChatAdapterBuilder,
} from '/types/adapters/chat/chatAdapterBuilder';
export type {
AssistResult,
AssistAdapter,
} from '/types/adapters/assist/assistAdapter';
export type {
AssistAdapterBuilder,
} from '/types/adapters/assist/assistAdapterBuilder';
export type {
StreamParser,
StandardStreamParser,
StandardStreamParserOutput,
} from '/types/markdown/streamParser';
// CONTEXT __________________
export type {
ContextItemDataType,
ContextObject,
ContextItems,
ContextTasks,
ContextItem,
ContextTask,
} from '/types/aiContext/data';
export type {
ContextAdapter,
} from '/types/adapters/context/contextAdapter';
export type {
ContextAdapterExtras,
} from '/types/adapters/context/contextAdapterExtras';
export type {
ContextTasksAdapter,
} from '/types/adapters/context/contextTasksAdapter';
export type {
ContextDataAdapter,
} from '/types/adapters/context/contextDataAdapter';
export type {
ContextAdapterBuilder,
} from '/types/adapters/context/contextAdapterBuilder';
export type {
AiContext,
AiContextStatus,
} from '/types/aiContext/aiContext';
export type {
ContextItemHandler,
ContextTaskHandler,
ContextDomElementHandler,
} from '/types/aiContext/contextObservers';
export type {
InitializeContextResult,
DestroyContextResult,
FlushContextResult,
RunTaskResult,
ContextActionResult,
SetContextResult,
} from '/types/aiContext/contextResults';
export type {
DataSyncOptions,
} from './aiContext/options/dataSyncOptions';
export {
createAiContext,
} from './aiContext/aiContext';
export {
predefinedContextSize,
} from './aiContext/options/dataSyncOptions';
// HIGHLIGHTER ______________
export type {
Highlighter,
HighlighterExtension,
HighlighterColorMode,
CreateHighlighterOptions,
} from './aiChat/highlighter/highlighter';
// HTML SANITIZER ___________
export type {
SanitizerExtension,
} from '/sanitizer/sanitizer';
// CONVERSATION _____________
export type {
ChatItem,
} from '/types/conversation';
export type {
ParticipantRole,
} from './types/participant';