Skip to main content
Generates an @Agent class with LLM configuration and optional tool references.

Usage

Options

Generated Code

  • The LLM provider follows the model name: models starting with claude use anthropic and read ANTHROPIC_API_KEY; everything else uses openai and reads OPENAI_API_KEY. Set the variable in the environment that runs the server.
  • Each name in --tools becomes an import of ../tools/<name>.tool (relative to the agent file) and a class reference in tools. Names are de-duplicated, so --tools search,search imports the tool once. Generate the tools first with the tool generator so the imports resolve.