TypeError: Agent.__init__() got an unexpected keyword argument 'system_prompt' #54

Closed
opened 2025-11-06 14:32:03 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @nikitaeverywhere on GitHub (Jun 12, 2025).

Hi! Your toolset looks awesome!

I'm struggling to run it, however. I spent 1 hour to debug python etc, but now it seems that there's a code issue:

Image

File "/Users/x/Projects/lab/awesome-llm-apps/advanced_ai_agents/single_agent_apps/ai_lead_generation_agent/ai_lead_generation_agent.py", line 209, in <module>
    main()
    ~~~~^^
File "/Users/x/Projects/lab/awesome-llm-apps/advanced_ai_agents/single_agent_apps/ai_lead_generation_agent/ai_lead_generation_agent.py", line 178, in main
    transform_agent = create_prompt_transformation_agent(openai_api_key)
File "/Users/x/Projects/lab/awesome-llm-apps/advanced_ai_agents/single_agent_apps/ai_lead_generation_agent/ai_lead_generation_agent.py", line 126, in create_prompt_transformation_agent
        return Agent(
               ~~~~~^
            model=OpenAIChat(id="gpt-4o-mini", api_key=openai_api_key),
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<17 lines>...
            markdown=True
            ^^^^^^^^^^^^^
        )
        ^

Just downloaded all latest releases of everything (python, this repo etc).

➜  ai_lead_generation_agent git:(main) ✗ pip --version
pip 25.1.1 from /Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/pip (python 3.13)
➜  ai_lead_generation_agent git:(main) ✗ python --version
Python 3.13.4

Any ideas why this happens?

Originally created by @nikitaeverywhere on GitHub (Jun 12, 2025). Hi! Your toolset looks awesome! I'm struggling to run it, however. I spent 1 hour to debug python etc, but now it seems that there's a code issue: ![Image](https://github.com/user-attachments/assets/23a29935-8e4a-43e3-a6b4-992126b67b9d) ``` File "/Users/x/Projects/lab/awesome-llm-apps/advanced_ai_agents/single_agent_apps/ai_lead_generation_agent/ai_lead_generation_agent.py", line 209, in <module> main() ~~~~^^ File "/Users/x/Projects/lab/awesome-llm-apps/advanced_ai_agents/single_agent_apps/ai_lead_generation_agent/ai_lead_generation_agent.py", line 178, in main transform_agent = create_prompt_transformation_agent(openai_api_key) File "/Users/x/Projects/lab/awesome-llm-apps/advanced_ai_agents/single_agent_apps/ai_lead_generation_agent/ai_lead_generation_agent.py", line 126, in create_prompt_transformation_agent return Agent( ~~~~~^ model=OpenAIChat(id="gpt-4o-mini", api_key=openai_api_key), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<17 lines>... markdown=True ^^^^^^^^^^^^^ ) ^ ``` Just downloaded all latest releases of everything (python, this repo etc). ``` ➜ ai_lead_generation_agent git:(main) ✗ pip --version pip 25.1.1 from /Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/pip (python 3.13) ➜ ai_lead_generation_agent git:(main) ✗ python --version Python 3.13.4 ``` Any ideas why this happens?
GiteaMirror added the bug label 2025-11-06 14:32:03 -06:00
Author
Owner

@nikitaeverywhere commented on GitHub (Jul 4, 2025):

Thanks! The error is gone.

Next error I have is about quotas

Image

Although I have some quota in OpenAI

Image

What can be wrong?

@nikitaeverywhere commented on GitHub (Jul 4, 2025): Thanks! The error is gone. Next error I have is about quotas ![Image](https://github.com/user-attachments/assets/fff66f86-b775-401b-bb0e-36f489f112f0) Although I have some quota in OpenAI ![Image](https://github.com/user-attachments/assets/e1e4c153-623b-4535-8807-2bee0adbedc4) What can be wrong?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-llm-apps#54