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
The You.com tool seems broken with error.
Someone knows why we have this?
Thanks all !
TypeError("Invalid variable type: value should be str, int or float, got <langchain_core.callbacks.manager.AsyncCallbackManager object at 0x7f9b94242a50> of type <class 'langchain_core.callbacks.manager.AsyncCallbackManager'>")Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/langchain_core/tools.py", line 480, in arun
await self._arun(*tool_args, run_manager=run_manager, **tool_kwargs)
File "/usr/local/lib/python3.11/site-packages/langchain_core/tools.py", line 614, in _arun
await self.coroutine(
File "/usr/local/lib/python3.11/site-packages/langchain/tools/retriever.py", line 40, in _aget_relevant_documents
docs = await retriever.aget_relevant_documents(query, callbacks=callbacks)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/langchain_core/retrievers.py", line 384, in aget_relevant_documents
raise e
File "/usr/local/lib/python3.11/site-packages/langchain_core/retrievers.py", line 377, in aget_relevant_documents
result = await self._aget_relevant_documents(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/langchain_community/retrievers/you.py", line 35, in _aget_relevant_documents
results = await self.results_async(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/langchain_community/utilities/you.py", line 229, in results_async
raw_search_results_async = await self.raw_results_async(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/langchain_community/utilities/you.py", line 213, in raw_results_async
async with session.get(
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 1187, in aenter
self._resp = await self._coro
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 541, in _request
req = self._request_class(
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 302, in init
url2 = url.with_query(params)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/yarl/_url.py", line 1008, in with_query
new_query = self._get_str_query(*args, **kwargs) or ""
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/yarl/_url.py", line 969, in _get_str_query
query = "&".join(self._query_seq_pairs(quoter, query.items()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/yarl/_url.py", line 932, in _query_seq_pairs
yield quoter(key) + "=" + quoter(cls._query_var(val))
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/yarl/_url.py", line 947, in _query_var
raise TypeError(
TypeError: Invalid variable type: value should be str, int or float, got <langchain_core.callbacks.manager.AsyncCallbackManager object at 0x7f9b94242a50> of type <class 'langchain_core.callbacks.manager.AsyncCallbackManager'>
The text was updated successfully, but these errors were encountered:
Hello All,
Using the last version of the repo on ubuntu 20.
The You.com tool seems broken with error.
Someone knows why we have this?
Thanks all !
TypeError("Invalid variable type: value should be str, int or float, got <langchain_core.callbacks.manager.AsyncCallbackManager object at 0x7f9b94242a50> of type <class 'langchain_core.callbacks.manager.AsyncCallbackManager'>")Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/langchain_core/tools.py", line 480, in arun
await self._arun(*tool_args, run_manager=run_manager, **tool_kwargs)
File "/usr/local/lib/python3.11/site-packages/langchain_core/tools.py", line 614, in _arun
await self.coroutine(
File "/usr/local/lib/python3.11/site-packages/langchain/tools/retriever.py", line 40, in _aget_relevant_documents
docs = await retriever.aget_relevant_documents(query, callbacks=callbacks)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/langchain_core/retrievers.py", line 384, in aget_relevant_documents
raise e
File "/usr/local/lib/python3.11/site-packages/langchain_core/retrievers.py", line 377, in aget_relevant_documents
result = await self._aget_relevant_documents(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/langchain_community/retrievers/you.py", line 35, in _aget_relevant_documents
results = await self.results_async(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/langchain_community/utilities/you.py", line 229, in results_async
raw_search_results_async = await self.raw_results_async(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/langchain_community/utilities/you.py", line 213, in raw_results_async
async with session.get(
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 1187, in aenter
self._resp = await self._coro
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 541, in _request
req = self._request_class(
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 302, in init
url2 = url.with_query(params)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/yarl/_url.py", line 1008, in with_query
new_query = self._get_str_query(*args, **kwargs) or ""
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/yarl/_url.py", line 969, in _get_str_query
query = "&".join(self._query_seq_pairs(quoter, query.items()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/yarl/_url.py", line 932, in _query_seq_pairs
yield quoter(key) + "=" + quoter(cls._query_var(val))
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/yarl/_url.py", line 947, in _query_var
raise TypeError(
TypeError: Invalid variable type: value should be str, int or float, got <langchain_core.callbacks.manager.AsyncCallbackManager object at 0x7f9b94242a50> of type <class 'langchain_core.callbacks.manager.AsyncCallbackManager'>
The text was updated successfully, but these errors were encountered: