Spaces:
Running
Running
File size: 771 Bytes
d660fa9 f4542ce d660fa9 f4542ce | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | """autonomy — schema for a future per-minute LLM "deviate from plan" decision.
Defines AutonomyDecision (deviate / deviation_type / reason / duration)
as the structured contract for a behavior switch the brain may request.
Architecture: prepared for brain.py and the engine; currently no call
site exists (the decision is gated off until enabled).
Design: kept as a standalone schema so enabling autonomy later requires
no changes to existing callers.
"""
from __future__ import annotations
from pydantic import BaseModel
from typing import Optional
class AutonomyDecision(BaseModel):
"""Structured output from the autonomy LLM call."""
deviate: bool
deviation_type: Optional[str] = None
reason: Optional[str] = None
duration_minutes: int = 0
|