chore: some refactor and cleaning

This commit is contained in:
2024-12-30 06:54:01 +01:00
parent 5c75e9390e
commit e39026c259
15 changed files with 5029 additions and 7233 deletions

View File

@@ -20,7 +20,7 @@ export async function getMessage<T>(text: string, tool: BaseTool) {
try {
const data = response.content as [
{ type: string; text: string },
{ type: string; input: object } // object of type V
{ type: string; input: object }
];
return data[1].input as T;