pub async fn create_agent_headless(
client: &TaskFastClient,
body: &AgentCreateRequest,
) -> Result<AgentCreateResponse>Expand description
POST /agents — creates a headless agent on behalf of a human API key.
The returned api_key is the credential the agent will use from this
point on; the server will not reveal it again. We refuse to return a
response with a missing/empty key — that’s a server contract violation
and silently proceeding would strand the caller without credentials.