Commit 90da60e
authored
docs: clarify stable subpackages + deprecate client-level continuation (#31)
Two related eyrie doc improvements:
1. **runtime package doc** — the previous text said 'Import eyrie/runtime —
not catalog/setup/config directly', but hawk (and other consumers) actually
import a wider set of subpackages. The stable surface is cooperating
subpackages, not just runtime. List them explicitly so contributors
don't get confused.
hawk imports 8 distinct subpackages of eyrie:
- runtime (bootstrap facade: Load, ChatProvider, etc.)
- client (Provider interface, message/response types)
- catalog (model catalog: pricing, capabilities)
- catalog/registry (ProviderSpec catalog: 16 registered providers)
- catalog/xiaomi (Xiaomi-specific catalog helpers)
- config (provider config + env var resolution)
- credentials (OS keyring + OIDC keyless CI auth)
- setup (CLI/setup wiring, RoutingPreviewJSON)
- storage (conversation DAG persistence, embedded server)
All are part of the public API; changes are gated by semver. Anything
under internal/ is implementation detail and may change without notice.
2. **deprecate StreamChatWithContinuation** — there are now three continuation
mechanisms in the eyrie/hawk ecosystem and the client-level one is the
least attractive:
a. Engine-level (eyrie/conversation) — uses OutputGroupID to collapse
continuation chunks; no synthetic 'Continue.' user turn. Cleanest
conversation shape.
b. Hawk Session loop (hawk/internal/engine/stream.go) — its own
max_tokens recovery (the recoveryCount loop) that only kicks in
for no-tool-call continuations. Also clean.
c. Client-level (this function) — appends 'Continue.' user turn and
emits 'continuation' event markers. Works but pollutes the
conversation with synthetic user messages.
Mark (c) deprecated in favor of (a) and (b). Behaviour unchanged;
will be removed in eyrie v0.3.0.1 parent c9769ec commit 90da60e
2 files changed
Lines changed: 36 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
101 | 115 | | |
102 | 116 | | |
103 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
3 | 23 | | |
4 | 24 | | |
5 | 25 | | |
| |||
0 commit comments