chore: clean up redundant inline docs in agent module

This commit is contained in:
Greyson LaLonde
2026-04-12 16:30:01 +08:00
parent 16bf24001e
commit 6103bef920
2 changed files with 0 additions and 3 deletions

View File

@@ -1485,8 +1485,6 @@ class Agent(BaseAgent):
Note:
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():
return self.kickoff_async(messages, response_format, input_files)

View File

@@ -39,7 +39,6 @@ def handle_reasoning(agent: Agent, task: Task) -> None:
agent: The agent performing the task.
task: The task to execute.
"""
# Check if planning is enabled using the planning_enabled property
if not getattr(agent, "planning_enabled", False):
return