Restructure agent chat messages with parts-based architecture (#14749)

Co-authored-by: Félix Malfait <felix@twenty.com>
This commit is contained in:
Abdul Rahman
2025-09-29 17:01:55 +05:30
committed by GitHub
parent 84cbd8e092
commit 2685f4a5b9
69 changed files with 1200 additions and 1539 deletions
@@ -1,20 +1,16 @@
import { Button } from 'twenty-ui/input';
import { t } from '@lingui/core/macro';
import { useAgentChat } from '@/ai/hooks/useAgentChat';
import { type ObjectRecord } from '@/object-record/types/ObjectRecord';
import { Button } from 'twenty-ui/input';
export const SendMessageButton = ({
records,
agentId,
handleSendMessage,
input,
isLoading,
}: {
agentId: string;
records?: ObjectRecord[];
handleSendMessage: () => void;
input: string;
isLoading: boolean;
}) => {
const { isLoading, handleSendMessage, input } = useAgentChat(
agentId,
records,
);
return (
<Button
variant="primary"