Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom tool testing not working,runtime is required #12168

Closed
5 tasks done
leslie2046 opened this issue Dec 27, 2024 · 1 comment · Fixed by #12178
Closed
5 tasks done

Custom tool testing not working,runtime is required #12168

leslie2046 opened this issue Dec 27, 2024 · 1 comment · Fixed by #12178
Labels
🔨 feat:tools Tools for agent, function call related stuff.

Comments

@leslie2046
Copy link
Contributor

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.14.2

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

  1. Create a customize tool by openapi schema
  2. Test it

✔️ Expected Behavior

图片

❌ Actual Behavior

3215cc8ad82749d784b769cda4aed3e

@leslie2046 leslie2046 changed the title Tool testing not working Custom tool testing not working Dec 27, 2024
@dosubot dosubot bot added the 🔨 feat:tools Tools for agent, function call related stuff. label Dec 27, 2024
@leslie2046 leslie2046 changed the title Custom tool testing not working Custom tool testing not working,runtime is required Dec 27, 2024
Copy link

dosubot bot commented Dec 27, 2024

The error message "runtime is required" suggests that the runtime object, which should contain necessary credentials like the API key, is not properly initialized or is missing. This is likely why the tool testing for the queryWeather function is not working as expected.

To resolve this issue, ensure that the runtime object is correctly set up and includes the required api_key for accessing the OpenWeather API. Without this key, the function cannot authenticate and retrieve the weather data [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 feat:tools Tools for agent, function call related stuff.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant