Create a new agent
agent
Create a new agent
Create and persist a new agent configuration.
Args:
body (CreateAgentRequest):
Agent configuration to store.
user_id (str):
Injected authenticated user ID.
storage (StorageBase):
Injected storage backend.
Returns:
CreateAgentResponse:
The server-assigned agent identifier.
POST
Create a new agent
Documentation Index
Fetch the complete documentation index at: https://docs.agentscope.io/llms.txt
Use this file to discover all available pages before exploring further.
Headers
Caller's user ID. Temporary header-based identity; will be replaced by JWT auth.
Body
application/json
Request body for creating a new agent.
Response
Successful Response
Response body after creating an agent.
Server-assigned agent identifier.