tapehead
基于磁带 (Tape) 的 agent 框架. 名字取自录音机的磁头: 录制时写带, 回放时读带.
核心概念
以下概念已经确定, 后续设计都以它们为前提. 仍在讨论中的问题见 #1.
Tape
Tape (磁带) 是 tapehead 的核心概念. agent 发生过的一切都录在磁带上, 磁带是唯一的事实来源.
其他概念都围绕磁带展开, 而不是反过来:
- 会话: 只是约定俗成的说法, 一盘磁带就是一个持久化的会话
- 持久化: 存放磁带, 不存放磁带之外的任何东西
- 上下文: 模型看到的消息从磁带回放得出, 不单独存储
只追加
磁带只能在末尾追加, 录上去的内容不修改, 不删除, 不重排.
- 序号: 每一帧的序号就是它在磁带上的位置, 从 0 开始连续, 没有空洞
- 单写者: 同一时刻一盘磁带只有一个写入方
- 修复靠追加: 中断留下的未闭合状态, 通过追加补写来闭合, 不改动已录的帧
- 增量不上带: 流式增量 (如 token 级输出) 只出现在实时流中, 不录上磁带
Release files for tapehead 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tapehead-0.0.1.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tapehead-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.6 kB
Release files / tapehead-0.0.1.tar.gz
| Download URL | tapehead-0.0.1.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c1c6fe2d818fd33567fd759391fb035ce190c47d3baab88c43a3a6bf2ba569a0
|
|
BLAKE2b-256 checksum How to use checksums |
60135aac24d09872c436ae3124d3caa1879e1f7ca73ac67388c149685ff5dc4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / tapehead-0.0.1-py3-none-any.whl
| Download URL | tapehead-0.0.1-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
faa17dafec9d987f6567126c61f8fba628b4a595d7cdba733397bce7c8fce02b
|
|
BLAKE2b-256 checksum How to use checksums |
6bccc132cdcb5ffa40605705b7be262d66928799b1f4da98fb0bff6938f54ccb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|