mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-07-03 06:08:15 +00:00
style: apply ruff format to file_artifact and tool_usage
This commit is contained in:
@@ -136,9 +136,7 @@ class _ArtifactStore:
|
||||
scope = str(scope_id)
|
||||
with self._lock:
|
||||
for handle_id in [
|
||||
hid
|
||||
for hid, entry in self._entries.items()
|
||||
if entry.scope_id == scope
|
||||
hid for hid, entry in self._entries.items() if entry.scope_id == scope
|
||||
]:
|
||||
del self._entries[handle_id]
|
||||
|
||||
|
||||
@@ -328,12 +328,14 @@ class ToolUsage:
|
||||
if k in acceptable_args
|
||||
}
|
||||
result = await tool.ainvoke(
|
||||
input=resolve_artifact_handles(arguments), config=fingerprint_config
|
||||
input=resolve_artifact_handles(arguments),
|
||||
config=fingerprint_config,
|
||||
)
|
||||
except Exception:
|
||||
arguments = calling.arguments
|
||||
result = await tool.ainvoke(
|
||||
input=resolve_artifact_handles(arguments), config=fingerprint_config
|
||||
input=resolve_artifact_handles(arguments),
|
||||
config=fingerprint_config,
|
||||
)
|
||||
else:
|
||||
result = await tool.ainvoke(input={}, config=fingerprint_config)
|
||||
@@ -559,12 +561,14 @@ class ToolUsage:
|
||||
if k in acceptable_args
|
||||
}
|
||||
result = tool.invoke(
|
||||
input=resolve_artifact_handles(arguments), config=fingerprint_config
|
||||
input=resolve_artifact_handles(arguments),
|
||||
config=fingerprint_config,
|
||||
)
|
||||
except Exception:
|
||||
arguments = calling.arguments
|
||||
result = tool.invoke(
|
||||
input=resolve_artifact_handles(arguments), config=fingerprint_config
|
||||
input=resolve_artifact_handles(arguments),
|
||||
config=fingerprint_config,
|
||||
)
|
||||
else:
|
||||
result = tool.invoke(input={}, config=fingerprint_config)
|
||||
|
||||
Reference in New Issue
Block a user