@terryavg/neptune-ai-chatbot 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README +16 -0
- package/dist/chart-component-RCLR3IKU.mjs +887 -0
- package/dist/chat-input-L5LIF4NP.mjs +452 -0
- package/dist/chat-message-FTACCRMO.mjs +1904 -0
- package/dist/chunk-5VL3YPMQ.mjs +406 -0
- package/dist/chunk-C2VGAYER.mjs +295 -0
- package/dist/chunk-FWCSY2DS.mjs +37 -0
- package/dist/index.css +2805 -0
- package/dist/index.d.mts +88 -0
- package/dist/index.d.ts +88 -0
- package/dist/index.js +6787 -0
- package/dist/index.mjs +2869 -0
- package/dist/styles.css +1 -0
- package/package.json +57 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
|
|
4
|
+
interface LocalDebugConfig {
|
|
5
|
+
username: string;
|
|
6
|
+
password: string;
|
|
7
|
+
baseUrl: string;
|
|
8
|
+
}
|
|
9
|
+
interface NeptuneChatBotProps {
|
|
10
|
+
agentId: string;
|
|
11
|
+
debug?: boolean;
|
|
12
|
+
theme?: "light" | "dark";
|
|
13
|
+
localDebug?: LocalDebugConfig;
|
|
14
|
+
}
|
|
15
|
+
declare function NeptuneChatBot({ agentId: propAgentId, debug: propDebug, theme: propTheme, localDebug: propLocalDebug, }: NeptuneChatBotProps): react_jsx_runtime.JSX.Element;
|
|
16
|
+
|
|
17
|
+
interface TextContent {
|
|
18
|
+
type: "text";
|
|
19
|
+
text: string;
|
|
20
|
+
}
|
|
21
|
+
interface FileContent {
|
|
22
|
+
type: "file";
|
|
23
|
+
data: string;
|
|
24
|
+
mediaType: string;
|
|
25
|
+
filename: string;
|
|
26
|
+
}
|
|
27
|
+
interface ImageContent {
|
|
28
|
+
type: "image";
|
|
29
|
+
image: string;
|
|
30
|
+
mediaType: string;
|
|
31
|
+
}
|
|
32
|
+
type MessageContent = TextContent | FileContent | ImageContent;
|
|
33
|
+
interface ToolCall {
|
|
34
|
+
id: string;
|
|
35
|
+
createdAt: string;
|
|
36
|
+
toolCallId: string;
|
|
37
|
+
toolName: string;
|
|
38
|
+
args: Record<string, any>;
|
|
39
|
+
result: any;
|
|
40
|
+
status: string;
|
|
41
|
+
error?: string | null;
|
|
42
|
+
}
|
|
43
|
+
interface Step {
|
|
44
|
+
id: string;
|
|
45
|
+
createdAt: string;
|
|
46
|
+
stepOrder: number;
|
|
47
|
+
type: string;
|
|
48
|
+
text?: string;
|
|
49
|
+
tools?: ToolCall[];
|
|
50
|
+
}
|
|
51
|
+
interface MessageMetadata {
|
|
52
|
+
logId?: string;
|
|
53
|
+
steps?: Step[];
|
|
54
|
+
}
|
|
55
|
+
interface Message {
|
|
56
|
+
id: string;
|
|
57
|
+
content: string | MessageContent[];
|
|
58
|
+
role: "user" | "assistant" | "system";
|
|
59
|
+
createdAt: string;
|
|
60
|
+
waiting?: boolean;
|
|
61
|
+
metadata?: MessageMetadata;
|
|
62
|
+
isToolExecuting?: boolean;
|
|
63
|
+
executingToolName?: string;
|
|
64
|
+
}
|
|
65
|
+
interface Conversation {
|
|
66
|
+
id: string;
|
|
67
|
+
title: string;
|
|
68
|
+
messages: Message[];
|
|
69
|
+
createdAt: string;
|
|
70
|
+
updatedAt: string;
|
|
71
|
+
waiting?: boolean;
|
|
72
|
+
isTemporary?: boolean;
|
|
73
|
+
}
|
|
74
|
+
declare function configureChatClient(config: {
|
|
75
|
+
username: string;
|
|
76
|
+
password: string;
|
|
77
|
+
baseUrl: string;
|
|
78
|
+
}): void;
|
|
79
|
+
|
|
80
|
+
declare const ToolExecutionIndicator: react.MemoExoticComponent<({ toolName }: {
|
|
81
|
+
toolName: string;
|
|
82
|
+
}) => react_jsx_runtime.JSX.Element>;
|
|
83
|
+
declare const ToolExecutionWidget: react.MemoExoticComponent<({ steps, theme }: {
|
|
84
|
+
steps: Step[];
|
|
85
|
+
theme?: "light" | "dark";
|
|
86
|
+
}) => react_jsx_runtime.JSX.Element | null>;
|
|
87
|
+
|
|
88
|
+
export { type Conversation, type MessageMetadata, NeptuneChatBot, type NeptuneChatBotProps, type Step, type ToolCall, ToolExecutionIndicator, ToolExecutionWidget, configureChatClient };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
|
|
4
|
+
interface LocalDebugConfig {
|
|
5
|
+
username: string;
|
|
6
|
+
password: string;
|
|
7
|
+
baseUrl: string;
|
|
8
|
+
}
|
|
9
|
+
interface NeptuneChatBotProps {
|
|
10
|
+
agentId: string;
|
|
11
|
+
debug?: boolean;
|
|
12
|
+
theme?: "light" | "dark";
|
|
13
|
+
localDebug?: LocalDebugConfig;
|
|
14
|
+
}
|
|
15
|
+
declare function NeptuneChatBot({ agentId: propAgentId, debug: propDebug, theme: propTheme, localDebug: propLocalDebug, }: NeptuneChatBotProps): react_jsx_runtime.JSX.Element;
|
|
16
|
+
|
|
17
|
+
interface TextContent {
|
|
18
|
+
type: "text";
|
|
19
|
+
text: string;
|
|
20
|
+
}
|
|
21
|
+
interface FileContent {
|
|
22
|
+
type: "file";
|
|
23
|
+
data: string;
|
|
24
|
+
mediaType: string;
|
|
25
|
+
filename: string;
|
|
26
|
+
}
|
|
27
|
+
interface ImageContent {
|
|
28
|
+
type: "image";
|
|
29
|
+
image: string;
|
|
30
|
+
mediaType: string;
|
|
31
|
+
}
|
|
32
|
+
type MessageContent = TextContent | FileContent | ImageContent;
|
|
33
|
+
interface ToolCall {
|
|
34
|
+
id: string;
|
|
35
|
+
createdAt: string;
|
|
36
|
+
toolCallId: string;
|
|
37
|
+
toolName: string;
|
|
38
|
+
args: Record<string, any>;
|
|
39
|
+
result: any;
|
|
40
|
+
status: string;
|
|
41
|
+
error?: string | null;
|
|
42
|
+
}
|
|
43
|
+
interface Step {
|
|
44
|
+
id: string;
|
|
45
|
+
createdAt: string;
|
|
46
|
+
stepOrder: number;
|
|
47
|
+
type: string;
|
|
48
|
+
text?: string;
|
|
49
|
+
tools?: ToolCall[];
|
|
50
|
+
}
|
|
51
|
+
interface MessageMetadata {
|
|
52
|
+
logId?: string;
|
|
53
|
+
steps?: Step[];
|
|
54
|
+
}
|
|
55
|
+
interface Message {
|
|
56
|
+
id: string;
|
|
57
|
+
content: string | MessageContent[];
|
|
58
|
+
role: "user" | "assistant" | "system";
|
|
59
|
+
createdAt: string;
|
|
60
|
+
waiting?: boolean;
|
|
61
|
+
metadata?: MessageMetadata;
|
|
62
|
+
isToolExecuting?: boolean;
|
|
63
|
+
executingToolName?: string;
|
|
64
|
+
}
|
|
65
|
+
interface Conversation {
|
|
66
|
+
id: string;
|
|
67
|
+
title: string;
|
|
68
|
+
messages: Message[];
|
|
69
|
+
createdAt: string;
|
|
70
|
+
updatedAt: string;
|
|
71
|
+
waiting?: boolean;
|
|
72
|
+
isTemporary?: boolean;
|
|
73
|
+
}
|
|
74
|
+
declare function configureChatClient(config: {
|
|
75
|
+
username: string;
|
|
76
|
+
password: string;
|
|
77
|
+
baseUrl: string;
|
|
78
|
+
}): void;
|
|
79
|
+
|
|
80
|
+
declare const ToolExecutionIndicator: react.MemoExoticComponent<({ toolName }: {
|
|
81
|
+
toolName: string;
|
|
82
|
+
}) => react_jsx_runtime.JSX.Element>;
|
|
83
|
+
declare const ToolExecutionWidget: react.MemoExoticComponent<({ steps, theme }: {
|
|
84
|
+
steps: Step[];
|
|
85
|
+
theme?: "light" | "dark";
|
|
86
|
+
}) => react_jsx_runtime.JSX.Element | null>;
|
|
87
|
+
|
|
88
|
+
export { type Conversation, type MessageMetadata, NeptuneChatBot, type NeptuneChatBotProps, type Step, type ToolCall, ToolExecutionIndicator, ToolExecutionWidget, configureChatClient };
|