v2.8.0 (#616)
Co-authored-by: Kim-Adeline Miguel <51720070+kimadeline@users.noreply.github.com> Co-authored-by: Mathias Gesbert <mathias.gesbert@mistral.ai> Co-authored-by: Michel Thomazo <51709227+michelTho@users.noreply.github.com> Co-authored-by: Pierre Rossinès <pierre.rossines@mistral.ai> Co-authored-by: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
95336528f6
commit
04305bd77c
68 changed files with 3473 additions and 1764 deletions
|
|
@ -39,8 +39,14 @@ class FakeConnectorRegistry(ConnectorRegistry):
|
|||
self._connector_connected[alias] = bool(tool_map)
|
||||
|
||||
def get_tools(self) -> dict[str, type[BaseTool]]:
|
||||
if self._cache is None:
|
||||
self._build_cache()
|
||||
|
||||
result: dict[str, type[BaseTool]] = {}
|
||||
if self._cache:
|
||||
for tools in self._cache.values():
|
||||
result.update(tools)
|
||||
return result
|
||||
|
||||
async def get_tools_async(self) -> dict[str, type[BaseTool]]:
|
||||
return self.get_tools()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue