Skip to content

Commit

Permalink
Prevent early evaluation of toDisplayToolName
Browse files Browse the repository at this point in the history
  • Loading branch information
rhennigan committed Dec 11, 2023
1 parent e812774 commit 9cbcffd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/Chatbook/Tools.wl
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,10 @@ makeToolPrompt[ settings_Association ] := $lastToolPrompt = TemplateObject[
"Tool Name: ",
TemplateSlot[ "Name" ],
"\nDisplay Name: ",
TemplateSlot[ "DisplayName", DefaultValue :> toDisplayToolName @ TemplateSlot[ "Name" ] ],
TemplateSlot[
"DisplayName",
DefaultValue :> TemplateExpression @ toDisplayToolName @ TemplateSlot[ "Name" ]
],
"\nDescription: ",
TemplateSlot[ "Description" ],
"\nSchema:\n",
Expand Down

0 comments on commit 9cbcffd

Please sign in to comment.