Closed tholonia closed 3 months ago
Update. I do not get this error when I run the DDGS, but because I get a ton of rate limiis failures from DDGS I was running SerperSearch, which returns structured data/JSON. Does LanceDB see the JSON and assume its some sort of DB update or something?
However, I get other errors when I run DDGS.
Action Input: {"coworker": "Writer", "task": "Use SearchNewsDB to gather news articles about recent advancements in AI and process them in a way that includes key trends, breakthrough technologies, and potential industry impacts."}
I encountered an error while trying to use the tool. This was the error: AgentTools.delegate_work() missing 1 required positional argument: 'context'.
Tool Delegate work to co-worker accepts these inputs: Delegate work to co-worker(coworker: str, task: str, context: str) - Delegate a specific task to one of the following co-workers: ['Writer']
The input to this tool should be the coworker, the task you want them to do, and ALL necessary context to exectue the task, they know nothing about the task, so share absolute everything you know, don't reference things but instead explain them.
Action Input: {"coworker": "AI Research Assistant", "question": "Can you please gather some relevant news articles about recent advancements in AI and process them using SearchNewsDB? This would help us understand the latest trends and technologies in this field.", "context": "None"}
Error executing tool. Co-worker mentioned not found, it must to be one of the following options:
- Writer
Action Input: {"coworker": "Writer", "task": "Use SearchNewsDB to gather news articles about recent advancements in AI and process them in a way that includes key trends, breakthrough technologies, and potential industry impacts."}
I encountered an error while trying to use the tool. This was the error: AgentTools.delegate_work() missing 1 required positional argument: 'context'.
Tool Delegate work to co-worker accepts these inputs: Delegate work to co-worker(coworker: str, task: str, context: str) - Delegate a specific task to one of the following co-workers: ['Writer']
The input to this tool should be the coworker, the task you want them to do, and ALL necessary context to exectue the task, they know nothing about the task, so share absolute everything you know, don't reference things but instead explain them.
Hi @tholonia, Thank you for highlighting I have updated the blog https://blog.lancedb.com/track-ai-trends-crewai-agents-rag/ with tasks for agents.
Referring to the Issue you encountered, Can you Please try out Colab Notebook https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/examples/AI-Trends-with-CrewAI/CrewAI_AI_Trends.ipynb For me It is running without any error using this Notebook.
Please highlight which cell throws an error
I would love to get this working... LanceDB sounds like exactly what I need. However, when I run this, the search function calls a coworker "Database Manager", which does not exist. Where is the agent getting that coworker from? Is this something I need to define, or is it LanceDB somewhere?
(p.s. also, your blog post at https://blog.lancedb.com/track-ai-trends-crewai-agents-rag/ is missing the Tasks declaration code)