aniket-work / build_startup_using_AI_Agents

build_startup_using_AI_Agents
Apache License 2.0
35 stars 13 forks source link

error: JobScrapeQueryRun.extract_multiple_jobs() takes 1 positional argument but 2 were given. #1

Open sjdthree opened 1 month ago

sjdthree commented 1 month ago

I'm getting this error: (setup .env, ollama, etc per your README.md file)


% python main.py

 [DEBUG]: == Working Agent: Job Hunter
 [INFO]: == Starting Task: 
Search for job openings in finance domains across various job websites and platforms.
Compile a comprehensive list of relevant job opportunities, including job titles, website link of job posting, company names, job description and locations.
Make use of the Google Jobs Search tool to search for job openings on the web.
Your output should be a JSON file containing the scraped job opening data, organized by domain with more detailed information such as required skills, qualifications, and salary range (if available).

> Entering new CrewAgentExecutor chain...
Action: Google Jobs Search
Action Input: {'query': 'finance', 'location':Let's try this again.

Thought: I should check if the input is in the correct format.
Action: Google Jobs Search
Action Input: {"query": "finance 

I encountered an error while trying to use the tool. This was the error: JobScrapeQueryRun.extract_multiple_jobs() takes 1 positional argument but 2 were given.
 Tool Google Jobs Search accepts these inputs: Search for job openings on Google Jobs. Input should be a dictionary with keys 'query' and 'location'.

Any ideas or hints appreciated.

hakimrie commented 1 week ago

@sjdthree Maybe it's too old, but I created a PR to fix the error. Feel free to check. [3d575e] (https://github.com/hakimrie/build_startup_using_AI_Agents/commit/b3d575e8cbb954642ba8728d5e03ceda0c0461a6)