-
-
+
+
+
+
+
+
+
+
setRoot({ ...root, name: e.target.value })}
+ />
setRoot({ ...root, name: e.target.value })}
+ label="Description"
+ placeholder="Describe what your assistant does..."
+ defaultValue={root.description}
+ onChange={(e) => setRoot({ ...root, description: e.target.value })}
/>
-
-
setRoot({ ...root, description: e.target.value })}
- />
-
+
+
-
-
+ Back
+
+
+
+
+ {updated && (
+
+
+
+
+ )}
+
+
+
>
);
};
diff --git a/components/edit/configure/customTool.tsx b/components/edit/configure/customTool.tsx
index 6b0a93d0..ba0737e5 100644
--- a/components/edit/configure/customTool.tsx
+++ b/components/edit/configure/customTool.tsx
@@ -3,7 +3,7 @@ import { Tool, Property } from '@gptscript-ai/gptscript';
import Params from '@/components/edit/configure/params';
import Models from '@/components/edit/configure/models';
import Imports from '@/components/edit/configure/imports';
-import Script from '@/components/script';
+import Chat from '@/components/chat';
import Code from '@/components/edit/configure/code';
import {
Textarea,
@@ -23,7 +23,7 @@ import {
import { EditContext } from '@/contexts/edit';
import { GoCode, GoPencil, GoTools, GoTrash } from 'react-icons/go';
import { LuWrench, LuMessageSquare } from 'react-icons/lu';
-import { ScriptContextProvider } from '@/contexts/script';
+import { ChatContextProvider } from '@/contexts/chat';
import { HiCog } from 'react-icons/hi2';
import PropTypes from 'prop-types';
@@ -379,14 +379,14 @@ const CustomTool: React.FC
= ({ tool }) => {