Implementation:AISecurityLab Hackagent Agent Create
| Knowledge Sources | |
|---|---|
| Domains | Storage, HTTP_Client |
| Last Updated | 2026-10-29 00:00 GMT |
Overview
Concrete generated HTTP client function for POST /agent create, wrapping the request/response cycle with the httpx-based Client, provided by the HackAgent storage HTTP API package.
Description
The agent_create module provides sync (sync) and async (asyncio) functions to create an agent via the HackAgent API. It builds the request from an AgentCreate model, sends it via the Client, and parses the response into an Agent model. Similar generated modules exist for agent_update, agent_partial_update, agent_destroy, agent_list, agent_retrieve.
Usage
- RemoteBackend: The remote storage backend calls these functions to manage agents.
Code Reference
Source Location
- Repository: AISecurityLab_Hackagent
- File: hackagent/storage/_http/api/agent/agent_create.py