From 9fa9c54669482a07ca877899f0c2b90aedd36b6e Mon Sep 17 00:00:00 2001 From: Hong <1257979@naver.com> Date: Fri, 20 Feb 2026 10:15:30 +0900 Subject: [PATCH] Docs: fix ConditionalTask example comment and missing tool --- docs/en/learn/conditional-tasks.mdx | 7 ++++--- docs/ko/learn/conditional-tasks.mdx | 7 ++++--- docs/pt-BR/learn/conditional-tasks.mdx | 7 ++++--- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/docs/en/learn/conditional-tasks.mdx b/docs/en/learn/conditional-tasks.mdx index 5c7914fae2..9823a0da8b 100644 --- a/docs/en/learn/conditional-tasks.mdx +++ b/docs/en/learn/conditional-tasks.mdx @@ -24,7 +24,7 @@ from crewai_tools import SerperDevTool # Define a condition function for the conditional task # If false, the task will be skipped, if true, then execute the task. def is_data_missing(output: TaskOutput) -> bool: - return len(output.pydantic.events) < 10 # this will skip this task + return len(output.pydantic.events) < 10 # True => execute ConditionalTask (data missing) # Define the agents data_fetcher_agent = Agent( @@ -39,7 +39,8 @@ data_processor_agent = Agent( role="Data Processor", goal="Process fetched data", backstory="Backstory 2", - verbose=True + verbose=True, + tools=[SerperDevTool()] ) summary_generator_agent = Agent( @@ -87,4 +88,4 @@ crew = Crew( # Run the crew result = crew.kickoff() print("results", result) -``` \ No newline at end of file +``` diff --git a/docs/ko/learn/conditional-tasks.mdx b/docs/ko/learn/conditional-tasks.mdx index 9de55e32df..490389db3f 100644 --- a/docs/ko/learn/conditional-tasks.mdx +++ b/docs/ko/learn/conditional-tasks.mdx @@ -24,7 +24,7 @@ from crewai_tools import SerperDevTool # Define a condition function for the conditional task # If false, the task will be skipped, if true, then execute the task. def is_data_missing(output: TaskOutput) -> bool: - return len(output.pydantic.events) < 10 # this will skip this task + return len(output.pydantic.events) < 10 # True => execute ConditionalTask (data missing) # Define the agents data_fetcher_agent = Agent( @@ -39,7 +39,8 @@ data_processor_agent = Agent( role="Data Processor", goal="Process fetched data", backstory="Backstory 2", - verbose=True + verbose=True, + tools=[SerperDevTool()] ) summary_generator_agent = Agent( @@ -87,4 +88,4 @@ crew = Crew( # Run the crew result = crew.kickoff() print("results", result) -``` \ No newline at end of file +``` diff --git a/docs/pt-BR/learn/conditional-tasks.mdx b/docs/pt-BR/learn/conditional-tasks.mdx index d2f1113db7..9bc0bf687b 100644 --- a/docs/pt-BR/learn/conditional-tasks.mdx +++ b/docs/pt-BR/learn/conditional-tasks.mdx @@ -24,7 +24,7 @@ from crewai_tools import SerperDevTool # Define a condition function for the conditional task # If false, the task will be skipped, if true, then execute the task. def is_data_missing(output: TaskOutput) -> bool: - return len(output.pydantic.events) < 10 # this will skip this task + return len(output.pydantic.events) < 10 # True => execute ConditionalTask (data missing) # Define the agents data_fetcher_agent = Agent( @@ -39,7 +39,8 @@ data_processor_agent = Agent( role="Data Processor", goal="Process fetched data", backstory="Backstory 2", - verbose=True + verbose=True, + tools=[SerperDevTool()] ) summary_generator_agent = Agent( @@ -87,4 +88,4 @@ crew = Crew( # Run the crew result = crew.kickoff() print("results", result) -``` \ No newline at end of file +```