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
Describe the bug
Executing the example tool in "Modules"-"Tools"-"Writing a new tool"-"Implementing the Tool class"-"Advanced" errors with the following the error message.
node:internal/modules/run_main:129
triggerUncaughtException(
^
[ToolError: Tool "OpenLibrary" has occurred an error!] {
isFatal: false,
isRetryable: true,
context: { input: { title: 'Hrry Potter' }, options: undefined },
[errors]: [
TypeError: Request with GET/HEAD method cannot have body.
at node:internal/deps/undici/undici:13178:13
at async OpenLibraryTool._run (/Users/akihikokuroda/development/repositories/i-am-bee/bee-agent-framework/examples/tools/custom/openLibrary.ts:59:22)
at async Object.executor (/Users/akihikokuroda/development/repositories/i-am-bee/bee-agent-framework/src/tools/base.ts:222:19)
at async pRetry.retries (/Users/akihikokuroda/development/repositories/i-am-bee/bee-agent-framework/src/internals/helpers/retryable.ts:168:16)
at async handler (/Users/akihikokuroda/development/repositories/i-am-bee/bee-agent-framework/src/internals/helpers/retry.ts:48:14)
at async pRetry (/Users/akihikokuroda/development/repositories/i-am-bee/bee-agent-framework/src/internals/helpers/retry.ts:71:10)
]
}
To Reproduce
Copy past the example in a xxx.ts file.
Add the following lines at the end.
const tool = new OpenLibraryTool();
const result = await tool.run({
title: "Harry Potter",
});
console.log(result.getTextContent());
Expected behavior
It shows some response without error.
Screenshots / Code snippets
Set-up: Additional context
The OpenLibrary site is always down for me so it doesn't matter to fix this issue or replace with different example.
The openLibraryTool example in the bee-community-tools` repository is doesn't have this issue.
The text was updated successfully, but these errors were encountered:
Describe the bug
Executing the example tool in "Modules"-"Tools"-"Writing a new tool"-"Implementing the Tool class"-"Advanced" errors with the following the error message.
To Reproduce
Copy past the example in a xxx.ts file.
Add the following lines at the end.
Expected behavior
It shows some response without error.
Screenshots / Code snippets
Set-up:
Additional context
The OpenLibrary site is always down for me so it doesn't matter to fix this issue or replace with different example.
The
openLibraryTool
example in the bee-community-tools` repository is doesn't have this issue.The text was updated successfully, but these errors were encountered: