Agent

Agent Execute

Execute the AI agent with tool-use loop.

Returns an SSE stream with events: thinking, tool_use, tool_result, message, done, error.

Requires authentication (JWT or API key). Rate limited based on subscription tier.

NOTE: Does NOT use Depends(get_db) — the agent loop can run for minutes (multiple Anthropic API calls). Holding a DB connection for that long exhausts the pool and blocks all other endpoints. Instead, short-lived sessions are created per tool execution inside the agent loop.

post/api/v1/agent/execute

Request

  • Base URL: https://api.casaintelligence.com.au (the document declares no server; this is the origin it was published from)
  • URL: https://api.casaintelligence.com.au/api/v1/agent/execute
  • Auth: HTTP bearer

Request body

property_idstring nullable
addressstring nullable
messagestring required
conversation_idstring nullable
intentstring nullable
contextobject nullable
historyobject[] nullable

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.