← Về thư mục
harness/runner.py
- ScenarioResult · class · L16-L27 — class ScenarioResult
- trace_sha256 · method · L26-L27 — def trace_sha256(self) -> str
- _Recorder · class · L30-L73 — class _Recorder
- init · method · L31-L43 — def init( self, *, run_id: str, root_frame_id: str, clock: FakeClock, uuid_factory: FakeUUIDFactory, )
- emit · method · L45-L73 — def emit( self, kind: str, *, phase: str, status: str, turn_id: str | None = None, parent_event_id: str | None = None, payload: Mapping[str, Any] | None = None, ) -> EventEnvelope
- _error_payload · function · L76-L87 — def _error_payload(exc: InjectedFault | ScriptedProviderError) -> dict[str, Any]
- _ordered_events · function · L90-L109 — def _ordered_events(events: tuple[EventEnvelope, ...]) -> list[str]
- _evaluate · function · L112-L159 — def _evaluate( scenario: Scenario, *, terminal_reason: str, model_attempts: int, events: tuple[EventEnvelope, ...], provider: ScriptedLLM, faults: FaultSchedule, ) -> list[str]
- run_scenario · function · L162-L288 — def run_scenario( scenario: Scenario, *, offline: bool = True, clock: FakeClock | None = None, uuid_factory: FakeUUIDFactory | None = None, ) -> ScenarioResult