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
I added a very descriptive title to this question.
I searched the LangChain documentation with the integrated search.
I used the GitHub search to find a similar question and didn't find it.
Commit to Help
I commit to help with one of those options 👆
Example Code
@tooldefsearch(query: str) ->str:
"""This tool is used when you need to find real-time information."""print("###############################search#################################")
print(query)
print("##############################search end##############################")
returnqueryagent=create_openai_tools_agent(
self.chatmodel,
tools=[search],
prompt=self.prompt,
)
self.agent_executor=AgentExecutor(
agent=agent,
tools=[search],
verbose=True,
)
Description
The parameters received by the search tool are inconsistent with the user's input. How can we make the search tool obtain the user's original input?
System Info
System Information
OS: Darwin
OS Version: Darwin Kernel Version 22.2.0: Fri Nov 11 02:08:47 PST 2022; root:xnu-8792.61.2~4/RELEASE_X86_64
Python Version: 3.10.11 (v3.10.11:7d4cc5aa85, Apr 4 2023, 19:05:19) [Clang 13.0.0 (clang-1300.0.29.30)]
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Checked other resources
Commit to Help
Example Code
Description
The parameters received by the search tool are inconsistent with the user's input. How can we make the search tool obtain the user's original input?
System Info
System Information
Package Information
Other Dependencies
Beta Was this translation helpful? Give feedback.
All reactions