Fix build errors

This commit is contained in:
akhisud3195 2025-05-09 20:00:50 +05:30
parent 5bc1dc8b37
commit 9c712250fb
2 changed files with 5 additions and 1 deletions

View file

@ -195,6 +195,8 @@ const App = forwardRef<{ handleCopyChat: () => void; handleUserMessage: (message
);
});
App.displayName = 'App';
export const Copilot = forwardRef<{ handleUserMessage: (message: string) => void }, {
projectId: string;
workflow: z.infer<typeof Workflow>;
@ -301,3 +303,5 @@ export const Copilot = forwardRef<{ handleUserMessage: (message: string) => void
);
});
Copilot.displayName = 'Copilot';

View file

@ -96,7 +96,7 @@ export function AgentConfig({
setShowRagCta(false);
}
setPreviousRagSources(currentSources);
}, [agent.ragDataSources]);
}, [agent.ragDataSources, previousRagSources.length]);
const handleUpdateInstructions = async () => {
const message = `Update the instructions for agent "${agent.name}" to use the rag tool (rag_search) since data sources have been added. If this has already been done, do not take any action, but let me know.`;