@@ -135,16 +135,22 @@ const ToolEditor : React.FC<ToolEditorProps> = ({
135
135
< Grid container spacing = { 2 } >
136
136
137
137
< Grid size = { 12 } >
138
- < Divider textAlign = "left" >
139
- Tool Definition
140
- </ Divider >
138
+ < Divider
139
+ sx = { {
140
+ borderBottom : '2px solid #3064C8' ,
141
+ } } />
142
+ </ Grid >
143
+
144
+ < Grid size = { 12 } >
145
+ < Divider textAlign = "left" > Definition</ Divider >
141
146
</ Grid >
142
147
143
148
< Grid size = { { xs : 12 , md : 4 } } >
144
149
< TextField
145
150
fullWidth
146
- label = "TrustGraph ID"
147
- value = { tool . id }
151
+ multiline
152
+ label = "ID"
153
+ placeholder = { tool . id }
148
154
onChange = {
149
155
( event : React . ChangeEvent < HTMLInputElement > ) => {
150
156
setId ( event . target . value ) ;
@@ -156,8 +162,9 @@ const ToolEditor : React.FC<ToolEditorProps> = ({
156
162
< Grid size = { { xs : 12 , md : 8 } } >
157
163
< TextField
158
164
fullWidth
159
- label = "Tool Name"
160
- value = { tool . name }
165
+ multiline
166
+ label = "Name"
167
+ placeholder = { tool . name }
161
168
onChange = {
162
169
( event : React . ChangeEvent < HTMLInputElement > ) => {
163
170
setName ( event . target . value ) ;
@@ -169,13 +176,13 @@ const ToolEditor : React.FC<ToolEditorProps> = ({
169
176
< Grid size = { 12 } >
170
177
< FormControl fullWidth >
171
178
172
- < InputLabel id = "type-label" > Tool Options</ InputLabel >
179
+ < InputLabel id = "type-label" > Options</ InputLabel >
173
180
174
181
< Select
175
182
labelId = "type-label"
176
183
id = "type-select"
177
184
value = { tool . type }
178
- label = "Tool Options"
185
+ label = "Options"
179
186
onChange = { ( e ) => setType ( e . target . value ) }
180
187
sx = { { minHeight : '6rem' } }
181
188
>
@@ -253,9 +260,9 @@ const ToolEditor : React.FC<ToolEditorProps> = ({
253
260
< Grid size = { 12 } >
254
261
< TextField
255
262
fullWidth
256
- label = "Tool Instructions"
263
+ label = "Instructions"
257
264
multiline
258
- value = { tool . description }
265
+ placeholder = { tool . description }
259
266
rows = { 5 }
260
267
onChange = {
261
268
( event : React . ChangeEvent < HTMLInputElement > ) => {
@@ -271,17 +278,25 @@ const ToolEditor : React.FC<ToolEditorProps> = ({
271
278
272
279
< React . Fragment key = { ix } >
273
280
281
+ < Grid size = { 12 } >
282
+ < Divider
283
+ sx = { {
284
+ borderBottom : '2px solid #3064C8' ,
285
+ } } />
286
+ </ Grid >
287
+
274
288
< Grid size = { 12 } >
275
289
< Divider textAlign = "left" >
276
- { 'Tool Argument ' + ( ix + 1 ) + ': ' + arg . name }
290
+ { 'Argument ' + ( ix + 1 ) + ': ' + arg . name }
277
291
</ Divider >
278
292
</ Grid >
279
293
280
294
< Grid size = { 4 } >
281
295
< TextField
282
296
fullWidth
283
- label = "Argument Name"
284
- value = { arg . name }
297
+ multiline
298
+ label = "Name"
299
+ placeholder = { arg . name }
285
300
onChange = {
286
301
( event : React . ChangeEvent < HTMLInputElement > ) => {
287
302
setArgName (
@@ -297,16 +312,12 @@ const ToolEditor : React.FC<ToolEditorProps> = ({
297
312
298
313
< FormControl fullWidth >
299
314
300
- < InputLabel
301
- id = { 'arg-type-' + ix }
302
- >
303
- Argument Type
304
- </ InputLabel >
315
+ < InputLabel id = { 'arg-type-' + ix } > Type</ InputLabel >
305
316
306
317
< Select
307
318
labelId = { 'arg-type-' + ix }
308
319
value = { arg . type }
309
- label = "Argument Type"
320
+ label = "Type"
310
321
onChange = {
311
322
( e ) =>
312
323
setArgType (
@@ -338,7 +349,7 @@ const ToolEditor : React.FC<ToolEditorProps> = ({
338
349
variant = "contained"
339
350
onClick = { ( ) => deleteArg ( ix ) }
340
351
>
341
- Delete { arg . name }
352
+ Delete
342
353
</ Button >
343
354
</ Box >
344
355
@@ -349,8 +360,8 @@ const ToolEditor : React.FC<ToolEditorProps> = ({
349
360
350
361
< TextField
351
362
fullWidth
352
- label = "Argument Definition "
353
- value = { arg . description }
363
+ label = "Description "
364
+ placeholder = { arg . description }
354
365
multiline
355
366
rows = { 2 }
356
367
onChange = {
@@ -380,7 +391,7 @@ const ToolEditor : React.FC<ToolEditorProps> = ({
380
391
variant = "contained"
381
392
onClick = { addArgument }
382
393
>
383
- Add Tool Argument
394
+ Add Argument
384
395
</ Button >
385
396
}
386
397
@@ -394,7 +405,7 @@ const ToolEditor : React.FC<ToolEditorProps> = ({
394
405
variant = "contained"
395
406
onClick = { deleteTool }
396
407
>
397
- Delete { tool . name }
408
+ Delete Tool
398
409
</ Button >
399
410
}
400
411
0 commit comments