Hello,
I am curious. What is the proper format/syntax to add tools to tasks.yml and agents.yaml?
This is how I have it currently, but I have tried many variations:
analyze_topic:
description: >
Analyze {niche_topic} in detail. Your output must start with "Topic Analysis:" and include:
1) Key concepts and terminology
2) Current trends and developments
3) Major challenges and opportunities
4) Different perspectives and approaches in the field
expected_output: >
A comprehensive analysis covering key aspects,
current state, trends, and various perspectives of {niche_topic}.
Structure your response with clear sections and bullet points.
llm: OpenAI_gpt-4o
tools:
- SerperDevTool
- ScrapeWebsiteTool
I get this error:
Traceback (most recent call last):
File "C:\Users\rthid\myapps\speaker_finder\backend\main.py", line 15, in <module>
run()
File "C:\Users\rthid\myapps\speaker_finder\backend\main.py", line 12, in run
SpeakerFinders().crew().kickoff(inputs=inputs)
^^^^^^^^^^^^^^^^
File "C:\Users\rthid\myapps\speaker_finder\.venv\Lib\site-packages\crewai\project\crew_base.py", line 36, in __init__
self.map_all_task_variables()
File "C:\Users\rthid\myapps\speaker_finder\.venv\Lib\site-packages\crewai\project\crew_base.py", line 203, in map_all_task_variables
self._map_task_variables(
File "C:\Users\rthid\myapps\speaker_finder\.venv\Lib\site-packages\crewai\project\crew_base.py", line 232, in _map_task_variables
tool_functions[tool]() for tool in tools
~~~~~~~~~~~~~~^^^^^^
KeyError: 'SerperDevTool'
I notice errors on lines 12 and 15 in main.py. Is that causing the KeyError with the tool?
Thanks In Advance,
Ryan