Python SDK Reference
This section provides detailed documentation for all classes, methods, and functions in the HackAgent Python SDK, auto-generated from source-code docstrings.
What's Included
- Core:
HackAgentagent class, errors, and utilities - Router: Adapters for OpenAI, Ollama, LiteLLM, Google ADK, and call tracking
- Attack Framework: Base classes, objectives, evaluators, and techniques (AdvPrefix, PAIR, TAP, BON, FlipAttack, AutoDAN-Turbo, Baseline)
- Datasets: Built-in providers and dataset registry
- Risks: Risk profiles and vulnerability definitions for all OWASP LLM risk categories
For practical usage examples, see the Python SDK Quickstart.
Auto-generated from hackagent v0.10.1.