mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-01 07:13:00 +00:00
chore: clean up redundant inline docs in agent module
This commit is contained in:
@@ -1485,8 +1485,6 @@ class Agent(BaseAgent):
|
|||||||
Note:
|
Note:
|
||||||
For explicit async usage outside of Flow, use kickoff_async() directly.
|
For explicit async usage outside of Flow, use kickoff_async() directly.
|
||||||
"""
|
"""
|
||||||
# Magic auto-async: if inside event loop (e.g., inside a Flow),
|
|
||||||
# return coroutine for Flow to await
|
|
||||||
if is_inside_event_loop():
|
if is_inside_event_loop():
|
||||||
return self.kickoff_async(messages, response_format, input_files)
|
return self.kickoff_async(messages, response_format, input_files)
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ def handle_reasoning(agent: Agent, task: Task) -> None:
|
|||||||
agent: The agent performing the task.
|
agent: The agent performing the task.
|
||||||
task: The task to execute.
|
task: The task to execute.
|
||||||
"""
|
"""
|
||||||
# Check if planning is enabled using the planning_enabled property
|
|
||||||
if not getattr(agent, "planning_enabled", False):
|
if not getattr(agent, "planning_enabled", False):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user