File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,19 @@ const ScriptToolsDropdown = () => {
4343 setThreadTools ( threadTools ) ;
4444 } , [ tools , displayNames , knowledgeGatewayTool ] ) ;
4545
46+ function dynamicInstructions ( name : string | undefined ) : string | undefined {
47+ if ( name && name === 'dynamic-instructions' ) {
48+ return 'Dynamic Instructions' ;
49+ }
50+
51+ return name ;
52+ }
53+
4654 function getDisplayName ( ref : string ) : string {
55+ if ( ref === 'dynamic-instructions' ) {
56+ return 'Dynamic Instructions' ;
57+ }
58+
4759 return (
4860 ref
4961 . split ( '/' )
@@ -100,9 +112,11 @@ const ScriptToolsDropdown = () => {
100112 content = { t }
101113 isReadOnly
102114 >
103- { program . toolSet [
104- ( v . find ( ( v ) => v . reference === t ) || { } ) . toolID || ''
105- ] . name || getDisplayName ( t ) }
115+ { dynamicInstructions (
116+ program . toolSet [
117+ ( v . find ( ( v ) => v . reference === t ) || { } ) . toolID || ''
118+ ] . name
119+ ) || getDisplayName ( t ) }
106120 </ DropdownItem >
107121 ) )
108122 ) : (
You can’t perform that action at this time.
0 commit comments