yoi/crates/llm-worker
2026-06-09 19:31:11 +09:00
..
docs Tool Outputの仕様簡素化 2026-04-12 05:19:00 +09:00
examples cargo fmt 2026-04-27 22:51:07 +09:00
src tool: add execution context 2026-06-09 19:31:11 +09:00
tests tool: add execution context 2026-06-09 19:31:11 +09:00
Cargo.toml fix: add llm request lifecycle timeouts 2026-05-28 02:42:31 +09:00
README.md docs: reorganize developer documentation 2026-06-01 20:59:32 +09:00

llm-worker

Role

llm-worker owns provider-independent model turn orchestration over committed history, tools, callbacks, retries, continuation, pruning, and compaction boundaries.

Boundaries

Owns:

  • Worker history mutation and append contracts
  • tool-call loop semantics
  • pre-stream retry and stream-started continuation policy
  • pruning/compaction coordination from the Worker perspective
  • provider-neutral events/callbacks/interceptors

Does not own:

  • Pod names, sockets, process lifecycle, or scope delegation (pod)
  • product CLI shape (yoi)
  • provider catalog and secret resolution (provider, secrets)
  • durable Pod current state (pod-store)

Design notes

The Worker is where turn lifecycle belongs because it sees history, in-flight usage, partial output, and tool-call state. It should not receive context-only volatile facts; model-affecting inputs must first be appended to history.

See also