Type safe tool use with generated types
<PLUG_NAME>.d.ts
file in the src or root directory of your project.
You can then use the type in your code by passing it as generic of the mcplug
function.
toolCalls
or toolResults
properties of the result
will be typed and you will be able to use them safely in your code.
--folder
flag.