Skip to content

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

@nikitaeverywhere

Description

@nikitaeverywhere

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions