Pydantic models defining the research agent input, sensor readings, and evidence bundle schema.
# Source: https://github.com/nitrocloudofficial/nitrostack | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
"""
Research Agent Pydantic Models — Agent 2 interface contract.
"""
from pydantic import BaseModel, Field
from typing import List, Optional, Dict, Any
from backend.schemas.planner_models import ExecutionPlan
class ResearchInput(BaseModel):
execution_plan: ExecutionPlan
incident_id: str = "INC-2407-001"
batch_id: str = "B-2407-184"
class SensorReading(BaseModel):
reading_id: str
timestamp: str
humidity_pct: float
temperature_c: float
queue_delay_minutes: float
cycle_time_seconds: float
source: str
record_id: str
class Evidence
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key