mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-07-04 22:49:23 +00:00
style: apply ruff formatting to crew.py and task.py
Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
@@ -1340,7 +1340,12 @@ class Crew(FlowTrackable, BaseModel):
|
||||
|
||||
# Text files are always auto-injected (inlined as text), even
|
||||
# when the model does not support multimodal input.
|
||||
text_prefixes = ("text/", "application/json", "application/xml", "application/x-yaml")
|
||||
text_prefixes = (
|
||||
"text/",
|
||||
"application/json",
|
||||
"application/xml",
|
||||
"application/x-yaml",
|
||||
)
|
||||
|
||||
def is_auto_injected(content_type: str) -> bool:
|
||||
if any(content_type.startswith(t) for t in text_prefixes):
|
||||
|
||||
@@ -826,7 +826,12 @@ class Task(BaseModel):
|
||||
|
||||
# Text files are always auto-injected (inlined as text), even
|
||||
# when the model does not support multimodal input.
|
||||
text_prefixes = ("text/", "application/json", "application/xml", "application/x-yaml")
|
||||
text_prefixes = (
|
||||
"text/",
|
||||
"application/json",
|
||||
"application/xml",
|
||||
"application/x-yaml",
|
||||
)
|
||||
|
||||
def is_auto_injected(content_type: str) -> bool:
|
||||
if any(content_type.startswith(t) for t in text_prefixes):
|
||||
|
||||
Reference in New Issue
Block a user