@Agent class with LLM configuration and optional tool references.
Usage
Options
Generated Code
- The LLM provider follows the model name: models starting with
claudeuseanthropicand readANTHROPIC_API_KEY; everything else usesopenaiand readsOPENAI_API_KEY. Set the variable in the environment that runs the server. - Each name in
--toolsbecomes an import of../tools/<name>.tool(relative to the agent file) and a class reference intools. Names are de-duplicated, so--tools search,searchimports the tool once. Generate the tools first with the tool generator so the imports resolve.