How to define a Bananalyzer Agent
mainTo run an agent with bananalyzer, you must create a Python file (conventionally named bananalyzer-agent.py) that contains a class inheriting from AgentRunner.
When the CLI loads your file, it uses ast to inspect the class definitions and ensures the class is a valid AgentRunner instance. Because pytest creates a new global context for each test run, your AgentRunner implementation must be concurrency safe.
Requirements
- The file must contain at least one class that inherits from
AgentRunner. - The class must be instantiable without arguments (or via the mechanism used by the runner).
- The class must be thread/process safe for parallel execution via
xdistif using the-nflag.