How to create ToolNode using OpenAi Responses built-in tools #4143
septst
started this conversation in
Discussions
Replies: 4 comments 4 replies
-
Same question, how can I use with create_react_agent? model = ChatOpenAI(model="gpt-4o-mini", temperature=0)
tools = [{"type": "web_search_preview"}]
create_react_agent(
model,
tools,
prompt=prompt,
name="agent"
) |
Beta Was this translation helpful? Give feedback.
0 replies
-
We are having the same issue |
Beta Was this translation helpful? Give feedback.
0 replies
-
+1 Same issue |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is working for me via https://js.langchain.com/docs/integrations/chat/openai/#built-in-tools However, they have conflicting use of quotes on that page. Try: const agentTools = [
GetWeather,
{ type: "web_search" } //no quotes on type
]; Hope that helps! |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am trying to use the OpenAi Responses API
web_searcher_preview
along with my other function tools (@tool
) to do some task and Pydantic BaseModels for structured output.This gives me error saying "The first argument must be a string or a callable with a name for tool decorator. Got <class 'dict'>. Can anyone please advise how I can use Responses API tools selectively?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions