# Condition Agent

<figure><img src="https://915036663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvXlc832eiw1OxKuyzy6k%2Fuploads%2FU9IlfbN84AeUpCNpzkeU%2FCondition%20Agent.png?alt=media&#x26;token=25da58ef-544a-413a-9a10-1b21fbc0476a" alt=""><figcaption></figcaption></figure>

Analyzes overhead imagery (including thermal, SAR) and known property data to detect roof damage, foundation issues, environmental wear, etc.

**Sample Request** (single property):

```bash
POST /v1/agent/condition
{
  "address": "415 Mission Street, San Franscisco, CA, US"
}
```

**Region-based** example:

```bash
POST /v1/agent/condition
{
  "region": {
    "city": "Boston",
    "state": "MA"
  }
}
```

**Sample Response**

```json
{
  "propertyId": "67a771e11bcf52fcce866d6a",
  "address": "415 Mission Street, San Francisco, CA, US",
  "condition_assessment": {
    "timestamp": "2025-02-11T10:20:00Z",
    "overall_score": 7.2,
    "components": {
      "roof": {
        "status": "fair",
        "score": 6.5,
        "details": "Shingle damage detected on southeast corner",
      },
      "foundation": {
        "status": "good",
        "score": 8.3,
        "details": "No significant issues detected"
      },
      "exterior_walls": {
        "status": "moderate_damage",
        "score": 5.8,
        "details": "Weather damage visible on western exposure",
        "recommended_action": "Repair siding and repaint"
      },
      "drainage": {
        "status": "good",
        "score": 8.0,
        "details": "Proper drainage patterns observed"
      }
    },
    "risk_factors": [
      {
        "type": "weather_exposure",
        "severity": "medium",
        "details": "Property has moderate exposure to prevailing winds"
      }
    ],
    "data_sources": ["satellite_imagery_OPTICAL","satellite_imagery_SAR", "satellite_imagery_LiDAR", "street_view_LiDAR", "street_view_OPTICAL", "property_records"],
    "confidence_level": "high"
  }
}
```

If you query multiple properties, you’ll get results in bulk (one entry per property ID).
