Skip to content

Commit 48d050a

Browse files
committed
Update docs.
1 parent 6d8a3f7 commit 48d050a

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

ADVANCED.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ result = await l0.run(
10671067
### Fallback Events
10681068

10691069
```python
1070-
{"type": "FALLBACK_START", "ts": ..., "from_model": ..., "to_model": ..., "reason": ...}
1070+
{"type": "FALLBACK_START", "ts": ..., "fromIndex": ..., "toIndex": ..., "reason": ...}
10711071
{"type": "FALLBACK_MODEL_SELECTED", "ts": ..., "index": ..., "model": ...}
10721072
{"type": "FALLBACK_END", "ts": ..., "index": ..., "duration_ms": ...}
10731073
```

API.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ def handle_event(event: l0.ObservabilityEvent):
471471
case l0.ObservabilityEventType.RETRY_ATTEMPT:
472472
print(f"Retrying (attempt {event.meta.get('attempt', '?')})")
473473
case l0.ObservabilityEventType.FALLBACK_START:
474-
print(f"Switching to fallback {event.meta.get('index', '?')}")
474+
print(f"Switching to fallback {event.meta.get('toIndex', '?')}")
475475
case l0.ObservabilityEventType.CHECKPOINT_SAVED:
476476
print(f"Checkpoint saved ({event.meta.get('token_count', 0)} tokens)")
477477
case l0.ObservabilityEventType.NETWORK_ERROR:

DETERMINISTIC_LIFECYCLE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ This document specifies the **deterministic lifecycle behavior** of the L0 Pytho
142142
2. [error occurs, retries exhausted]
143143
3. RETRY_GIVE_UP
144144
4. on_error(error, will_retry=False, will_fallback=True)
145-
5. FALLBACK_START (index=1, fromIndex=0, reason="previous_failed")
145+
5. FALLBACK_START (fromIndex=0, toIndex=1, reason="previous_failed")
146146
6. FALLBACK_MODEL_SELECTED (index=1)
147147
7. on_fallback(0, "previous_failed") # 0-based fallback index
148148
8. on_start(1, False, True)
@@ -359,7 +359,7 @@ The following `ObservabilityEventType` values are emitted during the lifecycle:
359359

360360
| Event Type | Description | Meta Fields |
361361
| ------------------------- | ---------------------------------------- | ---------------------- |
362-
| `FALLBACK_START` | Switching to fallback stream | `index`, `fromIndex`, `reason` |
362+
| `FALLBACK_START` | Switching to fallback stream | `fromIndex`, `toIndex`, `reason` |
363363
| `FALLBACK_MODEL_SELECTED` | Fallback model selected | `index` |
364364
| `FALLBACK_END` | Fallback completed | `index`, `success` |
365365

0 commit comments

Comments
 (0)