fabricatio-thinking
Sequential Chain-of-Thought reasoning for fabricatio agents, backed by a Rust-implemented version control system for thought management.
Installation
pip install fabricatio[thinking]
# or
uv pip install fabricatio[thinking]
For a full monorepo installation:
pip install fabricatio[full]
Overview
fabricatio-thinking provides structured, multi-step reasoning through a
version-controlled thought process. Agents iterate through a chain of
thoughts, with built-in support for revising past steps, branching into
alternative reasoning paths, and managing the entire thought history via a
lightweight VCS written in Rust.
Components
Capabilities
| Name | Description |
|---|---|
Thinking |
ABC mixin (extends Propose) that adds the thinking() coroutine to any role. |
Models
| Name | Description |
|---|---|
Thought |
Pydantic model for a single reasoning step. Fields: thought (content), end (stop flag), serial (step number), estimated (expected total steps), revision, revises_thought, checkout, branch. Extends fabricatio_core.models.generic.SketchedAble. |
Rust Bindings
| Name | Description |
|---|---|
ThoughtVCS |
In-memory version control for thought chains. Each branch is an ordered list of commits. |
Configuration
All options below are read through the fabricatio configuration chain (see the
Configuration Guide). Set them under the
[ext.thinking] table in fabricatio.toml, equivalently under
[tool.fabricatio.ext.thinking] in pyproject.toml, or via
FABRICATIO_EXT__THINKING__<FIELD_UPPER> environment variables.
[ext.thinking]
The ThinkingConfig schema currently defines no options and is reserved for future use.
Access at runtime: from fabricatio_thinking.config import thinking_config.
Usage
from fabricatio_thinking.capabilities.thinking import Thinking
from fabricatio_thinking.rust import ThoughtVCS
from fabricatio_core.capabilities.propose import Propose
class MyAgent(Propose, Thinking):
"""An agent that can reason step-by-step."""
async def reason():
agent = MyAgent()
vcs = ThoughtVCS()
# Run a thinking process for up to 10 steps
result_vcs = await agent.thinking(
question="Explain the difference between TCP and UDP.",
vcs=vcs,
max_steps=10,
)
# Export the final chain as a list of strings
chain = result_vcs.export_branch()
for commit in chain:
print(commit)
# Or as a single formatted string
print(result_vcs.export_branch_string())
How thinking() works
- The LLM proposes a
Thoughtfor the current step. - If the thought requests a revision (
revision=True+revises_thought), the VCS updates that prior commit. - If the thought requests a checkout (
checkout+branch), the VCS truncates the branch at the given step. - Otherwise, the thought is committed to the current branch.
- The loop repeats until
end=Trueormax_stepsis reached.
ThoughtVCS API
| Method | Description |
|---|---|
commit(content, serial, estimated, branch=None) |
Append a thought to a branch, creating the branch if it does not exist. |
revise(content, serial, branch=None) |
Replace the content of an existing commit. |
checkout(branch, serial) |
Truncate a branch to a specific commit (used for branching). |
export_branch(branch=None) |
Return all commits as a list[str]. |
export_branch_string(branch=None) |
Return all commits as a single formatted string. |
Dependencies
fabricatio-core— core interfaces (Propose,SketchedAble,CONFIG, loggers)
License
MIT — see LICENSE
Metadata
Release files for fabricatio-thinking 0.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 14.5 MB
Release files / fabricatio_thinking-0.2.5-cp314-cp314-win_amd64.whl
| Download URL | fabricatio_thinking-0.2.5-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
ec9d2b275453849f1871744334b0ee807651b0a48c3aa4e9fd161257bdf82486
|
|
BLAKE2b-256 checksum How to use checksums |
643eb87ee16b3530dde0e0ea6eb134cf7ffab10f3888951cddbc3868141ef805
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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":true}
|
Release files / fabricatio_thinking-0.2.5-cp314-cp314-manylinux_2_34_x86_64.whl
| Download URL | fabricatio_thinking-0.2.5-cp314-cp314-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.14 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
a723137831687c6e08a17a9063ee9a2dec273fdb16762f84243e4f39cd53d9fe
|
|
BLAKE2b-256 checksum How to use checksums |
3820374afb775c4cbdf5c1b9df0e2cc4576465893eb9e52a894d3dd33edbc54a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / fabricatio_thinking-0.2.5-cp314-cp314-manylinux_2_34_aarch64.whl
| Download URL | fabricatio_thinking-0.2.5-cp314-cp314-manylinux_2_34_aarch64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.14 Linux glibc 2.34+ ARM64 |
|
SHA-256 checksum How to use checksums |
dd0fa33aa0495c049845a5b38361f4fb5026582f31e126e2c2c624dc7ced7482
|
|
BLAKE2b-256 checksum How to use checksums |
2d3c5e98db0956ac934c24d49c9b3bcc67f971a455ff6936bc72f57f7cb8e5d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / fabricatio_thinking-0.2.5-cp314-cp314-macosx_11_0_arm64.whl
| Download URL | fabricatio_thinking-0.2.5-cp314-cp314-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.14 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
2eb9a1a16fefb7953af9bf410baa7f5ac5b9454a8722fd395df6e74efc97da24
|
|
BLAKE2b-256 checksum How to use checksums |
d32e60aa4251ce5513cf190f56c5c6678b6ea262df3b05c2ca91b5ba651bf92c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / fabricatio_thinking-0.2.5-cp313-cp313-win_amd64.whl
| Download URL | fabricatio_thinking-0.2.5-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
5b4f98bb6654e8da8e3e2baff21623b931d06681d34e4d901590e9fefa2f936f
|
|
BLAKE2b-256 checksum How to use checksums |
37a938b1e4638bf4e716d4864da5afe8a6c392df6791a211d3e2aef704090028
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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":true}
|
Release files / fabricatio_thinking-0.2.5-cp313-cp313-manylinux_2_34_x86_64.whl
| Download URL | fabricatio_thinking-0.2.5-cp313-cp313-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.13 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
ba19b16565e7342b203fb34b1e0cc54b8b24dbde47144070b225d3f093a5c9b6
|
|
BLAKE2b-256 checksum How to use checksums |
90aadfcf8a5427d6e3854644a1322c8172bdafbcc55c1386d2903531c334823c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / fabricatio_thinking-0.2.5-cp313-cp313-manylinux_2_34_aarch64.whl
| Download URL | fabricatio_thinking-0.2.5-cp313-cp313-manylinux_2_34_aarch64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.13 Linux glibc 2.34+ ARM64 |
|
SHA-256 checksum How to use checksums |
fa607b8dd749783613f1fa8b35ced0d4b012838608aa86f9c51ae96fdfdc1cc1
|
|
BLAKE2b-256 checksum How to use checksums |
e124b6fc402ab486b7560b587553fa49fa9ab5c80096581e7ef2d1eae7103c0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / fabricatio_thinking-0.2.5-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | fabricatio_thinking-0.2.5-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
95c8fabd7f821e6a063f679143f6fb26ac97e4f8fb34f6b13cdc2ce9b016b524
|
|
BLAKE2b-256 checksum How to use checksums |
a0d8bdf420e1d81b6fb69b096dd74fab5bf8df8b5be2419078a93c75e10b267e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / fabricatio_thinking-0.2.5-cp312-cp312-win_amd64.whl
| Download URL | fabricatio_thinking-0.2.5-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
a93ea5e8b45ba148088e9db1ee7e4f7dc0d188b92d20701c805d70c3a071e392
|
|
BLAKE2b-256 checksum How to use checksums |
4fd841844a55b0c7c004f61acb60f741390d659bc3e30690b11a64e8ed459fef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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":true}
|
Release files / fabricatio_thinking-0.2.5-cp312-cp312-manylinux_2_34_x86_64.whl
| Download URL | fabricatio_thinking-0.2.5-cp312-cp312-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.12 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
2e0f33f8ca722a6c2b09041c911ff750f4eaf3e9e2de9465319f9672c322f948
|
|
BLAKE2b-256 checksum How to use checksums |
7bfc88bcd4d08738f95882a6deac720382552a47a77d16ce2c2ca79559aec662
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / fabricatio_thinking-0.2.5-cp312-cp312-manylinux_2_34_aarch64.whl
| Download URL | fabricatio_thinking-0.2.5-cp312-cp312-manylinux_2_34_aarch64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.12 Linux glibc 2.34+ ARM64 |
|
SHA-256 checksum How to use checksums |
6445ffcae62b96eb255a06685ec8e9e5c794a0b3e0898aec0b08e3103dd29734
|
|
BLAKE2b-256 checksum How to use checksums |
7b08009c5338be3ee2c5757ef0cb95a4941664eef033b44e485ba72c7aed2b09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / fabricatio_thinking-0.2.5-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | fabricatio_thinking-0.2.5-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
80b812771df41f67d14aabb0149c52ea55afbd9b09d99b45ba5b2aaf91326217
|
|
BLAKE2b-256 checksum How to use checksums |
be4385c8da635e61cd20c2780c65fcc285f40d631a1734b32cf565f2bb14f5b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for fabricatio-thinking 0.2.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.