@adminforth/agent 1.26.9 → 1.26.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apiBasedTools.ts +2 -0
- package/build.log +1 -1
- package/dist/apiBasedTools.js +2 -0
- package/package.json +1 -1
package/apiBasedTools.ts
CHANGED
|
@@ -740,11 +740,13 @@ async function callOpenApiSchema(params: {
|
|
|
740
740
|
toolName,
|
|
741
741
|
});
|
|
742
742
|
const hasRequestBody = !METHODS_WITHOUT_REQUEST_BODY.has(method);
|
|
743
|
+
logger.info(`Calling OpenAPI tool "${toolName}" with method ${method} at URL ${requestUrl}`);
|
|
743
744
|
const response = await fetch(hasRequestBody ? requestUrl : appendInputsToQueryString(requestUrl, body), {
|
|
744
745
|
method,
|
|
745
746
|
headers: createToolRequestHeaders(httpExtra, userTimeZone),
|
|
746
747
|
body: hasRequestBody ? JSON.stringify(body) : undefined,
|
|
747
748
|
});
|
|
749
|
+
logger.info(`Received response with status ${response.status} from OpenAPI tool "${toolName}"`);
|
|
748
750
|
|
|
749
751
|
return parseOpenApiToolResponse(response);
|
|
750
752
|
}
|
package/build.log
CHANGED
|
@@ -38,5 +38,5 @@ custom/skills/fetch_data/SKILL.md
|
|
|
38
38
|
custom/skills/mutate_data/
|
|
39
39
|
custom/skills/mutate_data/SKILL.md
|
|
40
40
|
|
|
41
|
-
sent 207,931 bytes received
|
|
41
|
+
sent 207,931 bytes received 562 bytes 416,986.00 bytes/sec
|
|
42
42
|
total size is 205,621 speedup is 0.99
|
package/dist/apiBasedTools.js
CHANGED
|
@@ -503,11 +503,13 @@ function callOpenApiSchema(params) {
|
|
|
503
503
|
toolName,
|
|
504
504
|
});
|
|
505
505
|
const hasRequestBody = !METHODS_WITHOUT_REQUEST_BODY.has(method);
|
|
506
|
+
logger.info(`Calling OpenAPI tool "${toolName}" with method ${method} at URL ${requestUrl}`);
|
|
506
507
|
const response = yield fetch(hasRequestBody ? requestUrl : appendInputsToQueryString(requestUrl, body), {
|
|
507
508
|
method,
|
|
508
509
|
headers: createToolRequestHeaders(httpExtra, userTimeZone),
|
|
509
510
|
body: hasRequestBody ? JSON.stringify(body) : undefined,
|
|
510
511
|
});
|
|
512
|
+
logger.info(`Received response with status ${response.status} from OpenAPI tool "${toolName}"`);
|
|
511
513
|
return parseOpenApiToolResponse(response);
|
|
512
514
|
});
|
|
513
515
|
}
|