Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

Refactor Chat Component Structure and Introduce Info Message Type

Salman-Ahamed590642f7228c
diff --git a/packages/app/src/react/features/ai-chat/components/chat/chat.tsx b/packages/app/src/react/features/ai-chat/components/chat/chat.tsx
index be7e3e59..4bc1a4bb 100644
--- a/packages/app/src/react/features/ai-chat/components/chat/chat.tsx
+++ b/packages/app/src/react/features/ai-chat/components/chat/chat.tsx
@@ -1,6 +1,6 @@
import { FC, memo } from 'react';
-import { Error, Loading, Meta, System, User } from '@react/features/ai-chat/components';
+import { Error, Info, Loading, Meta, System, User } from '@react/features/ai-chat/components';
import { MESSAGE_TYPES } from '@react/features/ai-chat/constants';
import { TChatMessage } from '@react/features/ai-chat/types';
@@ -11,20 +11,22 @@ interface IProps extends TChatMessage {
}
export const Chat: FC<IProps> = memo((props) => {
- const { type, attachments, avatar, content, metaMessages, retry, scrollToBottom } = props;
+ const { type, attachments, content, retry, ...metaMessage } = props;
switch (type) {
case MESSAGE_TYPES.USER:
return <User message={content} attachments={attachments} />;
case MESSAGE_TYPES.LOADING:
return <Loading />;
- case MESSAGE_TYPES.META:
- return <Meta data={{ avatar, metaMessages }} scrollToBottom={scrollToBottom} />;
case MESSAGE_TYPES.SYSTEM:
- return <System message={content} onUpdate={scrollToBottom} />;
+ return <System message={content} onUpdate={props.scrollToBottom} />;
+ case MESSAGE_TYPES.META:
+ return <Meta {...metaMessage} />;
+ case MESSAGE_TYPES.INFO:
+ return <Info message={content} />;
case MESSAGE_TYPES.ERROR:
- return <Error message={content} onRetryClick={retry} />;
+ return <Error message={content} retry={retry} />;
default:
- return <Error message="Something went wrong!" onRetryClick={retry} />;
+ return <Error message="Something went wrong!" retry={retry} />;
}
});
diff --git a/packages/app/src/react/features/ai-chat/components/chat/index.ts b/packages/app/src/react/features/ai-chat/components/chat/index.ts
index 85e57a30..748ee4ca 100644
--- a/packages/app/src/react/features/ai-chat/components/chat/index.ts
+++ b/packages/app/src/react/features/ai-chat/components/chat/index.ts
@@ -4,4 +4,3 @@ export * from './code-block';
export * from './loading';
export * from './markdown-renderer';
export * from './message';
-export * from './typewriter';
diff --git a/packages/app/src/react/features/ai-chat/components/chat/message/error.tsx b/packages/app/src/react/features/ai-chat/components/chat/message/error.tsx
index 8b83040c..3bf45676 100644
--- a/packages/app/src/react/features/ai-chat/components/chat/message/error.tsx
+++ b/packages/app/src/react/features/ai-chat/components/chat/message/error.tsx
@@ -1,14 +1,12 @@
-import { ErrorInfoIcon, RetryIcon } from '@react/features/ai-chat/components';
+import { InfoIcon, RetryIcon } from '@react/features/ai-chat/components';
+import { TMessageProps } from '@react/features/ai-chat/types';
import { FC } from 'react';
import ReactMarkdown from 'react-markdown';
import remarkGfm from 'remark-gfm';
-type TProps = {
- message: string;
- onRetryClick: () => void;
-};
+type TProps = TMessageProps & { retry: () => void };
-export const Error: FC<TProps> = ({ message, onRetryClick }) => {
+export const Error: FC<TProps> = ({ message, retry }) => {
const isApiKeyError =
message.includes('Incorrect API key provided') ||
(message.includes('401') &&
@@ -20,7 +18,7 @@ export const Error: FC<TProps> = ({ message, onRetryClick }) => {
<div className="rounded-lg bg-pink-50 border border-pink-200 p-4 max-w-screen-md flex justify-between items-center gap-5">
<div className="flex items-start gap-3">
<div className="flex-shrink-0 mt-0.5">
- <ErrorInfoIcon />
+ <InfoIcon className="text-red-500" />
</div>
<div className="flex-1 text-red-700 text-sm leading-relaxed">
@@ -43,9 +41,9 @@ export const Error: FC<TProps> = ({ message, onRetryClick }) => {
<ReactMarkdown remarkPlugins={[remarkGfm]}>{message}</ReactMarkdown>
</div>
</div>
- {onRetryClick && (
+ {retry && (
<button
- onClick={onRetryClick}
+ onClick={retry}
className="inline-flex items-center px-4 gap-x-1 py-2 border border-gray-300 text-sm font-medium rounded-[18px] text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed transition-colors shadow-sm"
>
<RetryIcon />
diff --git a/packages/app/src/react/features/ai-chat/components/chat/message/index.ts b/packages/app/src/react/features/ai-chat/components/chat/message/index.ts
index dfc8125c..e60eaf00 100644
--- a/packages/app/src/react/features/ai-chat/components/chat/message/index.ts
+++ b/packages/app/src/react/features/ai-chat/components/chat/message/index.ts
@@ -1,4 +1,5 @@
export * from './error';
+export * from './info';
export * from './meta';
export * from './system';
export * from './user';
diff --git a/packages/app/src/react/features/ai-chat/components/chat/message/info.tsx b/packages/app/src/react/features/ai-chat/components/chat/message/info.tsx
new file mode 100644
index 00000000..c17a2054
--- /dev/null
+++ b/packages/app/src/react/features/ai-chat/components/chat/message/info.tsx
@@ -0,0 +1,21 @@
+import { InfoIcon } from '@react/features/ai-chat/components';
+import { TMessageProps } from '@react/features/ai-chat/types';
+import { FC } from 'react';
+import ReactMarkdown from 'react-markdown';
+import remarkGfm from 'remark-gfm';
+
+export const Info: FC<TMessageProps> = ({ message }) => {
+ return (
+ <div className="flex flex-col items-start">
+ <div className="rounded-lg bg-amber-50 border border-amber-200 p-4 max-w-screen-md flex items-start gap-3">
+ <div className="flex-shrink-0 mt-0.5">
+ <InfoIcon className="text-amber-500" />
+ </div>
+
+ <div className="flex-1 text-amber-800 text-sm leading-relaxed">
+ <ReactMarkdown remarkPlugins={[remarkGfm]}>{message}</ReactMarkdown>
+ </div>
+ </div>
+ </div>
+ );
+};
diff --git a/packages/app/src/react/features/ai-chat/components/chat/message/meta.tsx b/packages/app/src/react/features/ai-chat/components/chat/message/meta.tsx
index 5c06a796..4f749122 100644
--- a/packages/app/src/react/features/ai-chat/components/chat/message/meta.tsx
+++ b/packages/app/src/react/features/ai-chat/components/chat/message/meta.tsx
@@ -3,12 +3,13 @@ import { createThinkingManager, formatStatus } from '@react/features/ai-chat/uti
import { FC, useEffect, useRef, useState } from 'react';
type TProps = {
- scrollToBottom: () => void;
- data: { avatar?: string; metaMessages?: TMetaMessage };
+ avatar?: string;
+ metaMessages?: TMetaMessage;
+ scrollToBottom?: () => void;
};
-export const Meta: FC<TProps> = ({ data, scrollToBottom }) => {
- const { avatar, metaMessages } = data;
+export const Meta: FC<TProps> = (props) => {
+ const { avatar, metaMessages, scrollToBottom } = props || {};
const [thinkingMessage, setThinkingMessage] = useState<string>('');
const thinkingManagerRef = useRef(createThinkingManager());
diff --git a/packages/app/src/react/features/ai-chat/components/chat/message/system.tsx b/packages/app/src/react/features/ai-chat/components/chat/message/system.tsx
index 0d38a0ea..f288d0bd 100644
--- a/packages/app/src/react/features/ai-chat/components/chat/message/system.tsx
+++ b/packages/app/src/react/features/ai-chat/components/chat/message/system.tsx
@@ -1,23 +1,22 @@
-import { FC } from 'react';
+import { FC, useEffect } from 'react';
-import { MarkdownRenderer, Typewriter } from '@react/features/ai-chat/components';
+import { MarkdownRenderer } from '@react/features/ai-chat/components';
+import { TMessageProps } from '@react/features/ai-chat/types';
-type TProps = {
- message: string;
- enableTypewriter?: boolean;
- onUpdate?: () => void;
-};
+type TProps = TMessageProps & { onUpdate?: () => void };
+
+export const System: FC<TProps> = (props) => {
+ const { message, onUpdate } = props || {};
+
+ useEffect(() => {
+ onUpdate?.();
+ }, [message, onUpdate]);
-export const System: FC<TProps> = ({ message, onUpdate, enableTypewriter = true }) => {
if (!message) return null;
return (
<div className="system-message-bubble relative chat-rich-text-response rounded-lg px-3 text-[#141414]">
- {enableTypewriter ? (
- <Typewriter message={message} onUpdate={onUpdate} />
- ) : (
- <MarkdownRenderer message={message} />
- )}
+ <MarkdownRenderer message={message} />
</div>
);
};
diff --git a/packages/app/src/react/features/ai-chat/components/chat/message/user.tsx b/packages/app/src/react/features/ai-chat/components/chat/message/user.tsx
index 276a9beb..08fd9ac9 100644
--- a/packages/app/src/react/features/ai-chat/components/chat/message/user.tsx
+++ b/packages/app/src/react/features/ai-chat/components/chat/message/user.tsx
@@ -1,11 +1,8 @@
import { FileItemPreview } from '@react/features/ai-chat/components';
-import type { TAttachment } from '@react/features/ai-chat/types';
+import { TAttachment, TMessageProps } from '@react/features/ai-chat/types';
import { FC } from 'react';
-type TProps = {
- message: string;
- attachments?: TAttachment[];
-};
+type TProps = TMessageProps & { attachments?: TAttachment[] };
export const User: FC<TProps> = ({ message, attachments }) => {
const hasAttachments = attachments && attachments.length > 0;
diff --git a/packages/app/src/react/features/ai-chat/components/chat/typewriter.tsx b/packages/app/src/react/features/ai-chat/components/chat/typewriter.tsx
deleted file mode 100644
index f3da1715..00000000
--- a/packages/app/src/react/features/ai-chat/components/chat/typewriter.tsx
+++ /dev/null
@@ -1,35 +0,0 @@
-import { FC, useEffect, useRef, useState } from 'react';
-
-import { MarkdownRenderer } from '@react/features/ai-chat/components';
-
-type TProps = {
- message: string;
- onUpdate?: () => void;
-};
-
-export const Typewriter: FC<TProps> = ({ message, onUpdate }) => {
- const [displayedText, setDisplayedText] = useState('');
- const prevMessageLengthRef = useRef(0);
-
- useEffect(() => {
- // Reset detection: message got shorter or empty
- if (message.length < prevMessageLengthRef.current || message === '') {
- setDisplayedText('');
- prevMessageLengthRef.current = 0;
- return;
- }
-
- // Update displayed text and notify
- if (message.length > prevMessageLengthRef.current) {
- setDisplayedText(message);
- prevMessageLengthRef.current = message.length;
- onUpdate?.();
- }
- }, [message, onUpdate]);
-
- return (
- <div className="typewriter-content type-writer-text type-writer-inner w-full text-wrap">
- <MarkdownRenderer message={displayedText} />
- </div>
- );
-};
diff --git a/packages/app/src/react/features/ai-chat/components/common/icons.tsx b/packages/app/src/react/features/ai-chat/components/common/icons.tsx
index 1a8e6930..eaa990e5 100644
--- a/packages/app/src/react/features/ai-chat/components/common/icons.tsx
+++ b/packages/app/src/react/features/ai-chat/components/common/icons.tsx
@@ -41,15 +41,15 @@ export const SendIcon = ({ className }: { className?: string }) => (
</svg>
);
-/** Error info circle icon (red warning indicator) */
-export const ErrorInfoIcon = ({ className }: { className?: string }) => (
+// Info circle icon
+export const InfoIcon = ({ className }: { className?: string }) => (
<svg
width="20"
height="20"
viewBox="0 0 20 20"
fill="currentColor"
xmlns="http://www.w3.org/2000/svg"
- className={cn('text-red-500', className)}
+ className={className}
>
<path d="M10 9.25C10.4142 9.25002 10.75 9.5858 10.75 10V13.333C10.75 13.7472 10.4142 14.083 10 14.083C9.58579 14.083 9.25 13.7472 9.25 13.333V10C9.25 9.58579 9.58579 9.25 10 9.25Z" />
<path d="M10 5.83301C10.5293 5.83303 10.958 6.26273 10.958 6.79199C10.9578 7.3211 10.5291 7.74998 10 7.75C9.47084 7.75 9.04217 7.32111 9.04199 6.79199C9.04199 6.26272 9.47073 5.83301 10 5.83301Z" />
@@ -74,4 +74,4 @@ export const RetryIcon = ({ className }: { className?: string }) => (
>
<path d="M16.4183 9.99967C16.4181 6.45518 13.5448 3.58188 10.0003 3.58171C7.96895 3.58171 6.15935 4.52712 4.98273 6.00163H7.50031L7.6341 6.0153C7.93707 6.07735 8.16535 6.34535 8.16535 6.66667C8.16535 6.98799 7.93707 7.25598 7.6341 7.31803L7.50031 7.33171H3.75031C3.73055 7.33171 3.71104 7.32656 3.69172 7.32487C3.68913 7.32464 3.68649 7.32513 3.68391 7.32487C3.64304 7.32082 3.60409 7.31254 3.56574 7.30143C3.56188 7.30031 3.55788 7.2997 3.55402 7.2985C3.51366 7.286 3.47546 7.27023 3.43879 7.25065L3.43586 7.24967C3.43444 7.24891 3.43337 7.24752 3.43195 7.24675C3.35757 7.20587 3.29219 7.15262 3.23859 7.08757C3.23505 7.08329 3.23128 7.07923 3.22785 7.07487C3.20549 7.04631 3.1858 7.01609 3.16828 6.98405C3.16491 6.97791 3.16169 6.97173 3.15852 6.9655C3.14408 6.93698 3.13265 6.90732 3.12238 6.87663C3.11744 6.86205 3.11264 6.84757 3.10871 6.83268C3.10316 6.81117 3.09843 6.78955 3.09504 6.76725C3.09108 6.74233 3.08833 6.71738 3.08723 6.69206C3.08691 6.68361 3.08527 6.67519 3.08527 6.66667V2.91667C3.08527 2.5494 3.38304 2.25163 3.75031 2.25163C4.11743 2.2518 4.41535 2.54951 4.41535 2.91667V4.62956C5.82462 3.16447 7.80565 2.25163 10.0003 2.25163C14.2793 2.2518 17.7482 5.72065 17.7484 9.99967C17.7484 14.2789 14.2794 17.7485 10.0003 17.7487C6.02899 17.7487 2.75629 14.7612 2.305 10.9108L2.96516 10.8337L3.62531 10.7555C3.99895 13.9437 6.7115 16.4186 10.0003 16.4186C13.5449 16.4184 16.4183 13.5443 16.4183 9.99967ZM2.88801 10.1725C3.25252 10.13 3.58237 10.3911 3.62531 10.7555L2.305 10.9108C2.26225 10.546 2.52323 10.2153 2.88801 10.1725Z" />
</svg>
-);
\ No newline at end of file
+);
diff --git a/packages/app/src/react/features/ai-chat/components/footer/input.tsx b/packages/app/src/react/features/ai-chat/components/footer/input.tsx
index b5af27c1..14a3984e 100644
--- a/packages/app/src/react/features/ai-chat/components/footer/input.tsx
+++ b/packages/app/src/react/features/ai-chat/components/footer/input.tsx
@@ -21,13 +21,14 @@ export const ChatInput = () => {
const inputRef = refs?.input;
const { isChatCreating } = chat || {};
- const { isLoading, data: agentData } = agent || {};
const { isStreaming, sendMessage, stopStreaming } = chat || {};
+ const { isLoading, data: agentData, settings: agentSettings } = agent || {};
const { attachments, status, addFiles, remove, clear, uploading } = filesData || {};
const maxLength = MAX_CHAT_MESSAGE_LENGTH;
const isMaxFilesUploaded = attachments.length >= 10;
- const isDisabled = isChatCreating || isLoading.agent;
+ const isChatbotDisabled = agentSettings?.chatbot === 'false';
+ const isDisabled = isChatCreating || isLoading.agent || isChatbotDisabled;
// Adjust textarea height when message changes (chatbot pattern)
useEffect(() => {
@@ -43,6 +44,7 @@ export const ChatInput = () => {
);
const handleSubmit = useCallback((): void => {
+ if (isChatbotDisabled) return;
if (isStreaming) return stopStreaming();
const trimmedMessage = message.trim();
@@ -72,7 +74,16 @@ export const ChatInput = () => {
forceScrollToBottomImmediate({ behavior: 'smooth', delay: 0 });
}, 150);
}
- }, [isStreaming, stopStreaming, message, attachments.length, sendMessage, clear, inputRef]);
+ }, [
+ isChatbotDisabled,
+ isStreaming,
+ stopStreaming,
+ message,
+ attachments.length,
+ sendMessage,
+ clear,
+ inputRef,
+ ]);
const handleKeyDown = useCallback(
(e: KeyboardEvent<HTMLTextAreaElement>) => {
@@ -155,7 +166,12 @@ export const ChatInput = () => {
{message.length}/{maxLength}
</div>
- <div onClick={(e) => e.stopPropagation()}>
+ <div
+ onClick={(e) => e.stopPropagation()}
+ data-disabled={isDisabled || isStreaming}
+ aria-disabled={isDisabled || isStreaming}
+ className="data-[disabled=true]:cursor-not-allowed"
+ >
<AttachmentButton
onFilesAdd={addFiles}
fileInputRef={fileInputRef}
@@ -164,7 +180,12 @@ export const ChatInput = () => {
/>
</div>
- <div onClick={(e) => e.stopPropagation()}>
+ <div
+ onClick={(e) => e.stopPropagation()}
+ data-disabled={isDisabled || isStreaming}
+ aria-disabled={isDisabled || isStreaming}
+ className="data-[disabled=true]:cursor-not-allowed"
+ >
<SendButton
onClick={handleSubmit}
isStreaming={isStreaming}
diff --git a/packages/app/src/react/features/ai-chat/components/footer/send-button.tsx b/packages/app/src/react/features/ai-chat/components/footer/send-button.tsx
index c073da61..a3cee6cf 100644
--- a/packages/app/src/react/features/ai-chat/components/footer/send-button.tsx
+++ b/packages/app/src/react/features/ai-chat/components/footer/send-button.tsx
@@ -18,7 +18,7 @@ export const SendButton: FC<IProps> = ({ isStreaming, disabled, onClick }) => (
disabled={disabled}
handleClick={onClick}
className={cn(
- 'h-[40px] w-[40px] rounded-lg px-0 py-0',
+ 'h-[40px] w-[40px] rounded-lg px-0 py-0 disabled:cursor-not-allowed',
isStreaming ? 'chat-stop' : 'chat-send',
)}
Icon={isStreaming ? <FaStop fontSize={14} /> : <SendIcon className="text-white" />}
diff --git a/packages/app/src/react/features/ai-chat/constants/index.ts b/packages/app/src/react/features/ai-chat/constants/index.ts
index 5e7cc94b..7848f49a 100644
--- a/packages/app/src/react/features/ai-chat/constants/index.ts
+++ b/packages/app/src/react/features/ai-chat/constants/index.ts
@@ -14,12 +14,12 @@ export const MAX_UPLOADS = 5;
export const DEFAULT_AVATAR_URL =
'https://gravatar.com/avatar/ccd5b19e810febbfd3d4321e27b15f77?s=400&d=mp&r=x';
-type TMessageKey = 'USER' | 'SYSTEM' | 'ERROR' | 'DEBUG' | 'META' | 'LOADING';
+type TMessageKey = 'USER' | 'SYSTEM' | 'ERROR' | 'META' | 'LOADING' | 'INFO';
export const MESSAGE_TYPES: Record<TMessageKey, TMessageType> = {
USER: 'user',
SYSTEM: 'system',
ERROR: 'error',
- DEBUG: 'debug',
META: 'meta',
LOADING: 'loading',
+ INFO: 'info',
};
diff --git a/packages/app/src/react/features/ai-chat/contexts/chat.provider.tsx b/packages/app/src/react/features/ai-chat/contexts/chat.provider.tsx
index 131c61ce..e790f499 100644
--- a/packages/app/src/react/features/ai-chat/contexts/chat.provider.tsx
+++ b/packages/app/src/react/features/ai-chat/contexts/chat.provider.tsx
@@ -115,6 +115,20 @@ export const ChatContextProvider: FC<TChildren> = ({ children }) => {
Observability.observeInteraction(EVENTS.CHAT_EVENTS.SESSION_START);
}, [createSession, setMessages, fileUpload, stopStreaming]);
+ // Display informational message when chatbot is disabled
+ useEffect(() => {
+ if (agentSettings?.chatbot === 'false') {
+ setMessages([
+ {
+ id: new Date().getTime(),
+ content:
+ 'The chatbot feature is currently turned off. Enable it in agent settings or contact the owner.',
+ type: 'info',
+ },
+ ]);
+ }
+ }, [agentSettings?.chatbot, setMessages]);
+
// Session tracking
useEffect(() => {
Observability.observeInteraction(EVENTS.CHAT_EVENTS.SESSION_START);
diff --git a/packages/app/src/react/features/ai-chat/types/common.ts b/packages/app/src/react/features/ai-chat/types/common.ts
index b5b8a23c..f6292ebe 100644
--- a/packages/app/src/react/features/ai-chat/types/common.ts
+++ b/packages/app/src/react/features/ai-chat/types/common.ts
@@ -1,2 +1,2 @@
export type TChildren = { children: React.ReactNode };
-
+export type TMessageProps = { message: string };
diff --git a/packages/app/src/react/features/ai-chat/types/message.ts b/packages/app/src/react/features/ai-chat/types/message.ts
index c668bccb..3f7b6083 100644
--- a/packages/app/src/react/features/ai-chat/types/message.ts
+++ b/packages/app/src/react/features/ai-chat/types/message.ts
@@ -1,4 +1,4 @@
-export type TMessageType = 'user' | 'system' | 'debug' | 'error' | 'loading' | 'meta';
+export type TMessageType = 'user' | 'system' | 'error' | 'loading' | 'meta' | 'info';
export type TThinkingType = 'tools' | 'general';
@@ -38,4 +38,3 @@ export type TChatMessage = {
updatedAt?: number;
attachments?: TAttachment[];
};
-
diff --git a/packages/app/src/react/features/ai-chat/types/stream.ts b/packages/app/src/react/features/ai-chat/types/stream.ts
index b77dca90..a1da2524 100644
--- a/packages/app/src/react/features/ai-chat/types/stream.ts
+++ b/packages/app/src/react/features/ai-chat/types/stream.ts
@@ -1,8 +1,7 @@
-import type { TFunctionCall, TMetaMessage } from './message';
import type { TUploadFile } from './file';
+import type { TFunctionCall, TMetaMessage } from './message';
export type TStreamChunk = {
- conversationTurnId?: string;
content?: string;
debugOn?: boolean;
title?: string;
@@ -31,8 +30,8 @@ export type TStreamConfig = {
};
export interface IStreamCallbacks {
- onContent: (content: string, turnId?: string) => void;
- onMetaMessages?: (metaMessages: TMetaMessage, turnId?: string) => void;
+ onContent: (content: string) => void;
+ onMetaMessages?: (metaMessages: TMetaMessage) => void;
onError: (error: TChatError) => void;
onStart?: () => void;
onComplete: () => void;
@@ -43,7 +42,6 @@ export type TErrorType = 'stream' | 'network' | 'abort' | 'system';
export type TChatError = {
message: string;
type: TErrorType;
- turnId?: string;
originalError?: Error | unknown;
isAborted?: boolean;
};
@@ -56,4 +54,3 @@ export type TAPIConfig = {
timeout?: number;
retry?: { attempts: number; delay: number };
};
-
diff --git a/packages/app/src/react/shared/types/agent-data.types.ts b/packages/app/src/react/shared/types/agent-data.types.ts
index 509157ff..e7bf338e 100644
--- a/packages/app/src/react/shared/types/agent-data.types.ts
+++ b/packages/app/src/react/shared/types/agent-data.types.ts
@@ -1,14 +1,22 @@
export interface AgentSettings {
id: number;
- key: string;
- value: string;
+ API: string;
+ 'agent-auth-data': string;
+ alexa: string;
avatar: string;
chatGptModel: string;
+ chatbot: string;
+ chatgpt: string;
lastConversationId: string;
+ llm: string;
+ mcp: string;
+ key: string;
+ value: string;
aiAgentId: string;
createdAt: string;
updatedAt: string;
}
+
interface Domain {
name: string;
}