You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
options.tokenOptions should be options.tokenizationOptions
Additionally, it is unclear that options.parameters is used as the props of MyElement. It would be better to make it clear how the input data is utilized.
// 1. Import prompt-tsx's well-known content type:import{contentType}from'@vscode/prompt-tsx';asyncfunctiondoToolInvocation(options: LanguageModelToolInvocationOptions): vscode.LanguageModelToolResult{return{// In constructing your response, render the tree as JSON.[contentType]: awaitrenderElementJSON(MyElement,options.parameters,options.tokenOptions),toString: ()=>'...',};}
Usage in Tools
in README.md is incorrect.options.parameters
should beoptions.input
options.tokenOptions
should beoptions.tokenizationOptions
Additionally, it is unclear that
options.parameters
is used as the props ofMyElement
. It would be better to make it clear how the input data is utilized.vscode-prompt-tsx/README.md
Line 387 in ef03f8a
The text was updated successfully, but these errors were encountered: