How to output structured JSON from DuckDuckGo tool call #29313
Unanswered
ajesuscode
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Checked other resources
Commit to Help
Example Code
Description
I am using an example from official documentation here: duckduckgo_search
The output is a string, but I want it to be a structured JSON
When trying to add method
withStructuredJson()
I got error, that basically says that bindTools method doesnt exist on the object
Who knows how to achieve a structured output after calling DuckDuckGo tool
Please help, or point to a working similar solution
Thank you
System Info
{
"type": "module",
"dependencies": {
"@langchain/community": "^0.3.24",
"@langchain/core": "^0.3.30",
"@langchain/openai": "^0.3.17",
"dotenv": "^16.4.7",
"duck-duck-scrape": "^2.2.7",
"langchain": "^0.3.11",
"zod": "^3.24.1"
}
}
Beta Was this translation helpful? Give feedback.
All reactions