diff --git a/README.md b/README.md index 818b75bbf..0287c6c3b 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,6 @@ In the realm of CrewAI agents, tools are pivotal for enhancing functionality. Th - [Creating Your Tools](#creating-your-tools) - [Subclassing `BaseTool`](#subclassing-basetool) - - [Functional Tool Creation](#functional-tool-creation) - [Utilizing the `tool` Decorator](#utilizing-the-tool-decorator) - [Contribution Guidelines](#contribution-guidelines) - [Development Setup](#development-setup) @@ -40,32 +39,26 @@ There are three ways to create tools for crewAI agents: ### Subclassing `BaseTool` ```python +from crewai_tools import BaseTool + class MyCustomTool(BaseTool): name: str = "Name of my tool" description: str = "Clear description for what this tool is useful for, you agent will need this information to use it." - def _run(self, argument) -> str: + def _run(self, argument: str) -> str: # Implementation goes here pass ``` Define a new class inheriting from `BaseTool`, specifying `name`, `description`, and the `_run` method for operational logic. -### Functional Tool Creation - -```python -my_tool = Tool( - name="Name of my tool" - description="Clear description for what this tool is useful for, you agent will need this information to use it.", - func=lambda argument: # Your function logic here -) -``` - -For a simpler approach, create a `Tool` object directly with the required attributes and a functional logic. ### Utilizing the `tool` Decorator +For a simpler approach, create a `Tool` object directly with the required attributes and a functional logic. + ```python +from crewai_tools import tool @tool("Name of my tool") def my_tool(question: str) -> str: """Clear description for what this tool is useful for, you agent will need this information to use it.""" diff --git a/src/crewai_tools/__init__.py b/src/crewai_tools/__init__.py index e643bb829..6ed1c5d65 100644 --- a/src/crewai_tools/__init__.py +++ b/src/crewai_tools/__init__.py @@ -1,4 +1,4 @@ -from .tools.base_tool import BaseTool, Tool, as_tool, tool +from .tools.base_tool import BaseTool, Tool, tool from .tools import ( CodeDocsSearchTool, CSVSearchTool, diff --git a/src/crewai_tools/tools/base_tool.py b/src/crewai_tools/tools/base_tool.py index e2fb18395..dc679f833 100644 --- a/src/crewai_tools/tools/base_tool.py +++ b/src/crewai_tools/tools/base_tool.py @@ -1,18 +1,24 @@ from abc import ABC, abstractmethod from typing import Any, Callable, cast, Optional, Type -from langchain.agents import tools as langchain_tools -from pydantic import BaseModel +from pydantic import BaseModel, model_validator +from pydantic.v1 import BaseModel as V1BaseModel +from langchain_core.tools import StructuredTool class BaseTool(BaseModel, ABC): name: str """The unique name of the tool that clearly communicates its purpose.""" description: str """Used to tell the model how/when/why to use the tool.""" - args_schema: Optional[Type[BaseModel]] = None + args_schema: Optional[Type[V1BaseModel]] = None """The schema for the arguments that the tool accepts.""" + @model_validator(mode="after") + def _check_args_schema(self): + self._set_args_schema() + return self + def run( self, *args: Any, @@ -29,14 +35,28 @@ class BaseTool(BaseModel, ABC): ) -> Any: """Here goes the actual implementation of the tool.""" - def to_langchain(self) -> langchain_tools.Tool: - return langchain_tools.Tool( + def to_langchain(self) -> StructuredTool: + self._set_args_schema() + return StructuredTool( name=self.name, description=self.description, args_schema=self.args_schema, func=self._run, ) + def _set_args_schema(self): + if self.args_schema is None: + class_name = f"{self.__class__.__name__}Schema" + self.args_schema = type( + class_name, + (V1BaseModel,), + { + "__annotations__": { + k: v for k, v in self._run.__annotations__.items() if k != 'return' + }, + }, + ) + class Tool(BaseTool): func: Callable @@ -47,8 +67,8 @@ class Tool(BaseTool): def to_langchain( - tools: list[BaseTool | langchain_tools.BaseTool], -) -> list[langchain_tools.BaseTool]: + tools: list[BaseTool | StructuredTool], +) -> list[StructuredTool]: return [t.to_langchain() if isinstance(t, BaseTool) else t for t in tools] @@ -62,10 +82,24 @@ def tool(*args): if f.__doc__ is None: raise ValueError("Function must have a docstring") + args_schema = None + if f.__annotations__: + class_name = "".join(tool_name.split()).title() + args_schema = type( + class_name, + (V1BaseModel,), + { + "__annotations__": { + k: v for k, v in f.__annotations__.items() if k != 'return' + }, + }, + ) + return Tool( name=tool_name, description=f.__doc__, func=f, + args_schema=args_schema, ) return _make_tool @@ -74,13 +108,4 @@ def tool(*args): return _make_with_name(args[0].__name__)(args[0]) if len(args) == 1 and isinstance(args[0], str): return _make_with_name(args[0]) - raise ValueError("Invalid arguments") - - -def as_tool(f: Any) -> BaseTool: - """ - Useful for when you create a tool using the @tool decorator and want to use it as a BaseTool. - It is a BaseTool, but type inference doesn't know that. - """ - assert isinstance(f, BaseTool) - return cast(BaseTool, f) + raise ValueError("Invalid arguments") \ No newline at end of file diff --git a/src/crewai_tools/tools/directory_read_tool/directory_read_tool.py b/src/crewai_tools/tools/directory_read_tool/directory_read_tool.py index 7dc6c1a5d..94fcce076 100644 --- a/src/crewai_tools/tools/directory_read_tool/directory_read_tool.py +++ b/src/crewai_tools/tools/directory_read_tool/directory_read_tool.py @@ -29,5 +29,9 @@ class DirectoryReadTool(BaseTool): **kwargs: Any, ) -> Any: directory = kwargs.get('directory', self.directory) - return [(os.path.join(root, file).replace(directory, "").lstrip(os.path.sep)) for root, dirs, files in os.walk(directory) for file in files] + if directory[-1] == "/": + directory = directory[:-1] + files_list = [f"{directory}/{(os.path.join(root, filename).replace(directory, '').lstrip(os.path.sep))}" for root, dirs, files in os.walk(directory) for filename in files] + files = "\n- ".join(files_list) + return f"File paths: \n-{files}" diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/adapters/embedchain_adapter_test.py b/tests/adapters/embedchain_adapter_test.py deleted file mode 100644 index 06a3ac9c8..000000000 --- a/tests/adapters/embedchain_adapter_test.py +++ /dev/null @@ -1,67 +0,0 @@ -from typing import Callable - -from chromadb import Documents, EmbeddingFunction, Embeddings -from embedchain import App -from embedchain.config import AppConfig, ChromaDbConfig -from embedchain.embedder.base import BaseEmbedder -from embedchain.vectordb.chroma import ChromaDB - -from crewai_tools.adapters.embedchain_adapter import EmbedchainAdapter - - -class MockEmbeddingFunction(EmbeddingFunction): - fn: Callable - - def __init__(self, embedding_fn: Callable): - self.fn = embedding_fn - - def __call__(self, input: Documents) -> Embeddings: - return self.fn(input) - - -def test_embedchain_adapter(helpers): - embedding_function = MockEmbeddingFunction( - embedding_fn=helpers.get_embedding_function() - ) - embedder = BaseEmbedder() - embedder.set_embedding_fn(embedding_function) # type: ignore - - db = ChromaDB( - config=ChromaDbConfig( - dir="tests/data/chromadb", - collection_name="requirements", - ) - ) - - app = App( - config=AppConfig( - id="test", - ), - db=db, - embedding_model=embedder, - ) - - adapter = EmbedchainAdapter( - dry_run=True, - embedchain_app=app, - ) - - assert ( - adapter.query("What are the requirements for the task?") - == """ - Use the following pieces of context to answer the query at the end. - If you don't know the answer, just say that you don't know, don't try to make up an answer. - - Technical requirements - -The system should be able to process 1000 transactions per second. The code must be written in Ruby. | Problem - -Currently, we are not able to find out palindromes in a given string. We need a solution to this problem. | Solution - -We need a function that takes a string as input and returns true if the string is a palindrome, otherwise false. - - Query: What are the requirements for the task? - - Helpful Answer: -""" - ) diff --git a/tests/adapters/lancedb_adapter_test.py b/tests/adapters/lancedb_adapter_test.py deleted file mode 100644 index bc4d6ba4f..000000000 --- a/tests/adapters/lancedb_adapter_test.py +++ /dev/null @@ -1,22 +0,0 @@ -from crewai_tools.adapters.lancedb_adapter import LanceDBAdapter - - -def test_lancedb_adapter(helpers): - adapter = LanceDBAdapter( - uri="tests/data/lancedb", - table_name="requirements", - embedding_function=helpers.get_embedding_function(), - top_k=2, - vector_column_name="vector", - text_column_name="text", - ) - - assert ( - adapter.query("What are the requirements for the task?") - == """Technical requirements - -The system should be able to process 1000 transactions per second. The code must be written in Ruby. -Problem - -Currently, we are not able to find out palindromes in a given string. We need a solution to this problem.""" - ) diff --git a/tests/base_tool_test.py b/tests/base_tool_test.py new file mode 100644 index 000000000..e7ecbf8d9 --- /dev/null +++ b/tests/base_tool_test.py @@ -0,0 +1,46 @@ +import json +import pydantic_core +import pytest +from crewai_tools import BaseTool, tool + +def test_creating_a_tool_using_annotation(): + @tool("Name of my tool") + def my_tool(question: str) -> str: + """Clear description for what this tool is useful for, you agent will need this information to use it.""" + return question + + # Assert all the right attributes were defined + assert my_tool.name == "Name of my tool" + assert my_tool.description == "Clear description for what this tool is useful for, you agent will need this information to use it." + assert my_tool.args_schema.schema()["properties"] == {'question': {'title': 'Question', 'type': 'string'}} + assert my_tool.func("What is the meaning of life?") == "What is the meaning of life?" + + # Assert the langchain tool conversion worked as expected + converted_tool = my_tool.to_langchain() + assert converted_tool.name == "Name of my tool" + assert converted_tool.description == "Clear description for what this tool is useful for, you agent will need this information to use it." + assert converted_tool.args_schema.schema()["properties"] == {'question': {'title': 'Question', 'type': 'string'}} + assert converted_tool.func("What is the meaning of life?") == "What is the meaning of life?" + +def test_creating_a_tool_using_baseclass(): + class MyCustomTool(BaseTool): + name: str = "Name of my tool" + description: str = "Clear description for what this tool is useful for, you agent will need this information to use it." + + def _run(self, question: str) -> str: + return question + + my_tool = MyCustomTool() + # Assert all the right attributes were defined + assert my_tool.name == "Name of my tool" + assert my_tool.description == "Clear description for what this tool is useful for, you agent will need this information to use it." + assert my_tool.args_schema.schema()["properties"] == {'question': {'title': 'Question', 'type': 'string'}} + assert my_tool.run("What is the meaning of life?") == "What is the meaning of life?" + + # Assert the langchain tool conversion worked as expected + converted_tool = my_tool.to_langchain() + assert converted_tool.name == "Name of my tool" + assert converted_tool.description == "Clear description for what this tool is useful for, you agent will need this information to use it." + assert converted_tool.args_schema.schema()["properties"] == {'question': {'title': 'Question', 'type': 'string'}} + assert converted_tool.run("What is the meaning of life?") == "What is the meaning of life?" + diff --git a/tests/data/chromadb/chroma.sqlite3 b/tests/data/chromadb/chroma.sqlite3 deleted file mode 100644 index 9c9cf0e56..000000000 Binary files a/tests/data/chromadb/chroma.sqlite3 and /dev/null differ diff --git a/tests/data/chromadb/ff9cc21e-277f-4dc2-b92c-5d55f29311f2/data_level0.bin b/tests/data/chromadb/ff9cc21e-277f-4dc2-b92c-5d55f29311f2/data_level0.bin deleted file mode 100644 index ea3192e8e..000000000 Binary files a/tests/data/chromadb/ff9cc21e-277f-4dc2-b92c-5d55f29311f2/data_level0.bin and /dev/null differ diff --git a/tests/data/chromadb/ff9cc21e-277f-4dc2-b92c-5d55f29311f2/header.bin b/tests/data/chromadb/ff9cc21e-277f-4dc2-b92c-5d55f29311f2/header.bin deleted file mode 100644 index 3e0932a7d..000000000 Binary files a/tests/data/chromadb/ff9cc21e-277f-4dc2-b92c-5d55f29311f2/header.bin and /dev/null differ diff --git a/tests/data/chromadb/ff9cc21e-277f-4dc2-b92c-5d55f29311f2/length.bin b/tests/data/chromadb/ff9cc21e-277f-4dc2-b92c-5d55f29311f2/length.bin deleted file mode 100644 index 1dc89f8e4..000000000 Binary files a/tests/data/chromadb/ff9cc21e-277f-4dc2-b92c-5d55f29311f2/length.bin and /dev/null differ diff --git a/tests/data/chromadb/ff9cc21e-277f-4dc2-b92c-5d55f29311f2/link_lists.bin b/tests/data/chromadb/ff9cc21e-277f-4dc2-b92c-5d55f29311f2/link_lists.bin deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/data/embedding.txt b/tests/data/embedding.txt deleted file mode 100644 index c3cc374c2..000000000 --- a/tests/data/embedding.txt +++ /dev/null @@ -1 +0,0 @@ -0.025692760944366455, -0.004980836994946003, 0.008317121304571629, -0.013715836219489574, -0.02352249063551426, 0.024290846660733223, -0.02944018319249153, -0.00994145404547453, -0.009779694490134716, -0.027930431067943573, 0.015367128886282444, -0.008276681415736675, -0.014302213676273823, -0.009388776496052742, 0.00832386128604412, 0.005149336066097021, 0.027593431994318962, -0.010999629274010658, -0.0037170927971601486, -0.009934714064002037, -0.011660145595669746, -0.0008045837748795748, -0.003956361673772335, 0.006497330032289028, -0.011350107379257679, 0.00026391190476715565, 0.02470872551202774, -0.018925832584500313, 0.027418192476034164, -0.01903367228806019, 0.01558280736207962, -0.024061689153313637, -0.02167573943734169, -0.016270285472273827, -0.01949198916554451, 0.0019411110552027822, 0.0031981151551008224, -0.020031187683343887, 0.02670375630259514, 0.006214251276105642, 0.010089733637869358, 0.028092190623283386, 0.01414045412093401, 0.0019175211200490594, -0.01567716710269451, -0.0036530629731714725, -0.021567899733781815, -0.019896388053894043, -0.022781094536185265, -0.004411309491842985, 0.017240840941667557, 0.0107906898483634, -0.03022201918065548, -0.02000422775745392, -0.01438309345394373, 0.004252920392900705, 0.0053582750260829926, 0.0011028273729607463, -0.002139940159395337, -0.007750964257866144, -0.002953791292384267, 0.009193317033350468, -0.0018888761987909675, -0.013452977873384953, -0.0053515350446105, 7.161216672102455e-06, -0.027714751660823822, 0.017106041312217712, -0.0243986863642931, -0.013816935941576958, 0.011727545410394669, 0.008579980581998825, 0.017362158745527267, 0.026488076895475388, 0.03019505925476551, -0.024317806586623192, 0.019235869869589806, -0.011181607842445374, -0.007831843569874763, 0.0052234758622944355, 0.010689590126276016, -0.004522519186139107, -0.02803827077150345, 0.03092297725379467, 0.004411309491842985, -0.0002287376846652478, 0.020597344264388084, 0.015218849293887615, -0.0026269028894603252, -0.011997144669294357, -0.000433464243542403, 0.01713300123810768, 0.025962360203266144, 0.0021685848478227854, 0.014019135385751724, 0.01903367228806019, -0.003508153837174177, 0.007326345890760422, -0.015286249108612537, -0.021244380623102188, -0.02191837877035141, 0.006305240560323, -0.038336943835020065, -0.007050007116049528, -0.0011550621129572392, -0.01621636562049389, 0.00021378337987698615, -0.0058064828626811504, 0.011936484836041927, 0.0009318006923422217, -0.02216101810336113, 0.00864063948392868, -0.002648807829245925, -0.01830575428903103, -0.0008745109662413597, 0.0035452235024422407, 0.0331067256629467, -0.009227016940712929, 0.0033312295563519, -0.01769915781915188, 0.033942483365535736, 0.0009014708339236677, 0.02021990530192852, -0.006891618017107248, 0.029035786166787148, -0.016782522201538086, 0.01173428539186716, -0.010817649774253368, -0.010837869718670845, -0.020597344264388084, 0.012765500694513321, 0.018831472843885422, 0.007211766671389341, 0.025301842018961906, -0.012408282607793808, 0.008842838928103447, -0.017173441126942635, 0.016782522201538086, -0.01964026875793934, -0.0016723547596484423, -0.006847808137536049, 0.02189141884446144, 0.00038122947444207966, -0.001764186774380505, 0.0025746680330485106, 0.0011213623220100999, 0.01900671236217022, 0.004953877069056034, -0.002926831366494298, -0.021244380623102188, -0.000591011019423604, -0.0057357135228812695, 0.015407568775117397, -0.006274911109358072, 0.002881336724385619, 0.007225246634334326, -0.025113124400377274, 0.013365358114242554, -0.0008104812586680055, -0.015097529627382755, 0.010844609700143337, 0.006082821637392044, 0.005641353782266378, -0.007258946541696787, 0.016148965805768967, 0.03019505925476551, 0.021567899733781815, -0.0033952591475099325, -0.006325460504740477, 0.00723872659727931, 0.015528888441622257, -0.0021972297690808773, -0.02944018319249153, 0.00900459848344326, 0.021837498992681503, 0.01800919696688652, 0.011788205243647099, -0.012246523052453995, -0.013668656349182129, -0.002812251914292574, -0.008344081230461597, 0.020233385264873505, 0.004542739130556583, 0.00920005701482296, -0.02398080937564373, -0.0023421391379088163, -0.005742453504353762, -0.009098958224058151, 0.00953705608844757, -0.008317121304571629, 0.025059204548597336, -0.010238012298941612, 0.008916978724300861, -0.009948194026947021, -0.6888787150382996, -0.009193317033350468, 0.03343024477362633, -0.02873922698199749, -0.00014174997340887785, 0.023697730153799057, -0.0012350992765277624, 0.008654119446873665, -0.00398669159039855, 0.0304646585136652, 0.005186405964195728, -0.0051931459456682205, 0.02055690437555313, -0.021015223115682602, -0.014827931299805641, -0.02871226705610752, 0.00853280071169138, -4.6784862206550315e-05, -0.0058098528534173965, 0.02152745984494686, -0.03210921213030815, 0.010029073804616928, 0.0010969298891723156, -0.0033093246165663004, 0.006588319316506386, 0.0008395473705604672, 0.01066937018185854, -0.0343199223279953, 0.007326345890760422, 0.0034542339853942394, -0.007420705631375313, 0.03016809932887554, 0.011377067305147648, 0.004475339315831661, 0.029871542006731033, -0.02570624090731144, -0.04669450223445892, 0.014720091596245766, -0.023684250190854073, 0.022363215684890747, -0.018723633140325546, -0.017106041312217712, 0.015461488626897335, -0.007818363606929779, -0.003892331849783659, 0.011929744854569435, 0.022093618288636208, 0.0016386548522859812, 0.014693131670355797, 0.012880080379545689, -0.015879366546869278, 0.009267456829547882, -0.001182022038847208, 0.019653748720884323, -0.0015181779162958264, -0.030060261487960815, 0.024169526994228363, 0.010136912576854229, -0.009078738279640675, -0.008398001082241535, 0.005782893393188715, 0.010298672132194042, -0.02371121011674404, -0.029305383563041687, -0.020934343338012695, 0.007595944683998823, -0.014086534269154072, 0.014625731855630875, -0.0051324861124157906, -0.030491618439555168, 0.0009301156969740987, -0.009449436329305172, 0.006423190236091614, 0.014895331114530563, 0.015030130743980408, 0.006517549976706505, 0.004394459538161755, -0.017348678782582283, 0.012597001157701015, 7.60879265726544e-05, 0.007467885501682758, -0.004407939501106739, -0.009024818427860737, 0.0016453948337584734, 0.01888539269566536, -0.003915921784937382, -0.01426177378743887, -0.029062746092677116, 0.014720091596245766, 0.003663172945380211, 0.027175553143024445, 0.032756246626377106, -0.003065000753849745, -0.025908440351486206, -0.020139027386903763, 0.014531373046338558, -0.013270998373627663, -0.023657290264964104, 0.015245809219777584, -0.0029655862599611282, 0.007191546726971865, -0.007279166020452976, 0.003912551794201136, -0.013452977873384953, 0.03216313198208809, -0.007764444220811129, -0.007528544869273901, 0.02085346356034279, 0.0363149531185627, -0.01213868334889412, 0.0026926174759864807, 0.005985092371702194, -0.03135433420538902, -0.00711740693077445, -0.015865886583924294, -0.031300414353609085, 0.01961330883204937, -0.007663344498723745, 0.026717236265540123, -0.0097931744530797, 0.018211396411061287, 0.007346565835177898, 0.024964844807982445, -0.039604056626558304, -0.004445009399205446, 0.03609927371144295, 0.007528544869273901, -0.021028703078627586, 0.00466068834066391, 0.007535284850746393, -0.01730823889374733, 0.0031408255454152822, -0.011309667490422726, -0.01786091737449169, 0.029790662229061127, 0.011046809144318104, -0.007831843569874763, -0.008519320748746395, 0.019545909017324448, -0.02601628005504608, -0.01861579343676567, -0.007919463329017162, -0.0024853635113686323, -0.028874026611447334, -0.019599828869104385, -0.009456176310777664, -0.005092046223580837, 0.0046775382943451405, 0.0014196059200912714, -0.0018686563707888126, -0.013816935941576958, -0.026380237191915512, -0.019047152251005173, 0.004286620300263166, 0.013938255608081818, -0.01400565542280674, -0.008337341248989105, -0.020745623856782913, 0.011464687064290047, -0.02218797616660595, -0.006675939075648785, -0.007097186986356974, -0.018090076744556427, 0.00785206351429224, -0.009719034656882286, -0.009456176310777664, 0.007103926967829466, 0.03437384217977524, -0.013001400046050549, -0.05828724801540375, -0.0003245716216042638, -0.007231986615806818, -0.001015207846648991, 0.026501556858420372, -0.025220962241292, -0.003218335099518299, -0.006962387822568417, -0.0019798658322542906, -0.006301870569586754, -0.012981180101633072, 0.0017439669463783503, -0.00012131944095017388, -0.004650578368455172, -0.005513294599950314, 0.013500157743692398, 0.009887534193694592, 0.02194533869624138, 0.017833957448601723, -0.004785377997905016, 0.03283712640404701, 0.0023202341981232166, 0.011289447546005249, 0.012165643274784088, 0.009739254601299763, 0.01144446711987257, 0.0006099671591073275, 0.016148965805768967, 0.0029419963248074055, -0.0012822790304198861, 0.009166357107460499, 0.037150707095861435, -0.0011314722942188382, 0.02286197431385517, -0.005489704664796591, 0.002625217894092202, 0.0035452235024422407, 0.022848494350910187, -0.013439497910439968, 0.012078024446964264, 0.017510438337922096, 0.015137969516217709, -0.0500914491713047, -0.014962730929255486, -0.005462744738906622, 0.0028274168726056814, -0.0012308867881074548, -0.00835082121193409, 0.02228233590722084, -0.04771897941827774, 0.016135485842823982, 0.012691360898315907, 0.011808425188064575, 0.04362107813358307, -0.01579848676919937, -0.01606808602809906, -0.0028931316919624805, 0.019208911806344986, 0.02895490638911724, 0.009038298390805721, -0.0066119092516601086, -0.001964700873941183, -0.013156418688595295, 0.014639211818575859, -0.004013651516288519, 0.01173428539186716, 0.004552849102765322, 0.009651634842157364, -0.013992175459861755, 0.009408996440470219, -0.002134885173290968, 0.010736769996583462, 0.019060632213950157, 0.01320359855890274, -0.004825817421078682, 0.042273085564374924, -0.015515408478677273, 0.028577467426657677, 0.021810539066791534, -0.007191546726971865, 0.014625731855630875, -0.0012342567788437009, -0.019626788794994354, -0.03162393346428871, 0.0032048551365733147, -0.011484907008707523, 0.006679309066385031, 0.0016133800381794572, -0.00010225795995211229, -0.0037137228064239025, 0.029817622154951096, 0.0326753668487072, 0.0159467663615942, 0.036153193563222885, 0.002785291988402605, 0.014194373972713947, -0.006467000115662813, -0.014720091596245766, -0.012677880935370922, 0.01725432090461254, -0.020260345190763474, 0.005159446038305759, -0.0029723262414336205, 0.010568271391093731, -0.008047522976994514, 0.017591318115592003, 0.013520377688109875, 0.0033699844498187304, 0.0152323292568326, 0.0014676281716674566, 0.018049636855721474, -0.03537135571241379, -0.01247568242251873, 0.018292274326086044, 0.01910107210278511, -0.0033059546258300543, -0.003932771738618612, 0.0033817794173955917, 0.015218849293887615, -0.011862345039844513, 0.03534439578652382, 0.021837498992681503, -0.021540939807891846, 0.01279246062040329, 0.004461859352886677, 0.00847214087843895, 0.0030110811349004507, 0.018925832584500313, 0.024034729227423668, 0.009186577051877975, -0.025409681722521782, 0.00523695582523942, -0.014019135385751724, -0.022174498066306114, -0.030599458143115044, 0.024883965030312538, 0.0006335570360533893, -0.002844266826286912, -0.019559388980269432, -0.00037048765807412565, -0.010116692632436752, -0.00829016137868166, -0.0005076039233244956, 0.004054091405123472, -0.015097529627382755, 0.022336255759000778, 0.0034643439576029778, -0.017321718856692314, 0.0018366414587944746, 0.0284696277230978, -0.0020910752937197685, 0.005189775954931974, -0.017496958374977112, -0.003216650104150176, 0.001592317596077919, 0.048312097787857056, 0.029817622154951096, 0.009240496903657913, 0.020085107535123825, -0.019667228683829308, -0.012468942441046238, -0.025625361129641533, -0.014625731855630875, 0.00926071684807539, 0.005250435788184404, 0.008687819354236126, -0.0042562903836369514, 0.008081222884356976, 0.0023775240406394005, 0.008802399039268494, 0.013021619990468025, 0.009119178168475628, -0.011923004873096943, 0.001608325052075088, -0.006305240560323, -0.016270285472273827, 0.006227731239050627, 0.026272397488355637, 0.011134427972137928, 0.007467885501682758, 0.002615107921883464, 0.00426640035584569, 0.02718903310596943, 0.004232700448483229, -0.002045580418780446, -0.008869798853993416, 0.007427445612847805, 0.015596287325024605, -0.013244038447737694, 0.0023539341054856777, 0.04014325514435768, 0.00963815487921238, 0.02774171158671379, 0.010709810070693493, 0.006059231702238321, 0.01854839362204075, -0.0105952313169837, 0.005604283884167671, 0.0010598601074889302, 0.02652851678431034, -0.010743509978055954, -0.013190118595957756, 0.031300414353609085, -0.008081222884356976, 0.002584778005257249, 0.03464343771338463, 0.012441982515156269, -0.010372811928391457, -0.00261847791261971, 0.0017962016863748431, 0.006814108230173588, -0.007750964257866144, -0.013115978799760342, 0.008896758779883385, -0.03701590746641159, -0.023576410487294197, -0.0037204627878963947, 0.0211904626339674, 0.009658374823629856, -0.004876367282122374, 0.006231101229786873, -0.03356504440307617, -0.017901357263326645, -0.020502984523773193, 0.0068376981653273106, -0.005671683698892593, -0.023118093609809875, -0.03254057094454765, 0.0026841924991458654, 0.0304646585136652, 0.008209281601011753, 0.029521062970161438, -0.007798143662512302, 0.013796715997159481, 0.006258061155676842, 0.0026606025639921427, -0.025719720870256424, 0.003177895210683346, 0.002901556435972452, 0.01035259198397398, -7.677245594095439e-05, -0.031111694872379303, 0.010965929366648197, 0.0031256605871021748, 0.011848865076899529, -0.0029200913850218058, 0.021810539066791534, -0.008748479187488556, -0.04305491968989372, 0.016984721645712852, -0.007211766671389341, -0.00218206481076777, 0.02925146371126175, 0.0038013423327356577, -0.020637784153223038, -0.011363587342202663, -0.03806734457612038, -0.0043304297141730785, -0.01813051663339138, -0.003044780809432268, 0.0020927602890878916, 0.006726488936692476, 0.0010059403721243143, -0.022080138325691223, -0.02427736669778824, 0.0142348138615489, -0.02470872551202774, -0.0005771098076365888, -0.008000343106687069, 0.03391552343964577, 0.018480993807315826, 0.016108525916934013, 0.019047152251005173, 0.026784636080265045, 0.007501585409045219, 0.010521091520786285, -0.02944018319249153, 0.028307868167757988, 0.020691704005002975, -0.011714065447449684, -0.002397743985056877, 0.0027195774018764496, -0.034427762031555176, 0.0016529773129150271, -0.009948194026947021, 0.005732343532145023, 0.01903367228806019, 0.0077307443134486675, -0.021352220326662064, 0.0013311437796801329, -0.015636727213859558, -0.004269770346581936, 0.013722576200962067, -0.003845152212306857, -0.0028223618865013123, -0.0034542339853942394, -0.0019849208183586597, -0.016620762646198273, -0.013297958299517632, 0.008512580767273903, -0.03065337799489498, -0.0015341853722929955, 0.022969814017415047, -0.00829016137868166, 0.01579848676919937, -0.012826160527765751, 0.007407225668430328, -0.01447745319455862, -0.022565415129065514, -0.021365700289607048, -0.01755087822675705, -0.004916807170957327, -0.011646665632724762, 0.01985594816505909, 0.024358246475458145, 0.0391726978123188, -0.008815879002213478, 0.021540939807891846, -0.012428502552211285, 0.012441982515156269, 0.006568099372088909, 0.01679600216448307, -0.004859517328441143, -0.012711580842733383, -0.00723872659727931, 0.03434688225388527, 0.008189061656594276, 0.010305412113666534, -0.0024364986456930637, -0.0010716550750657916, 0.014922291040420532, -0.017928317189216614, -0.019316749647259712, -0.021473539993166924, -0.0284696277230978, 0.021972298622131348, 0.00028497431776486337, 0.004057461395859718, 0.0056750536896288395, -0.032028332352638245, -0.019289789721369743, 0.01897975243628025, 0.0105952313169837, 0.0007190704345703125, -0.007629644591361284, 0.021756619215011597, -0.015960246324539185, 0.009530316106975079, -0.012428502552211285, 0.017537398263812065, 1.3707016250918969e-06, -0.021500499919056892, -0.0242234468460083, 0.008991118520498276, 0.00243986863642931, 0.024627845734357834, -0.013830415904521942, 0.010905269533395767, 0.0035351135302335024, -0.005230215843766928, 0.012812680564820766, -0.0010859774192795157, 0.008344081230461597, -0.006167071405798197, -0.0030211908742785454, -0.0031745252199470997, -0.017968757078051567, -0.0023556191008538008, 0.014558332040905952, 0.0033076396211981773, 0.002446608617901802, -0.017941797152161598, 0.022835014387965202, -5.823754327138886e-05, -0.012597001157701015, 0.01010995265096426, 0.0007725689210928977, 0.03259448707103729, 0.02567928098142147, 0.030275939032435417, 0.00991449411958456, 0.005112266167998314, -0.01182190515100956, -0.010743509978055954, 0.003723832778632641, -0.0029723262414336205, 0.023212451487779617, 0.051008082926273346, -0.002589832991361618, 0.006345680449157953, 0.014639211818575859, 0.012745280750095844, -0.01891235262155533, -0.014490933157503605, 0.025086164474487305, 0.0017254319973289967, -0.010244752280414104, 0.00809470284730196, 0.005482964683324099, -0.01937066949903965, 0.015070569701492786, -0.007454405538737774, -0.004050721414387226, 0.016135485842823982, -0.02376512996852398, -0.00884957890957594, 0.015124489553272724, -0.02449304610490799, 0.0057660434395074844, 0.014046095311641693, 0.0004201949341222644, 0.013655176386237144, -0.016512922942638397, -0.004532629158347845, -0.002337084151804447, 0.008768699131906033, 0.01073003001511097, 0.017321718856692314, 0.0026504925917834044, -0.009550536051392555, 0.006682679057121277, -0.026744196191430092, -0.010548051446676254, 0.002079280326142907, 0.027269912883639336, -0.014881851151585579, -0.026973355561494827, 0.000777202658355236, 0.014693131670355797, 0.005890732631087303, 0.013365358114242554, -0.003211595118045807, -0.003181265201419592, 0.0025258034002035856, -0.002244409639388323, 0.01047391165047884, -0.01570412702858448, -0.03043769858777523, -0.008802399039268494, -0.002785291988402605, -0.008613680489361286, 0.006595059297978878, -0.009024818427860737, 0.008674339391291142, -0.02286197431385517, -0.010150392539799213, 0.0049673570320010185, 0.011437727138400078, -0.005499814637005329, 0.0018012566724792123, 0.029116664081811905, 0.026097159832715988, 0.023697730153799057, -0.017092561349272728, 0.001610010047443211, 0.003814822295680642, 0.028658347204327583, -0.01000211387872696, 0.01338557805866003, -0.012212823145091534, -0.03779774531722069, 0.029170583933591843, -0.0010767100611701608, -0.02691943570971489, -0.028604427352547646, 0.011073769070208073, -0.007144366856664419, -0.028685307130217552, -0.011714065447449684, -0.009193317033350468, -0.0034811939112842083, 0.011983664706349373, 0.017469998449087143, 0.01924934983253479, 0.013345138169825077, -0.016998201608657837, 0.018440553918480873, 0.027849551290273666, -0.008768699131906033, -0.003555333474650979, -0.01017061248421669, 0.005075196269899607, -0.011997144669294357, -0.032756246626377106, -0.010446951724588871, -0.014571812003850937, 0.002780237002298236, -0.009968413971364498, -0.0034508639946579933, -0.009847094304859638, 0.0073196059092879295, 0.0034643439576029778, 0.02701379545032978, -0.00269767246209085, -0.027418192476034164, -0.015259289182722569, 0.017631758004426956, 0.005270655732601881, 0.004583178553730249, -0.01934370957314968, -0.006271541118621826, -0.013695616275072098, -0.018480993807315826, -0.036180153489112854, -0.013237298466265202, -0.005695273634046316, 0.04526562988758087, -0.0021214052103459835, -0.005102156195789576, 0.002330344170331955, -0.017416078597307205, -0.022754134610295296, -0.0177665576338768, -0.006072711665183306, -0.0038620021659880877, 0.006615279242396355, -0.006089561618864536, -0.007137626875191927, 0.02106914296746254, -0.005105526186525822, 0.013715836219489574, -0.022632814943790436, 0.016876881942152977, -0.026272397488355637, -0.013803455978631973, -0.0038620021659880877, -0.0019849208183586597, -0.042812280356884, 0.004974097013473511, 0.029170583933591843, -0.01757783815264702, 0.0009747679578140378, 0.029817622154951096, -0.005432414822280407, -0.009152877144515514, -0.005075196269899607, -0.0036362132523208857, 0.02376512996852398, 0.01798223704099655, -0.01852143369615078, -0.003615993307903409, 0.0013033414725214243, 0.0009368556784465909, -0.01664772257208824, 0.016728602349758148, -0.0211904626339674, 0.0052538057789206505, -0.009604455903172493, 0.006018792279064655, -0.020570384338498116, -0.020772583782672882, 0.0015813651261851192, -0.02225537598133087, 0.012994660064578056, -0.00494039710611105, 0.00832386128604412, 0.013028359971940517, -0.004232700448483229, -0.02616455778479576, -0.015137969516217709, 0.014437013305723667, -0.03380768373608589, -0.009435956366360188, 0.008842838928103447, -0.03019505925476551, -0.01211172342300415, -0.0019006711663678288, -0.017443038523197174, 0.005166186019778252, -0.004468599334359169, 0.0030953306704759598, -0.00967185478657484, -0.006271541118621826, 0.00876195915043354, 0.007872283458709717, 0.008606940507888794, -0.0038552621845155954, -0.014302213676273823, -0.0187640730291605, 0.01411349419504404, -0.006200771313160658, -0.012226303108036518, -0.0076363845728337765, 0.006170441396534443, 0.002357304096221924, -0.04070940986275673, 0.0008176424307748675, 0.00711740693077445, 0.022700214758515358, -0.027687791734933853, 0.02825394831597805, 0.22085529565811157, -0.011073769070208073, -0.0009056833223439753, 0.04289316013455391, 0.000397658150177449, 0.004276510328054428, 0.031084734946489334, -0.002760017290711403, -0.001194659504108131, 0.008499100804328918, 0.005230215843766928, -0.0023202341981232166, -0.0011045123683288693, 0.004478709306567907, 0.0032874196767807007, -0.02061082422733307, -0.023050693795084953, -0.013607996515929699, -0.00835082121193409, 0.009105698205530643, 0.008620420470833778, 0.0035452235024422407, -0.002480308525264263, -0.0066624591127038, 0.0560765415430069, 0.018831472843885422, 0.009294416755437851, 0.0051931459456682205, 0.008337341248989105, -0.025531001389026642, -0.005452634766697884, -0.01535364892333746, 0.006581579335033894, 0.016688162460923195, 0.001151692122220993, 0.007703784387558699, -0.0026066829450428486, -0.008836098946630955, 0.0067332289181649685, 0.012388062663376331, 0.010238012298941612, 0.015124489553272724, -0.0008572397637180984, -0.014153934083878994, 0.012765500694513321, 0.02303721383213997, -0.010756989941000938, -0.016418563202023506, -0.031030816957354546, 0.00626817112788558, -0.025423161685466766, -0.013041839934885502, 0.026663316413760185, 0.00938203651458025, 0.0005804797983728349, 0.005331315100193024, 0.008148621767759323, -0.01120182778686285, 0.015016650781035423, -0.004653948359191418, -0.02104218304157257, 0.014059574343264103, -0.019357189536094666, 0.033511124551296234, 0.005071826279163361, -0.0061872913502156734, -0.04310883954167366, 0.005782893393188715, 0.027849551290273666, -0.0006129159010015428, -0.018507953733205795, -0.023509010672569275, -0.0007687776815146208, 0.021446580067276955, -0.016054606065154076, -0.0035991433542221785, 0.017496958374977112, 0.0243986863642931, 0.04092508926987648, 0.026474596932530403, -0.028577467426657677, -0.01728127896785736, 0.016135485842823982, -0.012374582700431347, 0.0006074396660551429, -0.012940740212798119, -0.006473740097135305, -0.0007304440950974822, -0.016593802720308304, -0.005145966075360775, -0.005921062547713518, -0.010251492261886597, -0.02677115611732006, -0.018440553918480873, 0.0029032414313405752, 0.011720805428922176, 0.012441982515156269, 0.028442667797207832, -0.0008947308524511755, -0.01740259863436222, -0.02549056150019169, 0.06793888658285141, 0.0022258746903389692, 0.009921234101057053, -0.03488607704639435, -0.004849407356232405, -0.004131600726395845, -0.0036598029546439648, 0.0383908636868, -0.012637441046535969, -0.002766757272183895, -0.03820214420557022, 0.0025224334094673395, -0.0063524204306304455, -0.004566328600049019, 0.02024686522781849, -0.021999258548021317, 0.0057357135228812695, -0.012051064521074295, 0.005304355174303055, -0.001956275897100568, -0.029898501932621002, -0.030734257772564888, -0.004387719556689262, 0.009483136236667633, -0.04847385361790657, -0.001224989304319024, -0.0034811939112842083, 0.0067635588347911835, -0.03507479652762413, 0.0044820792973041534, -0.007649864535778761, 0.0034205340780317783, 0.008654119446873665, -0.014989690855145454, -0.024169526994228363, -0.00214162515476346, -0.011242267675697803, -0.00017313295393250883, -0.03671934828162193, 0.013149678707122803, -0.021783579140901566, 0.0024213336873799562, 0.0195863489061594, 0.024654805660247803, -0.017780037596821785, 0.004839297384023666, -0.01643204316496849, -0.035452235490083694, -0.028334828093647957, 0.0005948022590018809, -0.029844582080841064, -0.0006647293921560049, -0.013075538910925388, 0.02388644963502884, 0.004579808562994003, -0.002925146371126175, -0.02228233590722084, 0.004172040615230799, -0.013816935941576958, -0.021298300474882126, -0.004498929250985384, 0.00028286807355470955, -0.00956401601433754, -0.012010624632239342, -0.00591095257550478, -0.1752391904592514, 0.030761217698454857, 0.019667228683829308, -0.01937066949903965, 0.018454033881425858, 0.009280936792492867, 0.00202367571182549, 0.008842838928103447, -0.04170692712068558, 0.002621847903355956, 0.03971189633011818, -0.030087219551205635, -0.03531743586063385, 0.004091160837560892, -0.02036818489432335, 5.897472510696389e-05, 0.015744566917419434, 0.007932943291962147, 0.007602684665471315, 0.034697357565164566, 0.01294748019427061, -0.010433471761643887, -0.017955277115106583, -0.0035351135302335024, -0.006625389214605093, -0.0351017564535141, -0.03922661766409874, 7.645651930943131e-05, 0.0014448808506131172, -0.0038552621845155954, -0.007501585409045219, 0.008499100804328918, 0.02048950456082821, 0.01951894909143448, -0.01414045412093401, -0.012994660064578056, 0.0004629516042768955, -0.01560976728796959, -0.006113151554018259, 0.03216313198208809, -0.0031998001504689455, 0.03378072381019592, 0.018184436485171318, 0.007420705631375313, -0.0026403828524053097, 0.013136198744177818, 0.003250350011512637, -0.0007557189674116671, 0.007306125946342945, -0.024937884882092476, 0.016539882868528366, -0.022727174684405327, -0.01450441312044859, -0.013749536126852036, 0.011120948009192944, 0.008216021582484245, 0.00327056972309947, 0.009516836144030094, -0.017901357263326645, 0.010500871576368809, -0.0048729972913861275, -0.02364381030201912, 0.016499442979693413, -0.010548051446676254, -0.012893560342490673, -0.00773748429492116, -0.0023404541425406933, 0.023145053535699844, -0.008896758779883385, 0.004758418072015047, 0.0036598029546439648, -0.03065337799489498, 0.005365015007555485, -0.002921776380389929, 0.025126604363322258, -0.007899243384599686, -0.01997726783156395, 0.034239042550325394, -0.004953877069056034, -0.011255747638642788, 0.004387719556689262, 0.03305280581116676, -0.0018939311848953366, 0.008916978724300861, 0.013075538910925388, -0.007427445612847805, -0.011228787712752819, 0.015380608849227428, -0.014423533342778683, -0.015758046880364418, 0.01100636925548315, -0.0031627302523702383, -0.021379180252552032, -0.0011896045180037618, 0.009725774638354778, 0.011478167027235031, 0.0211904626339674, -0.01573108695447445, 0.016903841868042946, -0.014302213676273823, 0.015407568775117397, 0.01461225189268589, -0.023684250190854073, 0.006709638983011246, 0.02325289137661457, 0.02318549156188965, 0.005654833745211363, 0.02925146371126175, 0.017510438337922096, 0.0038552621845155954, -0.014949250966310501, 0.008182321675121784, 0.019384149461984634, 0.019357189536094666, 0.004788747988641262, 0.02801131084561348, 0.003875482128933072, -0.020961303263902664, -0.011707325465977192, -0.006628759205341339, 0.034966956824064255, -0.004613508470356464, -0.0173351988196373, -0.0061569614335894585, -0.013466457836329937, 0.001577995135448873, -0.09322724491357803, -0.008424961008131504, 0.003358189482241869, 0.013432757928967476, 0.018925832584500313, 0.0008736684685572982, -0.003612623317167163, -0.0027718122582882643, 0.01585240662097931, 0.01064241025596857, -0.009826874360442162, -0.022336255759000778, -0.0032368700485676527, -0.010575011372566223, -0.005991832353174686, -0.01982898823916912, -0.010069513693451881, -0.013756276108324528, 0.003477823920547962, 0.009307896718382835, 0.001196344499476254, -0.021379180252552032, 0.00947639625519514, -0.019168471917510033, 0.005371754989027977, -0.007501585409045219, -0.027660831809043884, -0.00202367571182549, 0.013068798929452896, 0.003403684124350548, -0.007299385964870453, -0.031111694872379303, -0.014800971373915672, -0.0023775240406394005, 0.0031222905963659286, 0.012313922867178917, -0.03262144699692726, -0.024883965030312538, 0.0142348138615489, 0.0028897617012262344, 0.002163529861718416, 0.001998400781303644, 0.025477081537246704, -0.023091133683919907, 0.003046465804800391, -9.16741046239622e-05, -0.010298672132194042, 0.0016723547596484423, 0.010500871576368809, -0.008438440971076488, -0.005482964683324099, 0.000617970887105912, -0.009631414897739887, -0.011754505336284637, -0.004498929250985384, -0.013769756071269512, 0.0006600957131013274, 0.014437013305723667, -0.005887362640351057, 0.005830072797834873, 0.01803615689277649, -0.005240325815975666, -0.0032806796953082085, 0.0069286879152059555, 0.017941797152161598, 0.011835385113954544, -0.03458951786160469, -0.019815508276224136, 0.001964700873941183, -0.024870485067367554, -0.006288390606641769, 0.02473568543791771, -0.014935771003365517, -0.0007986862910911441, -0.018063116818666458, -0.027350792661309242, -0.011363587342202663, 0.013938255608081818, 0.005749193485826254, 0.0034340140409767628, 0.005024646874517202, -0.016256805509328842, -0.004653948359191418, -0.013500157743692398, -0.0008837783825583756, 0.013601256534457207, -0.007110666949301958, -0.01247568242251873, 0.020395144820213318, -0.03361896425485611, -0.00046842783922329545, 0.02801131084561348, 0.018966272473335266, -0.021783579140901566, -0.011093988083302975, 0.015933286398649216, -0.0159467663615942, 0.020961303263902664, -0.006136741489171982, 0.004734828136861324, -0.018844952806830406, 0.014086534269154072, -0.05801765248179436, 0.015501928515732288, -0.023913409560918808, -0.021864458918571472, -0.002763387281447649, 0.0009596030577085912, 0.01922239176928997, 0.004431529436260462, -0.002188804792240262, -5.686848453478888e-06, -0.008114922791719437, 0.007825103588402271, -0.012131943367421627, -0.003044780809432268, -0.024048209190368652, 0.016512922942638397, 0.0234011709690094, -0.012394802644848824, 7.687776815146208e-05, 0.003184635192155838, -0.018440553918480873, -0.0013404112542048097, 0.006510809995234013, 0.009483136236667633, 0.002879651729017496, -0.006082821637392044, 0.007784663699567318, 0.021365700289607048, -0.029548022896051407, -0.013075538910925388, 0.041787806898355484, -0.011046809144318104, -0.0017119520343840122, 0.03022201918065548, -0.0016159075312316418, -0.006709638983011246, 0.013345138169825077, 0.012367842718958855, 0.01163992565125227, 0.032270971685647964, -0.0011314722942188382, -0.03529047593474388, -0.009280936792492867, -0.0407363697886467, -0.013857375830411911, -0.008135142736136913, -0.017227360978722572, 0.007279166020452976, 0.006510809995234013, 0.00022368271311279386, 0.006625389214605093, 0.004610138479620218, -0.0010876624146476388, -0.006948907859623432, 0.03882221877574921, -0.01866971328854561, -0.0025207484140992165, -0.0220127385109663, 0.007090447004884481, -0.031084734946489334, 0.041760846972465515, -0.0008618735009804368, 0.018817992880940437, 0.004664058331400156, -0.014693131670355797, -0.0033177495934069157, -0.002930201357230544, 0.0201929472386837, 0.007804883643984795, -0.03254057094454765, -0.02342813089489937, -0.002923461375758052, -0.005290875677019358, -0.010938969440758228, 0.015838926658034325, 0.0169442817568779, -0.0021500501316040754, -0.00321328011341393, 0.002048950409516692, 0.010682850144803524, 0.011040069162845612, -0.0004273561353329569, -0.01532668899744749, 0.01508404966443777, 0.041059888899326324, -0.0029049264267086983, -0.010932229459285736, 0.00011489540338516235, -0.027391232550144196, -0.0031677852384746075, -0.0224036555737257, 0.014760531485080719, 0.016472483053803444, 0.024209966883063316, 0.014032615348696709, 0.023630330339074135, -0.03272928670048714, -0.014490933157503605, 0.019411109387874603, 0.007703784387558699, 0.00597161240875721, -0.0010472226422280073, 0.0040338714607059956, -0.03685414791107178, -0.0017304869834333658, 0.018480993807315826, -0.03747422620654106, -0.028685307130217552, -0.0031172356102615595, 0.02997938171029091, 0.005452634766697884, 0.014437013305723667, 0.030356818810105324, 0.007548764813691378, -0.018117036670446396, -0.005031386855989695, -0.014275253750383854, -0.026272397488355637, -0.01866971328854561, 0.03019505925476551, 0.016445523127913475, -0.005974982399493456, -0.009523576125502586, -0.012502642348408699, 0.025504041463136673, 0.005321205127984285, 0.017240840941667557, -0.009752734564244747, 0.0011205198243260384, -0.02358989045023918, -0.01400565542280674, -0.0038316722493618727, -4.798278496309649e-06, -0.015124489553272724, -0.003356504486873746, -0.013176638633012772, -0.014315693639218807, 0.013149678707122803, 0.006948907859623432, 0.0540815107524395, 0.01706560142338276, -7.092764280969277e-05, 0.018507953733205795, 0.009328116662800312, -0.006349050439894199, 0.020408624783158302, -0.020637784153223038, -0.02570624090731144, -0.001013522851280868, 0.015758046880364418, -0.0008585035102441907, 0.01888539269566536, -0.008465400896966457, -0.0009233757155016065, -0.022605855017900467, 0.0023758390452712774, 0.03208225220441818, 0.006372640375047922, 0.0003909181978087872, 0.007400485686957836, 0.021379180252552032, 0.010507611557841301, -0.0010952448938041925, -0.027054235339164734, -0.011902784928679466, 0.01786091737449169, -0.007939683273434639, 0.005250435788184404, -0.0004490504215937108, 0.03237881138920784, 0.014207853935658932, -0.015407568775117397, -0.015933286398649216, -0.008451920934021473, -0.007157846819609404, 0.009119178168475628, -0.006463630124926567, 0.008923718705773354, 0.007339825853705406, 0.0258275605738163, -0.005941282492130995, -0.018602313473820686, -0.02155441977083683, -0.056130461394786835, -0.00016586641140747815, -0.007879023440182209, 0.010372811928391457, -2.594624675111845e-05 diff --git a/tests/data/lancedb/requirements.lance/_latest.manifest b/tests/data/lancedb/requirements.lance/_latest.manifest deleted file mode 100644 index 38d9af183..000000000 Binary files a/tests/data/lancedb/requirements.lance/_latest.manifest and /dev/null differ diff --git a/tests/data/lancedb/requirements.lance/_transactions/0-d2c46569-d173-4b3f-b589-f8f00eddc371.txn b/tests/data/lancedb/requirements.lance/_transactions/0-d2c46569-d173-4b3f-b589-f8f00eddc371.txn deleted file mode 100644 index e0946b858..000000000 --- a/tests/data/lancedb/requirements.lance/_transactions/0-d2c46569-d173-4b3f-b589-f8f00eddc371.txn +++ /dev/null @@ -1 +0,0 @@ -$d2c46569-d173-4b3f-b589-f8f00eddc371²Vtext ÿÿÿÿÿÿÿÿÿ*string085vector ÿÿÿÿÿÿÿÿÿ*fixed_size_list:float:153608 \ No newline at end of file diff --git a/tests/data/lancedb/requirements.lance/_transactions/1-5ae04c7e-dae3-47e8-92e9-6b84b7a4d035.txn b/tests/data/lancedb/requirements.lance/_transactions/1-5ae04c7e-dae3-47e8-92e9-6b84b7a4d035.txn deleted file mode 100644 index 690d1f3c9..000000000 Binary files a/tests/data/lancedb/requirements.lance/_transactions/1-5ae04c7e-dae3-47e8-92e9-6b84b7a4d035.txn and /dev/null differ diff --git a/tests/data/lancedb/requirements.lance/_versions/1.manifest b/tests/data/lancedb/requirements.lance/_versions/1.manifest deleted file mode 100644 index f83222174..000000000 Binary files a/tests/data/lancedb/requirements.lance/_versions/1.manifest and /dev/null differ diff --git a/tests/data/lancedb/requirements.lance/_versions/2.manifest b/tests/data/lancedb/requirements.lance/_versions/2.manifest deleted file mode 100644 index 38d9af183..000000000 Binary files a/tests/data/lancedb/requirements.lance/_versions/2.manifest and /dev/null differ diff --git a/tests/data/lancedb/requirements.lance/data/2164da72-df18-4c76-9f6f-d51cc6139c92.lance b/tests/data/lancedb/requirements.lance/data/2164da72-df18-4c76-9f6f-d51cc6139c92.lance deleted file mode 100644 index ffd8990db..000000000 Binary files a/tests/data/lancedb/requirements.lance/data/2164da72-df18-4c76-9f6f-d51cc6139c92.lance and /dev/null differ diff --git a/tests/tools/rag/rag_tool_test.py b/tests/tools/rag/rag_tool_test.py deleted file mode 100644 index a059c60a2..000000000 --- a/tests/tools/rag/rag_tool_test.py +++ /dev/null @@ -1,21 +0,0 @@ -from crewai_tools.tools.rag.rag_tool import Adapter, RagTool - - -class MockAdapter(Adapter): - answer: str - - def query(self, question: str) -> str: - return self.answer - - -def test_rag_tool(): - adapter = MockAdapter(answer="42") - rag_tool = RagTool(adapter=adapter) - - assert rag_tool.name == "Knowledge base" - assert ( - rag_tool.description == "A knowledge base that can be used to answer questions." - ) - assert ( - rag_tool.run("What is the answer to life, the universe and everything?") == "42" - )