Forge documentation
Library referencePython

forge.health

Python health package; imports are explicit from this package.

Python health package; imports are explicit from this package.

Package contract

FieldValue
Languagepython
Source version0.1.0
Manifestforge-py/pyproject.toml
Source files6
EvidenceSource reference; registry publication and runtime conformance are separate checks

Import boundary

import forge.health

Use a source checkout or your verified private registry. Manifest coordinates identify the package; they do not establish that a public registry release exists.

Source reference

Download package reference JSON. Each original source file and generated declaration artifact has its own SHA-256 digest. Function bodies and constant values are omitted from downloads. These are source declaration inventories, not compiler-resolved rustdoc, TypeDoc, DocC, or Dokka output. Private modules can contain public declarations that are not reachable through the package boundary; consult the entry point before importing.

events.py

Read declaration text · 3 declaration entries

class HealthEventKind(Enum)

class HealthEvent()

def to_dict(self) -> dict[str, Any]

lifecycle.py

Read declaration text · 12 declaration entries

class LifecycleState(Enum)

def valid_transitions(self) -> tuple[LifecycleState, ...]

def is_terminal(self) -> bool

def is_operational(self) -> bool

class LifecycleTransition()

class LifecycleManager()

def __init__(self) -> None

def state(self) -> LifecycleState

def transition(self, target: LifecycleState) -> LifecycleTransition

def can_transition_to(self, target: LifecycleState) -> bool

def valid_transitions(self) -> list[LifecycleState]

def history(self) -> list[LifecycleTransition]

monitoring.py

Read declaration text · 5 declaration entries

class HealthStatus(Enum)

class HealthThresholds()

class HealthMonitor()

def __init__(self, thresholds: HealthThresholds | None=None) -> None

def evaluate(self, profile: HealthProfile) -> HealthStatus

profile.py

Read declaration text · 14 declaration entries

class HealthProfile()

def record_tool_invocation(self) -> None

def record_inference(self, tokens: int) -> None

def record_error(self) -> None

def update_resources(self, cpu: float, memory: int) -> None

def update_uptime(self, seconds: int) -> None

def record_task_started(self) -> None

def record_task_completed(self) -> None

def record_generation_success(self) -> None

def record_generation_failure(self) -> None

def to_dict(self) -> dict[str, Any]

def from_dict(data: dict[str, Any]) -> HealthProfile

def to_json(self) -> str

def from_json(data: str) -> HealthProfile

reporting.py

Read declaration text · 3 declaration entries

class HealthReport()

def to_dict(self) -> dict[str, Any]

def to_json(self) -> str

Continue

On this page