@cognizant-ai-lab/ui-common 1.3.3
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/dist/components/AgentChat/ChatCommon.d.ts +94 -0
- package/dist/components/AgentChat/ChatCommon.js +581 -0
- package/dist/components/AgentChat/ControlButtons.d.ts +16 -0
- package/dist/components/AgentChat/ControlButtons.js +24 -0
- package/dist/components/AgentChat/FormattedMarkdown.d.ts +32 -0
- package/dist/components/AgentChat/FormattedMarkdown.js +82 -0
- package/dist/components/AgentChat/Greetings.d.ts +1 -0
- package/dist/components/AgentChat/Greetings.js +38 -0
- package/dist/components/AgentChat/LlmChatButton.d.ts +12 -0
- package/dist/components/AgentChat/LlmChatButton.js +33 -0
- package/dist/components/AgentChat/SendButton.d.ts +12 -0
- package/dist/components/AgentChat/SendButton.js +28 -0
- package/dist/components/AgentChat/SyntaxHighlighterThemes.d.ts +14 -0
- package/dist/components/AgentChat/SyntaxHighlighterThemes.js +27 -0
- package/dist/components/AgentChat/Types.d.ts +17 -0
- package/dist/components/AgentChat/Types.js +26 -0
- package/dist/components/AgentChat/UserQueryDisplay.d.ts +5 -0
- package/dist/components/AgentChat/UserQueryDisplay.js +33 -0
- package/dist/components/AgentChat/Utils.d.ts +11 -0
- package/dist/components/AgentChat/Utils.js +64 -0
- package/dist/components/AgentChat/VoiceChat/MicrophoneButton.d.ts +29 -0
- package/dist/components/AgentChat/VoiceChat/MicrophoneButton.js +55 -0
- package/dist/components/AgentChat/VoiceChat/VoiceChat.d.ts +33 -0
- package/dist/components/AgentChat/VoiceChat/VoiceChat.js +180 -0
- package/dist/components/Authentication/Auth.d.ts +14 -0
- package/dist/components/Authentication/Auth.js +58 -0
- package/dist/components/ChatBot/ChatBot.d.ts +20 -0
- package/dist/components/ChatBot/ChatBot.js +75 -0
- package/dist/components/Common/Breadcrumbs.d.ts +6 -0
- package/dist/components/Common/Breadcrumbs.js +36 -0
- package/dist/components/Common/LlmChatOptionsButton.d.ts +9 -0
- package/dist/components/Common/LlmChatOptionsButton.js +31 -0
- package/dist/components/Common/LoadingSpinner.d.ts +10 -0
- package/dist/components/Common/LoadingSpinner.js +24 -0
- package/dist/components/Common/MUIAccordion.d.ts +17 -0
- package/dist/components/Common/MUIAccordion.js +76 -0
- package/dist/components/Common/MUIAlert.d.ts +11 -0
- package/dist/components/Common/MUIAlert.js +41 -0
- package/dist/components/Common/MUIDialog.d.ts +16 -0
- package/dist/components/Common/MUIDialog.js +40 -0
- package/dist/components/Common/Navbar.d.ts +15 -0
- package/dist/components/Common/Navbar.js +137 -0
- package/dist/components/Common/PageLoader.d.ts +5 -0
- package/dist/components/Common/PageLoader.js +26 -0
- package/dist/components/Common/Snackbar.d.ts +5 -0
- package/dist/components/Common/Snackbar.js +84 -0
- package/dist/components/Common/confirmationModal.d.ts +14 -0
- package/dist/components/Common/confirmationModal.js +65 -0
- package/dist/components/Common/notification.d.ts +18 -0
- package/dist/components/Common/notification.js +79 -0
- package/dist/components/ErrorPage/ErrorBoundary.d.ts +38 -0
- package/dist/components/ErrorPage/ErrorBoundary.js +77 -0
- package/dist/components/ErrorPage/ErrorPage.d.ts +12 -0
- package/dist/components/ErrorPage/ErrorPage.js +46 -0
- package/dist/components/MultiAgentAccelerator/AgentFlow.d.ts +21 -0
- package/dist/components/MultiAgentAccelerator/AgentFlow.js +394 -0
- package/dist/components/MultiAgentAccelerator/AgentNode.d.ts +18 -0
- package/dist/components/MultiAgentAccelerator/AgentNode.js +129 -0
- package/dist/components/MultiAgentAccelerator/GraphLayouts.d.ts +33 -0
- package/dist/components/MultiAgentAccelerator/GraphLayouts.js +297 -0
- package/dist/components/MultiAgentAccelerator/MultiAgentAccelerator.d.ts +17 -0
- package/dist/components/MultiAgentAccelerator/MultiAgentAccelerator.js +208 -0
- package/dist/components/MultiAgentAccelerator/PlasmaEdge.d.ts +3 -0
- package/dist/components/MultiAgentAccelerator/PlasmaEdge.js +124 -0
- package/dist/components/MultiAgentAccelerator/Sidebar.d.ts +12 -0
- package/dist/components/MultiAgentAccelerator/Sidebar.js +204 -0
- package/dist/components/MultiAgentAccelerator/ThoughtBubbleEdge.d.ts +12 -0
- package/dist/components/MultiAgentAccelerator/ThoughtBubbleEdge.js +15 -0
- package/dist/components/MultiAgentAccelerator/ThoughtBubbleOverlay.d.ts +11 -0
- package/dist/components/MultiAgentAccelerator/ThoughtBubbleOverlay.js +466 -0
- package/dist/components/MultiAgentAccelerator/const.d.ts +7 -0
- package/dist/components/MultiAgentAccelerator/const.js +39 -0
- package/dist/const.d.ts +10 -0
- package/dist/const.js +30 -0
- package/dist/controller/agent/Agent.d.ts +56 -0
- package/dist/controller/agent/Agent.js +162 -0
- package/dist/controller/llm/LlmChat.d.ts +18 -0
- package/dist/controller/llm/LlmChat.js +65 -0
- package/dist/controller/llm/endpoints.d.ts +1 -0
- package/dist/controller/llm/endpoints.js +17 -0
- package/dist/generated/neuro-san/NeuroSanClient.d.ts +413 -0
- package/dist/generated/neuro-san/NeuroSanClient.js +28 -0
- package/dist/index.d.ts +37 -0
- package/dist/index.js +52 -0
- package/dist/state/UserInfo.d.ts +16 -0
- package/dist/state/UserInfo.js +27 -0
- package/dist/state/environment.d.ts +18 -0
- package/dist/state/environment.js +33 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/utils/Authentication.d.ts +31 -0
- package/dist/utils/Authentication.js +94 -0
- package/dist/utils/BrowserNavigation.d.ts +5 -0
- package/dist/utils/BrowserNavigation.js +22 -0
- package/dist/utils/Theme.d.ts +7 -0
- package/dist/utils/Theme.js +7 -0
- package/dist/utils/agentConversations.d.ts +24 -0
- package/dist/utils/agentConversations.js +113 -0
- package/dist/utils/text.d.ts +28 -0
- package/dist/utils/text.js +64 -0
- package/dist/utils/title.d.ts +1 -0
- package/dist/utils/title.js +20 -0
- package/dist/utils/types.d.ts +17 -0
- package/dist/utils/types.js +16 -0
- package/dist/utils/useLocalStorage.d.ts +1 -0
- package/dist/utils/useLocalStorage.js +55 -0
- package/dist/utils/zIndexLayers.d.ts +2 -0
- package/dist/utils/zIndexLayers.js +29 -0
- package/package.json +69 -0
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
export interface paths {
|
|
6
|
+
readonly "/api/v1/list": {
|
|
7
|
+
readonly parameters: {
|
|
8
|
+
readonly query?: never;
|
|
9
|
+
readonly header?: never;
|
|
10
|
+
readonly path?: never;
|
|
11
|
+
readonly cookie?: never;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* List
|
|
15
|
+
* @description Called when a client needs the information about available agents.
|
|
16
|
+
*/
|
|
17
|
+
readonly get: operations["ConciergeService_List"];
|
|
18
|
+
readonly put?: never;
|
|
19
|
+
readonly post?: never;
|
|
20
|
+
readonly delete?: never;
|
|
21
|
+
readonly options?: never;
|
|
22
|
+
readonly head?: never;
|
|
23
|
+
readonly patch?: never;
|
|
24
|
+
readonly trace?: never;
|
|
25
|
+
};
|
|
26
|
+
readonly "/api/v1/{agent_name}/connectivity": {
|
|
27
|
+
readonly parameters: {
|
|
28
|
+
readonly query?: never;
|
|
29
|
+
readonly header?: never;
|
|
30
|
+
readonly path?: never;
|
|
31
|
+
readonly cookie?: never;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Connectivity
|
|
35
|
+
* @description Called when a client needs the internal connectivity description of an agent.
|
|
36
|
+
*/
|
|
37
|
+
readonly get: operations["AgentService_Connectivity"];
|
|
38
|
+
readonly put?: never;
|
|
39
|
+
readonly post?: never;
|
|
40
|
+
readonly delete?: never;
|
|
41
|
+
readonly options?: never;
|
|
42
|
+
readonly head?: never;
|
|
43
|
+
readonly patch?: never;
|
|
44
|
+
readonly trace?: never;
|
|
45
|
+
};
|
|
46
|
+
readonly "/api/v1/{agent_name}/function": {
|
|
47
|
+
readonly parameters: {
|
|
48
|
+
readonly query?: never;
|
|
49
|
+
readonly header?: never;
|
|
50
|
+
readonly path?: never;
|
|
51
|
+
readonly cookie?: never;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Function
|
|
55
|
+
* @description Called when a client needs the function description of an agent.
|
|
56
|
+
*/
|
|
57
|
+
readonly get: operations["AgentService_Function"];
|
|
58
|
+
readonly put?: never;
|
|
59
|
+
readonly post?: never;
|
|
60
|
+
readonly delete?: never;
|
|
61
|
+
readonly options?: never;
|
|
62
|
+
readonly head?: never;
|
|
63
|
+
readonly patch?: never;
|
|
64
|
+
readonly trace?: never;
|
|
65
|
+
};
|
|
66
|
+
readonly "/api/v1/{agent_name}/streaming_chat": {
|
|
67
|
+
readonly parameters: {
|
|
68
|
+
readonly query?: never;
|
|
69
|
+
readonly header?: never;
|
|
70
|
+
readonly path?: never;
|
|
71
|
+
readonly cookie?: never;
|
|
72
|
+
};
|
|
73
|
+
readonly get?: never;
|
|
74
|
+
readonly put?: never;
|
|
75
|
+
/**
|
|
76
|
+
* StreamingChat
|
|
77
|
+
* @description Most important semantics of the streaming:
|
|
78
|
+
* 1) The "answer" to a query of any agent network is in the *last* streamed
|
|
79
|
+
* AGENT_FRAMEWORK message.
|
|
80
|
+
* 2) To RESTfully continue your conversation with the agent network:
|
|
81
|
+
* The very last AGENT_FRAMEWORK message before the stream closes will
|
|
82
|
+
* have its chat_context field filled in with a structure. You can
|
|
83
|
+
* copy this whole-cloth to the chat_context of your next StreamingChat
|
|
84
|
+
* request to continue the conversation.
|
|
85
|
+
* 3) It is important to note that since this is a streaming API, for HTTP clients:
|
|
86
|
+
* a) Any single response will always be on the same line. That is,
|
|
87
|
+
* responses will not be broken up across multiple lines in an
|
|
88
|
+
* HTTP response.
|
|
89
|
+
* b) We cannot yet guarantee that there will be only one streamed response
|
|
90
|
+
* per HTTP response line. That is, it is possible for more than one
|
|
91
|
+
* response *might* come on a single line if they come quickly enough,
|
|
92
|
+
* though this is not the empirically observed norm.
|
|
93
|
+
*/
|
|
94
|
+
readonly post: operations["AgentService_StreamingChat"];
|
|
95
|
+
readonly delete?: never;
|
|
96
|
+
readonly options?: never;
|
|
97
|
+
readonly head?: never;
|
|
98
|
+
readonly patch?: never;
|
|
99
|
+
readonly trace?: never;
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
export type webhooks = Record<string, never>;
|
|
103
|
+
export interface components {
|
|
104
|
+
schemas: {
|
|
105
|
+
/** @description Description of an agent's function */
|
|
106
|
+
readonly AgentInfo: {
|
|
107
|
+
/** @description Agent name */
|
|
108
|
+
readonly agent_name?: string;
|
|
109
|
+
/** @description Outward-facing description of what the agent does. */
|
|
110
|
+
readonly description?: string;
|
|
111
|
+
/** @description Optional metadata describing where this agent falls into larger agent grouping(s). */
|
|
112
|
+
readonly tags?: readonly string[];
|
|
113
|
+
};
|
|
114
|
+
/** @description Message for holding the state of play for any chat session such that should the client send this back to the service, a different server knows exactly where to pick up where the previous conversation left off. */
|
|
115
|
+
readonly ChatContext: {
|
|
116
|
+
/** @description A potentially full list of chat histories that pertain to the node. These will typically come in the last message of any particular agent's chat stream. Do not expect any or all internal agents will broadcast their chat history, but you can at least expect the front-man to broadcast his. */
|
|
117
|
+
readonly chat_histories?: readonly components["schemas"]["ChatHistory"][];
|
|
118
|
+
};
|
|
119
|
+
/** @description Allows for controlling the messages that get streamed via StreamingChat. */
|
|
120
|
+
readonly ChatFilter: {
|
|
121
|
+
/**
|
|
122
|
+
* Format: enum
|
|
123
|
+
* @description For now allow for an enum to describe how we want chat messages streamed. In the future the description of this server-side filter might offer more fine-grained control (hence an encapsulating structure).
|
|
124
|
+
* @enum {string}
|
|
125
|
+
*/
|
|
126
|
+
readonly chat_filter_type?: ChatFilterChat_filter_type;
|
|
127
|
+
};
|
|
128
|
+
/** @description A structure for storing chat history for a given node in the graph described by the origin. */
|
|
129
|
+
readonly ChatHistory: {
|
|
130
|
+
readonly origin?: readonly components["schemas"]["Origin"][];
|
|
131
|
+
readonly messages?: readonly components["schemas"]["ChatMessage"][];
|
|
132
|
+
};
|
|
133
|
+
/** @description Structure describing a single chat message. This could be a single response, or a list of these might comprise a chat history. */
|
|
134
|
+
readonly ChatMessage: {
|
|
135
|
+
/**
|
|
136
|
+
* Format: enum
|
|
137
|
+
* @description The type of chat message
|
|
138
|
+
* @enum {string}
|
|
139
|
+
*/
|
|
140
|
+
readonly type?: ChatMessageType;
|
|
141
|
+
/** @description String contents of any chat message */
|
|
142
|
+
readonly text?: string;
|
|
143
|
+
/** @description Optional bytes for any non-text media referenced by this message. For some chat sources, the string text field might also be populated as a reference for how the data was created. If this happens, then it should be safe to assume that the text is enough to represent the message in any history carried forward. As of 1/13/25 this is a forward-looking, experimental field not likely to be used in regular operation until we can get proper plumbing of such data in place. */
|
|
144
|
+
readonly mime_data?: readonly components["schemas"]["MimeData"][];
|
|
145
|
+
/** @description Optional list of Origin structures (see above) describing the origin of the chat message. The intent here is to be able to distiguish responses from nested agents. For each top-level agent/front-man (perhaps on another server) that is called, an extra structure is added to the list. */
|
|
146
|
+
readonly origin?: readonly components["schemas"]["Origin"][];
|
|
147
|
+
/** @description Optional structure for a message whose contents are parsed JSON. The idea is to have the server side do the parsing when requested by the agent spec. As of 1/30/25 this is a forward-looking, experimental field not likely to be used in regular operation until we can get proper plumbing of such data in place. */
|
|
148
|
+
readonly structure?: Record<string, unknown>;
|
|
149
|
+
readonly chat_context?: components["schemas"]["ChatContext"];
|
|
150
|
+
/** @description Optional list of Origin structures (see above) describing the origin of a tool result. */
|
|
151
|
+
readonly tool_result_origin?: readonly components["schemas"]["Origin"][];
|
|
152
|
+
/** @description This is an entirely optional map whose keys refer to data that is better left out of the LLM chat stream. The keys themselves might appear in the chat stream, referring to the data, but the data itself does not. The intent is for the key references to be passed to tools, which then grab the values by programmatic means, but these tools might also have private data to send back to the client as well. */
|
|
153
|
+
readonly sly_data?: Record<string, unknown>;
|
|
154
|
+
};
|
|
155
|
+
/** @description Request structure for Chat gRPC method */
|
|
156
|
+
readonly ChatRequest: {
|
|
157
|
+
/** @description This is an entirely optional map whose keys refer to data that is better left out of the LLM chat stream. The keys themselves might appear in the chat stream, referring to the data, but the data itself does not. The intent is for the key references to be passed to tools, which then grab the values by programmatic means. */
|
|
158
|
+
readonly sly_data?: Record<string, unknown>;
|
|
159
|
+
readonly user_message?: components["schemas"]["ChatMessage"];
|
|
160
|
+
readonly chat_context?: components["schemas"]["ChatContext"];
|
|
161
|
+
readonly chat_filter?: components["schemas"]["ChatFilter"];
|
|
162
|
+
};
|
|
163
|
+
/** @description Response structure for Chat gRPC method */
|
|
164
|
+
readonly ChatResponse: {
|
|
165
|
+
readonly request?: components["schemas"]["ChatRequest"];
|
|
166
|
+
readonly response?: components["schemas"]["ChatMessage"];
|
|
167
|
+
};
|
|
168
|
+
/** @description Response structure for List gRPC method */
|
|
169
|
+
readonly ConciergeResponse: {
|
|
170
|
+
/** @description List of agent descriptions */
|
|
171
|
+
readonly agents?: readonly components["schemas"]["AgentInfo"][];
|
|
172
|
+
};
|
|
173
|
+
readonly ConnectivityInfo: {
|
|
174
|
+
/** @description The agent network node whose connectivity is being described */
|
|
175
|
+
readonly origin?: string;
|
|
176
|
+
/** @description A list of tool nodes that are possible to reach from the origin This might include references into external agent networks, perhaps hosted on other servers. Separate calls to those guys will need to be made in order to gain information about their own connectivity, if this is actually desired by the client. Worth noting that server-side agent descriptions are allowed to withhold connectivity info they deem private, or too much of an implementation detail. That is, connectivity reported is only as much as the server wants a client to know. */
|
|
177
|
+
readonly tools?: readonly string[];
|
|
178
|
+
/** @description A string describing the nature of the agent so that a client UI can add an indication of its differences between other nodes in the graph. Values from the neuro-san include: * llm_agent (default) * coded_tool * langchain_tool * external_agent ... however individual agent networks can define their own strings on a per-node basis to customize their own visualizations. */
|
|
179
|
+
readonly display_as?: string;
|
|
180
|
+
/** @description Metadata for the node. This comes as a free-form dictionary which can have agent-network defined semantics. Some key/value pairs might eventually become standardized as part of the neuro-san API as time goes on, for instance for fine-grained Responsible AI (RAI) scores. As those keys become standardized, they will be added here in the docs. */
|
|
181
|
+
readonly metadata?: Record<string, unknown>;
|
|
182
|
+
};
|
|
183
|
+
/** @description Response structure for Connectivity gRPC method */
|
|
184
|
+
readonly ConnectivityResponse: {
|
|
185
|
+
/** @description The description of the agent network's internal connectivity ... as far as the agent wants the outside world to know.. */
|
|
186
|
+
readonly connectivity_info?: readonly components["schemas"]["ConnectivityInfo"][];
|
|
187
|
+
/** @description Metadata for the network as a whole. This comes as a free-form dictionary which can have agent-network defined semantics. Some key/value pairs might eventually become standardized as part of the neuro-san API as time goes on, for instance for network-level Responsible AI (RAI) scores. As those keys become standardized, they will be added here in the docs. */
|
|
188
|
+
readonly metadata?: Record<string, unknown>;
|
|
189
|
+
};
|
|
190
|
+
/** @description Description of an agent's function */
|
|
191
|
+
readonly Function: {
|
|
192
|
+
/** @description Outward-facing description of what the agent does. */
|
|
193
|
+
readonly description?: string;
|
|
194
|
+
/** @description Optional map of parameters passed in via the natural-language chat text channel that the agent needs in order to work. This is really a pydantic/OpenAI function description, which is a bit too complex to specify directly in protobuf. */
|
|
195
|
+
readonly parameters?: Record<string, unknown>;
|
|
196
|
+
/** @description Optional map of parameters passed in via the sly_data dictionary private data channel that the agent needs in order to work. Just like the parameters above, this is really a pydantic/OpenAI function description, which is a bit too complex to specify directly in protobuf. */
|
|
197
|
+
readonly sly_data_schema?: Record<string, unknown>;
|
|
198
|
+
};
|
|
199
|
+
/** @description Response structure for Function gRPC method */
|
|
200
|
+
readonly FunctionResponse: {
|
|
201
|
+
readonly function?: components["schemas"]["Function"];
|
|
202
|
+
};
|
|
203
|
+
/** @description Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. */
|
|
204
|
+
readonly GoogleProtobufAny: {
|
|
205
|
+
/** @description The type of the serialized message. */
|
|
206
|
+
readonly "@type"?: string;
|
|
207
|
+
} & {
|
|
208
|
+
readonly [key: string]: unknown;
|
|
209
|
+
};
|
|
210
|
+
/** @description A Message identifying image data */
|
|
211
|
+
readonly MimeData: {
|
|
212
|
+
/** @description MIME type of the image data */
|
|
213
|
+
readonly mime_type?: string;
|
|
214
|
+
/**
|
|
215
|
+
* Format: byte
|
|
216
|
+
* @description Raw bytes of the image
|
|
217
|
+
*/
|
|
218
|
+
readonly mime_bytes?: string;
|
|
219
|
+
};
|
|
220
|
+
readonly Origin: {
|
|
221
|
+
/** @description String name of the originating tool, as per the agent spec. */
|
|
222
|
+
readonly tool?: string;
|
|
223
|
+
/**
|
|
224
|
+
* Format: int32
|
|
225
|
+
* @description Some tools can be called more than once by one or more different paths. Allow for an instantiation index to distinguish these in the chat stream. Index counting starts at 0.
|
|
226
|
+
*/
|
|
227
|
+
readonly instantiation_index?: number;
|
|
228
|
+
};
|
|
229
|
+
/** @description The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). */
|
|
230
|
+
readonly Status: {
|
|
231
|
+
/**
|
|
232
|
+
* Format: int32
|
|
233
|
+
* @description The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
|
|
234
|
+
*/
|
|
235
|
+
readonly code?: number;
|
|
236
|
+
/** @description A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client. */
|
|
237
|
+
readonly message?: string;
|
|
238
|
+
/** @description A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
239
|
+
readonly details?: readonly components["schemas"]["GoogleProtobufAny"][];
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
responses: never;
|
|
243
|
+
parameters: never;
|
|
244
|
+
requestBodies: never;
|
|
245
|
+
headers: never;
|
|
246
|
+
pathItems: never;
|
|
247
|
+
}
|
|
248
|
+
export type AgentInfo = components['schemas']['AgentInfo'];
|
|
249
|
+
export type ChatContext = components['schemas']['ChatContext'];
|
|
250
|
+
export type ChatFilter = components['schemas']['ChatFilter'];
|
|
251
|
+
export type ChatHistory = components['schemas']['ChatHistory'];
|
|
252
|
+
export type ChatMessage = components['schemas']['ChatMessage'];
|
|
253
|
+
export type ChatRequest = components['schemas']['ChatRequest'];
|
|
254
|
+
export type ChatResponse = components['schemas']['ChatResponse'];
|
|
255
|
+
export type ConciergeResponse = components['schemas']['ConciergeResponse'];
|
|
256
|
+
export type ConnectivityInfo = components['schemas']['ConnectivityInfo'];
|
|
257
|
+
export type ConnectivityResponse = components['schemas']['ConnectivityResponse'];
|
|
258
|
+
export type Function = components['schemas']['Function'];
|
|
259
|
+
export type FunctionResponse = components['schemas']['FunctionResponse'];
|
|
260
|
+
export type GoogleProtobufAny = components['schemas']['GoogleProtobufAny'];
|
|
261
|
+
export type MimeData = components['schemas']['MimeData'];
|
|
262
|
+
export type Origin = components['schemas']['Origin'];
|
|
263
|
+
export type Status = components['schemas']['Status'];
|
|
264
|
+
export type $defs = Record<string, never>;
|
|
265
|
+
export interface operations {
|
|
266
|
+
readonly ConciergeService_List: {
|
|
267
|
+
readonly parameters: {
|
|
268
|
+
readonly query?: never;
|
|
269
|
+
readonly header?: never;
|
|
270
|
+
readonly path?: never;
|
|
271
|
+
readonly cookie?: never;
|
|
272
|
+
};
|
|
273
|
+
readonly requestBody?: never;
|
|
274
|
+
readonly responses: {
|
|
275
|
+
/** @description OK */
|
|
276
|
+
readonly 200: {
|
|
277
|
+
headers: {
|
|
278
|
+
readonly [name: string]: unknown;
|
|
279
|
+
};
|
|
280
|
+
content: {
|
|
281
|
+
readonly "application/json": components["schemas"]["ConciergeResponse"];
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
/** @description Default error response */
|
|
285
|
+
readonly default: {
|
|
286
|
+
headers: {
|
|
287
|
+
readonly [name: string]: unknown;
|
|
288
|
+
};
|
|
289
|
+
content: {
|
|
290
|
+
readonly "application/json": components["schemas"]["Status"];
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
readonly AgentService_Connectivity: {
|
|
296
|
+
readonly parameters: {
|
|
297
|
+
readonly query?: never;
|
|
298
|
+
readonly header?: never;
|
|
299
|
+
readonly path: {
|
|
300
|
+
readonly agent_name: string;
|
|
301
|
+
};
|
|
302
|
+
readonly cookie?: never;
|
|
303
|
+
};
|
|
304
|
+
readonly requestBody?: never;
|
|
305
|
+
readonly responses: {
|
|
306
|
+
/** @description OK */
|
|
307
|
+
readonly 200: {
|
|
308
|
+
headers: {
|
|
309
|
+
readonly [name: string]: unknown;
|
|
310
|
+
};
|
|
311
|
+
content: {
|
|
312
|
+
readonly "application/json": components["schemas"]["ConnectivityResponse"];
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
/** @description Default error response */
|
|
316
|
+
readonly default: {
|
|
317
|
+
headers: {
|
|
318
|
+
readonly [name: string]: unknown;
|
|
319
|
+
};
|
|
320
|
+
content: {
|
|
321
|
+
readonly "application/json": components["schemas"]["Status"];
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
readonly AgentService_Function: {
|
|
327
|
+
readonly parameters: {
|
|
328
|
+
readonly query?: never;
|
|
329
|
+
readonly header?: never;
|
|
330
|
+
readonly path: {
|
|
331
|
+
readonly agent_name: string;
|
|
332
|
+
};
|
|
333
|
+
readonly cookie?: never;
|
|
334
|
+
};
|
|
335
|
+
readonly requestBody?: never;
|
|
336
|
+
readonly responses: {
|
|
337
|
+
/** @description OK */
|
|
338
|
+
readonly 200: {
|
|
339
|
+
headers: {
|
|
340
|
+
readonly [name: string]: unknown;
|
|
341
|
+
};
|
|
342
|
+
content: {
|
|
343
|
+
readonly "application/json": components["schemas"]["FunctionResponse"];
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
/** @description Default error response */
|
|
347
|
+
readonly default: {
|
|
348
|
+
headers: {
|
|
349
|
+
readonly [name: string]: unknown;
|
|
350
|
+
};
|
|
351
|
+
content: {
|
|
352
|
+
readonly "application/json": components["schemas"]["Status"];
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
};
|
|
357
|
+
readonly AgentService_StreamingChat: {
|
|
358
|
+
readonly parameters: {
|
|
359
|
+
readonly query?: never;
|
|
360
|
+
readonly header?: never;
|
|
361
|
+
readonly path: {
|
|
362
|
+
readonly agent_name: string;
|
|
363
|
+
};
|
|
364
|
+
readonly cookie?: never;
|
|
365
|
+
};
|
|
366
|
+
readonly requestBody: {
|
|
367
|
+
readonly content: {
|
|
368
|
+
readonly "application/json": components["schemas"]["ChatRequest"];
|
|
369
|
+
};
|
|
370
|
+
};
|
|
371
|
+
readonly responses: {
|
|
372
|
+
/** @description OK */
|
|
373
|
+
readonly 200: {
|
|
374
|
+
headers: {
|
|
375
|
+
readonly [name: string]: unknown;
|
|
376
|
+
};
|
|
377
|
+
content: {
|
|
378
|
+
readonly "application/json": components["schemas"]["ChatResponse"];
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
/** @description Default error response */
|
|
382
|
+
readonly default: {
|
|
383
|
+
headers: {
|
|
384
|
+
readonly [name: string]: unknown;
|
|
385
|
+
};
|
|
386
|
+
content: {
|
|
387
|
+
readonly "application/json": components["schemas"]["Status"];
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
export declare enum ChatFilterChat_filter_type {
|
|
394
|
+
UNKNOWN = "UNKNOWN",
|
|
395
|
+
MINIMAL = "MINIMAL",
|
|
396
|
+
MAXIMAL = "MAXIMAL"
|
|
397
|
+
}
|
|
398
|
+
export declare enum ChatMessageType {
|
|
399
|
+
UNKNOWN = "UNKNOWN",
|
|
400
|
+
SYSTEM = "SYSTEM",
|
|
401
|
+
HUMAN = "HUMAN",
|
|
402
|
+
AI = "AI",
|
|
403
|
+
AGENT = "AGENT",
|
|
404
|
+
AGENT_FRAMEWORK = "AGENT_FRAMEWORK",
|
|
405
|
+
AGENT_TOOL_RESULT = "AGENT_TOOL_RESULT",
|
|
406
|
+
AGENT_PROGRESS = "AGENT_PROGRESS"
|
|
407
|
+
}
|
|
408
|
+
export declare enum ApiPaths {
|
|
409
|
+
ConciergeService_List = "/api/v1/list",
|
|
410
|
+
AgentService_Connectivity = "/api/v1/{agent_name}/connectivity",
|
|
411
|
+
AgentService_Function = "/api/v1/{agent_name}/function",
|
|
412
|
+
AgentService_StreamingChat = "/api/v1/{agent_name}/streaming_chat"
|
|
413
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
export var ChatFilterChat_filter_type;
|
|
6
|
+
(function (ChatFilterChat_filter_type) {
|
|
7
|
+
ChatFilterChat_filter_type["UNKNOWN"] = "UNKNOWN";
|
|
8
|
+
ChatFilterChat_filter_type["MINIMAL"] = "MINIMAL";
|
|
9
|
+
ChatFilterChat_filter_type["MAXIMAL"] = "MAXIMAL";
|
|
10
|
+
})(ChatFilterChat_filter_type || (ChatFilterChat_filter_type = {}));
|
|
11
|
+
export var ChatMessageType;
|
|
12
|
+
(function (ChatMessageType) {
|
|
13
|
+
ChatMessageType["UNKNOWN"] = "UNKNOWN";
|
|
14
|
+
ChatMessageType["SYSTEM"] = "SYSTEM";
|
|
15
|
+
ChatMessageType["HUMAN"] = "HUMAN";
|
|
16
|
+
ChatMessageType["AI"] = "AI";
|
|
17
|
+
ChatMessageType["AGENT"] = "AGENT";
|
|
18
|
+
ChatMessageType["AGENT_FRAMEWORK"] = "AGENT_FRAMEWORK";
|
|
19
|
+
ChatMessageType["AGENT_TOOL_RESULT"] = "AGENT_TOOL_RESULT";
|
|
20
|
+
ChatMessageType["AGENT_PROGRESS"] = "AGENT_PROGRESS";
|
|
21
|
+
})(ChatMessageType || (ChatMessageType = {}));
|
|
22
|
+
export var ApiPaths;
|
|
23
|
+
(function (ApiPaths) {
|
|
24
|
+
ApiPaths["ConciergeService_List"] = "/api/v1/list";
|
|
25
|
+
ApiPaths["AgentService_Connectivity"] = "/api/v1/{agent_name}/connectivity";
|
|
26
|
+
ApiPaths["AgentService_Function"] = "/api/v1/{agent_name}/function";
|
|
27
|
+
ApiPaths["AgentService_StreamingChat"] = "/api/v1/{agent_name}/streaming_chat";
|
|
28
|
+
})(ApiPaths || (ApiPaths = {}));
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Export modules so they can be imported with simpler paths in the consumer
|
|
3
|
+
*/
|
|
4
|
+
export * from "./components/AgentChat/ChatCommon.js";
|
|
5
|
+
export * from "./components/AgentChat/ControlButtons.js";
|
|
6
|
+
export * from "./components/AgentChat/LlmChatButton.js";
|
|
7
|
+
export * from "./components/AgentChat/SendButton.js";
|
|
8
|
+
export * from "./components/AgentChat/SyntaxHighlighterThemes.js";
|
|
9
|
+
export * from "./components/AgentChat/Types.js";
|
|
10
|
+
export * from "./components/AgentChat/Utils.js";
|
|
11
|
+
export * from "./components/Authentication/Auth.js";
|
|
12
|
+
export * from "./components/Common/Breadcrumbs.js";
|
|
13
|
+
export * from "./components/Common/confirmationModal.js";
|
|
14
|
+
export * from "./components/Common/LlmChatOptionsButton.js";
|
|
15
|
+
export * from "./components/Common/LoadingSpinner.js";
|
|
16
|
+
export * from "./components/Common/MUIAccordion.js";
|
|
17
|
+
export * from "./components/Common/MUIAlert.js";
|
|
18
|
+
export * from "./components/Common/MUIDialog.js";
|
|
19
|
+
export * from "./components/Common/Navbar.js";
|
|
20
|
+
export * from "./components/Common/notification.js";
|
|
21
|
+
export * from "./components/Common/PageLoader.js";
|
|
22
|
+
export * from "./components/Common/Snackbar.js";
|
|
23
|
+
export * from "./components/ErrorPage/ErrorBoundary.js";
|
|
24
|
+
export * from "./components/MultiAgentAccelerator/AgentFlow.js";
|
|
25
|
+
export * from "./components/MultiAgentAccelerator/MultiAgentAccelerator.js";
|
|
26
|
+
export * from "./components/MultiAgentAccelerator/Sidebar.js";
|
|
27
|
+
export * from "./controller/agent/Agent.js";
|
|
28
|
+
export * from "./controller/llm/LlmChat.js";
|
|
29
|
+
export * from "./generated/neuro-san/NeuroSanClient.js";
|
|
30
|
+
export * from "./state/environment.js";
|
|
31
|
+
export * from "./state/UserInfo.js";
|
|
32
|
+
export * from "./utils/agentConversations.js";
|
|
33
|
+
export * from "./utils/Authentication.js";
|
|
34
|
+
export * from "./utils/text.js";
|
|
35
|
+
export * from "./utils/title.js";
|
|
36
|
+
export * from "./utils/useLocalStorage.js";
|
|
37
|
+
export * from "./utils/zIndexLayers.js";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2025 Cognizant Technology Solutions Corp, www.cognizant.com.
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* Export modules so they can be imported with simpler paths in the consumer
|
|
18
|
+
*/
|
|
19
|
+
export * from "./components/AgentChat/ChatCommon.js";
|
|
20
|
+
export * from "./components/AgentChat/ControlButtons.js";
|
|
21
|
+
export * from "./components/AgentChat/LlmChatButton.js";
|
|
22
|
+
export * from "./components/AgentChat/SendButton.js";
|
|
23
|
+
export * from "./components/AgentChat/SyntaxHighlighterThemes.js";
|
|
24
|
+
export * from "./components/AgentChat/Types.js";
|
|
25
|
+
export * from "./components/AgentChat/Utils.js";
|
|
26
|
+
export * from "./components/Authentication/Auth.js";
|
|
27
|
+
export * from "./components/Common/Breadcrumbs.js";
|
|
28
|
+
export * from "./components/Common/confirmationModal.js";
|
|
29
|
+
export * from "./components/Common/LlmChatOptionsButton.js";
|
|
30
|
+
export * from "./components/Common/LoadingSpinner.js";
|
|
31
|
+
export * from "./components/Common/MUIAccordion.js";
|
|
32
|
+
export * from "./components/Common/MUIAlert.js";
|
|
33
|
+
export * from "./components/Common/MUIDialog.js";
|
|
34
|
+
export * from "./components/Common/Navbar.js";
|
|
35
|
+
export * from "./components/Common/notification.js";
|
|
36
|
+
export * from "./components/Common/PageLoader.js";
|
|
37
|
+
export * from "./components/Common/Snackbar.js";
|
|
38
|
+
export * from "./components/ErrorPage/ErrorBoundary.js";
|
|
39
|
+
export * from "./components/MultiAgentAccelerator/AgentFlow.js";
|
|
40
|
+
export * from "./components/MultiAgentAccelerator/MultiAgentAccelerator.js";
|
|
41
|
+
export * from "./components/MultiAgentAccelerator/Sidebar.js";
|
|
42
|
+
export * from "./controller/agent/Agent.js";
|
|
43
|
+
export * from "./controller/llm/LlmChat.js";
|
|
44
|
+
export * from "./generated/neuro-san/NeuroSanClient.js";
|
|
45
|
+
export * from "./state/environment.js";
|
|
46
|
+
export * from "./state/UserInfo.js";
|
|
47
|
+
export * from "./utils/agentConversations.js";
|
|
48
|
+
export * from "./utils/Authentication.js";
|
|
49
|
+
export * from "./utils/text.js";
|
|
50
|
+
export * from "./utils/title.js";
|
|
51
|
+
export * from "./utils/useLocalStorage.js";
|
|
52
|
+
export * from "./utils/zIndexLayers.js";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { OidcProvider } from "../utils/types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Zustand state store for "feature flags" like, "generic branding".
|
|
4
|
+
*/
|
|
5
|
+
export interface UserInfoStore {
|
|
6
|
+
currentUser: string | undefined;
|
|
7
|
+
setCurrentUser: (username: string) => void;
|
|
8
|
+
picture: string | undefined;
|
|
9
|
+
setPicture: (picture: string) => void;
|
|
10
|
+
oidcProvider: OidcProvider | undefined;
|
|
11
|
+
setOidcProvider: (oidcProvider: OidcProvider) => void;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The hook that lets apps use the store
|
|
15
|
+
*/
|
|
16
|
+
export declare const useUserInfoStore: import("zustand").UseBoundStore<import("zustand").StoreApi<UserInfoStore>>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2025 Cognizant Technology Solutions Corp, www.cognizant.com.
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { create } from "zustand";
|
|
17
|
+
/**
|
|
18
|
+
* The hook that lets apps use the store
|
|
19
|
+
*/
|
|
20
|
+
export const useUserInfoStore = create((set) => ({
|
|
21
|
+
currentUser: undefined,
|
|
22
|
+
setCurrentUser: (username) => set(() => ({ currentUser: username })),
|
|
23
|
+
oidcProvider: undefined,
|
|
24
|
+
setOidcProvider: (oidcProvider) => set(() => ({ oidcProvider })),
|
|
25
|
+
picture: undefined,
|
|
26
|
+
setPicture: (picture) => set(() => ({ picture })),
|
|
27
|
+
}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* State store interface
|
|
3
|
+
*/
|
|
4
|
+
interface EnvironmentStore {
|
|
5
|
+
backendNeuroSanApiUrl: string;
|
|
6
|
+
setBackendNeuroSanApiUrl: (backendNeuroSanApiUrl: string) => void;
|
|
7
|
+
auth0ClientId: string;
|
|
8
|
+
setAuth0ClientId: (auth0ClientId: string) => void;
|
|
9
|
+
auth0Domain: string;
|
|
10
|
+
setAuth0Domain: (auth0Domain: string) => void;
|
|
11
|
+
supportEmailAddress: string;
|
|
12
|
+
setSupportEmailAddress: (supportEmailAddress: string) => void;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* The hook that lets apps use the store
|
|
16
|
+
*/
|
|
17
|
+
export declare const useEnvironmentStore: import("zustand").UseBoundStore<import("zustand").StoreApi<EnvironmentStore>>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2025 Cognizant Technology Solutions Corp, www.cognizant.com.
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* Zustand state store for "environment settings", like the backend API URL
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
import { create } from "zustand";
|
|
21
|
+
/**
|
|
22
|
+
* The hook that lets apps use the store
|
|
23
|
+
*/
|
|
24
|
+
export const useEnvironmentStore = create((set) => ({
|
|
25
|
+
backendNeuroSanApiUrl: null,
|
|
26
|
+
setBackendNeuroSanApiUrl: (backendNeuroSanApiUrl) => set(() => ({ backendNeuroSanApiUrl })),
|
|
27
|
+
auth0ClientId: null,
|
|
28
|
+
setAuth0ClientId: (auth0ClientId) => set(() => ({ auth0ClientId })),
|
|
29
|
+
auth0Domain: null,
|
|
30
|
+
setAuth0Domain: (auth0Domain) => set(() => ({ auth0Domain })),
|
|
31
|
+
supportEmailAddress: null,
|
|
32
|
+
setSupportEmailAddress: (supportEmailAddress) => set(() => ({ supportEmailAddress })),
|
|
33
|
+
}));
|