Activity
Mon
Wed
Fri
Sun
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
What is this?
Less
More

Memberships

AI Developer Accelerator

10.8k members โ€ข Free

1 contribution to AI Developer Accelerator
Newbie Needs Help
I have the two files below. Im getting this error: > Entering new CrewAgentExecutor chain... The first step in my research process will be to find the Case Identification, Case Name and Citation, Plaintiff and Defendant. To do this, I'll need to conduct an internet search with the provided parameters: state, topic, and person. This will help me locate the specific case law I'm looking for. Action: Search the internet Action Input: {"query": "Case law in state 't' about topic 't' related to person 't'"} I encountered an error while trying to use the tool. This was the error: SearchTools.search_internet() missing 1 required positional argument: 'self'. Tool Search the internet accepts these inputs: Search the internet(self, query) - Useful to search the internet about a given topic and return relevant results Thought: The tool error encountered was likely due to a technical problem. To find the specific case law, I need to retry the search on the internet using the provided parameters: state, topic, and person. main.py from dotenv import load_dotenv load_dotenv() # Ensure environment variables are loaded first import os from crewai import Crew from textwrap import dedent from agents import LawAgents from tasks import LawTasks from tools.search_tools import SearchTools # Make sure to import SearchTools class LawCrew: def __init__(self, person, topic, state): self.person = person self.topic = topic self.state = state self.search_tools = SearchTools() # Create an instance of SearchTools self.tasks = LawTasks(self.search_tools) # Pass the instance to LawTasks def run(self): try: agents = LawAgents() tasks = LawTasks(self.search_tools) law_researcher_agent = agents.law_researcher_agent() law_analyst_agent = agents.law_analyst_agent() law_report_writer_agent = agents.law_report_writer_agent()
1-1 of 1
Billy Duke
1
5points to level up
@billy-duke-1005
Newbie trying not to be a newbie.

Active 329d ago
Joined Apr 18, 2024
Powered by