resq_mcp.core.models
Shared domain models for the ResQ MCP server. These Pydantic models define the core data contracts shared across all subsystems.annotations
UTC
datetime
Literal
BaseModel
Coordinates Objects
lat- Latitude in decimal degrees (-90 to +90).lng- Longitude in decimal degrees (-180 to +180).status- Current status indicator (e.g., “clear”, “critical”).
coords = Coordinates(lat=37.3417, lng=-121.9751, status=“clear”) print(f”Position: {coords.lat}, {coords.lng}“)
lat
lng
status
Sector Objects
id- Unique sector identifier (e.g., “Sector-1”).coordinates- Center point coordinates with status.
id
coordinates
DetectedObject Objects
name- Human-readable name of detected object (default: “None”).type- Classification type (e.g., “fire”, “vehicle”, “person”).confidence- Detection confidence score (0.0 to 1.0).description- Detailed description of the detection.
name
type
confidence
description
DisasterScenario Objects
type- Disaster category (e.g., “wildfire”, “flood”, “earthquake”).name- Human-readable scenario name.confidence- Detection confidence or scenario likelihood (0.0 to 1.0).description- Detailed scenario description including characteristics.
type
name
confidence
description
ErrorResponse Objects
status- Always “error” to distinguish from success responses.message- Human-readable error description.
error = ErrorResponse(message=“Sector not found”) if isinstance(result, ErrorResponse): … print(f”Error: {result.message}“)