Agents

Clinical AI agents that execute reasoning tasks against FHIR data. Supports synchronous and async run modes.

The Agent Object

FieldTypeDescription
idstringUnique agent ID (e.g. agent_uti_v1)
namestringDisplay name of the agent
versionstringSemantic version string (e.g. 1.2.0)
statusstringOne of: ready | busy | error | offline
fhirResourcesstring[]FHIR R4 resource types the agent reads or writes
runModestringExecution mode: sync (< 30 s) or async (long-running with webhook callback)
averageLatencyMsintegerAverage inference latency in milliseconds over the last 24 hours
successRatenumberPercentage of completed runs returning a structured output (0–1)

Endpoints

Returns all agents available in the project.

Parameters

ParameterInTypeRequiredDescription
projectIde.g. proj_rpm_001querystringrequiredProject ID

Request

curl "https://api.healthcloud.ai/v1/agents?projectId=proj_rpm_001" \
  -H "Authorization: Bearer hc_test_sk_demo_live_xxxxxx"

Response

Response200
{
  "data": [
    {
      "id": "agent_uti_v1",
      "name": "UTI Screening Agent",
      "status": "ready",
      "version": "1.2.0",
      "fhirResources": ["Observation", "Condition"]
    }
  ]
}

Related Resources