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
Only TS supported, only function, no check's (ex empty jsDoc). Todos concept: use function as tool with auto detect and convert to schema from jsDoc for tools list. Then auto call that function on tool prompt, with middleware support (before/after tool call).
/** * Tool to decode base64 string. * @param str string to be decoded * @returns decoded string */exportfunctionbase64DecodeTool(str: string): string{return`Decoded string is: ${atob(str)}`}/** * Tool to on/off light * @param state state of light * @returns current state of light */exportfunctiontoggleLightTool(state: boolean): string{return`Light now is ${state ? 'on' : 'off'}`}
Only TS supported, only
function
, no check's (ex empty jsDoc). Todos concept: use function as tool with auto detect and convert to schema from jsDoc for tools list. Then auto call that function on tool prompt, with middleware support (before/after tool call).jsDocToolsExtractor.ts
Usage:
tools.ts
index.ts
TOOLS_SCHEMA:
The text was updated successfully, but these errors were encountered: