Implementation:AISecurityLab Hackagent Generate Script
Appearance
| Knowledge Sources | |
|---|---|
| Domains | Code_Generation, Tooling |
| Last Updated | 2026-10-29 00:00 GMT |
Overview
Concrete HTTP client code generator script that regenerates the pydantic models and API endpoint functions from the OpenAPI spec, provided by the HackAgent storage HTTP API package.
Description
The generate.py script reads the openapi-python-client config and the OpenAPI spec, then regenerates the models.py and per-endpoint API client modules under _http/api/. It ensures the generated client stays in sync with the API server's schema.
Usage
- Maintenance: Run after the API spec changes to regenerate the client code.
Code Reference
Source Location
- Repository: AISecurityLab_Hackagent
- File: hackagent/storage/_http/api/scripts/generate.py
Usage
python hackagent/storage/_http/api/scripts/generate.py
Related Pages
Implements Principle
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment