Skip to content

[BUG] - TypeError: Agent.__init__() got an unexpected keyword argument 'result_type' #61

Description

@anotherAwesomeKitten
 codescanai --provider custom --host ****** --token ******  --repo ******
  File "/home/kitten/.local/bin/codescanai", line 10, in <module>
    sys.exit(main())
             ~~~~^^
  File "/home/kitten/.local/share/uv/tools/codescanai/lib/python3.13/site-packages/core/runner_v2.py", line 17, in main
    AgentScanner(args).scan()
    ~~~~~~~~~~~~^^^^^^
  File "/home/kitten/.local/share/uv/tools/codescanai/lib/python3.13/site-packages/core/code_scanner/agent_scanner.py", line 48, in __init__
    self.agent = create_agent(
                 ~~~~~~~~~~~~^
        model_str=model_str,
        ^^^^^^^^^^^^^^^^^^^^
        system_prompt=SECURITY_AGENT_PROMPT,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        result_type=FileScanResult,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/home/kitten/.local/share/uv/tools/codescanai/lib/python3.13/site-packages/core/agent.py", line 62, in create_agent
    return Agent(
        model_str,
        result_type=result_type,
        system_prompt=system_prompt,
    )
TypeError: Agent.__init__() got an unexpected keyword argument 'result_type'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions