Flyto2 Blueprint
Most agent memory stores what was said. Blueprint stores what actually worked.
Flyto2 Blueprint is procedure memory for AI agents. It turns a successful execution into a parameterized workflow that can be searched, run again, and judged by its real history.
successful execution
↓
parameterize what changes
↓
save steps + retries + assertions + compatibility
↓
reuse with new arguments
↓
record the outcome in an Evidence Card
It is closer to turning a good agent run into a tested function than adding another chat-history or vector-memory layer.
Blueprint does not train model weights. It makes a verified procedure executable again.
Installation and first run
pip install flyto-blueprint
from flyto_blueprint import BlueprintEngine, MemoryBackend
engine = BlueprintEngine(storage=MemoryBackend())
result = engine.expand("browser_scrape", {
"url": "https://example.com",
"extract_selector": "h1",
})
print(result["data"]["steps"])
How this differs from a typical AI agent
| Typical AI agent | Flyto2 AI + Blueprint | |
|---|---|---|
| Repeated job | Ask the model to reason again | Reuse the verified workflow |
| “It works” | Often based on the model's answer | Based on execution outcomes and assertions |
| Token use | Grows again on each model-planned run | Exact reuse can skip the agent's planning call |
| Learning | Often stays in one chat | Becomes a parameterized, searchable Blueprint |
| Shared knowledge | Easy to trust too quickly | Imported bundles start quarantined unless the host verifies them |
| Bad patterns | May keep getting suggested | Failures lower trusted scores and can retire the pattern |
An individual Evidence Card stays deliberately narrow:
planner_model_calls_used=0 means exact reuse skipped outer-agent planning; it
does not pretend an llm.* workflow step was free. The v3 benchmark goes
further by recording native planner and workflow counters separately, checking
their arithmetic, and making a full-usage claim only when both are observed.
Proof, not vibes
Every Blueprint summary includes an Evidence Card. It shows the number of trusted outcomes, observed success rate, Wilson 95% lower bound, retries, assertion pass rate, p50/p95 duration, and measured zero-planner-call reuse. Detailed samples keep only an allowlist of execution facts and are capped to the latest 100 entries; prompts, parameters, API keys, and raw results are not accepted.
Search and list summaries also expose ordered, unique module_ids. This field
contains capability names only—never step parameters or results—so Flyto2 AI
can use trusted prior workflows as routing hints without expanding or executing
them.
An Evidence Card answers “did this procedure work?” The versioned effectiveness benchmark answers the harder question: “does Blueprint help an agent without making it less reliable?” It compares the same tasks, model, environment, and random seeds across four modes, including ordinary conversation, Traditional Chinese and Japanese negation, hostile evidence, incompatible reuse, and a sealed holdout.
The published v3 result is 10 tasks × 20 trials × four paired modes across five runs: 4,000 raw records, three model families, Apple Silicon and Linux x86-64, and one independent GitHub runner. The workloads perform real Python file/test execution, real loopback HTTP browser and API I/O, real filesystem persistence, and real Ollama inference. No planner or workflow call is mocked.
Across all five runs, warm verified reuse kept benchmark and workload success at 100%, with zero manual corrections and zero false reuse. Compared with Flyto2 routing without Blueprint, total observed model tokens fell by 71.25–72.90%. Compared with the generic agent baseline, they fell by 84.80–85.78%. The paired 95% lower bound for the Blueprint-specific reduction was 63.29–64.43%, so the result does not depend on the point estimate alone.
That is evidence for this controlled suite, these model bytes, and these hosts; it is not a claim that every task gets 70% cheaper. Read the one-screen result story, inspect the committed raw JSONL, or rerun the deterministic closure verifier.
Official links: flyto2.com · Docs · PyPI · flyto-core · flyto-ai
Good fit if you searched for:
- reusable AI workflow patterns
- workflow automation blueprint engine
- self-learning automation recipes
- YAML workflow templates for AI agents
What it already does
- 33 built-in browser, API, data, image, notification, monitoring, PDF, and OCR patterns.
- Synonym-expanded search, so “grab” can find “scrape.”
- Repository/runtime compatibility, so similar-looking workflows do not get mixed across incompatible projects.
- Retry and assertion contracts that survive learning and expansion.
- Evidence Cards that expose reliability and zero-planner-call reuse.
Learn, measure, and share
from flyto_blueprint import BlueprintEngine, MemoryBackend
engine = BlueprintEngine(storage=MemoryBackend())
# List available blueprints
blueprints = engine.list_blueprints()
# Expand a blueprint with arguments
result = engine.expand("browser_scrape", {
"url": "https://example.com",
"extract_selector": "#content",
})
# Learn from a successful workflow
engine.learn_from_workflow(workflow_dict, name="My Pattern", tags=["browser"])
# Report a trusted runtime outcome with measured facts
engine.report_outcome(
"my_pattern",
success=True,
execution_id="run-123",
evidence={
"duration_ms": 842,
"step_count": 3,
"total_attempts": 3,
"assertion_passed": True,
"selection_mode": "deterministic",
"planner_model_calls_used": 0,
"model_call_scope": "planner",
},
)
# Share explicitly; the library never uploads on its own
bundle = engine.export_blueprint("my_pattern", publisher="my-team")
engine.import_blueprint(bundle["data"])
Unsigned or unknown-publisher imports are quarantined as community. A host
may sign exports and configure trusted publisher keys through the Python API;
signing keys are intentionally unavailable to model-facing tools.
Usage
Use Flyto2 Blueprint when an AI agent should reuse a known workflow shape instead of generating a brand-new sequence every time. Typical use cases:
- Browser scrape, screenshot, and form-fill recipes.
- API integration workflows with typed arguments.
- PDF, OCR, image manipulation, and notification patterns.
- Learned workflow reuse for teams that run similar automations repeatedly.
API
The package facade, engine lifecycle, storage protocol, scoring behavior, and complete declaration inventory are documented in API and the generated Python reference. MCP consumers should use the generated tool reference. Benchmark hosts should start with the plain-language benchmark guide.
Architecture
Architecture explains discovery, expansion, persistence, learning, and trust boundaries. Features maps each behavior to its implementation and tests; the whitepaper explains the design rationale and limits.
Configuration
The library has no mandatory remote service. Storage-specific credentials and runtime settings belong to the selected backend and deployment secret store; never place them in blueprint YAML or committed examples.
Storage Backends
- MemoryBackend — In-memory, great for tests
- SQLiteBackend — File-based persistence (default)
- FirestoreBackend — Google Firestore (for flyto-cloud)
Testing
python -m pytest
python -m ruff check .
python scripts/benchmark-scorecard.py verify-results \
--suite benchmarks/suites/blueprint-effectiveness-v1.yaml \
--results-dir benchmarks/results
python scripts/benchmark-scorecard.py verify-results \
--suite benchmarks/suites/blueprint-effectiveness-v2.yaml \
--results-dir benchmarks/results/blueprint-effectiveness-v2
python scripts/benchmark-scorecard.py verify-results \
--suite benchmarks/suites/blueprint-effectiveness-v3.yaml \
--results-dir benchmarks/results/blueprint-effectiveness-v3
python scripts/run_longitudinal_evidence.py verify \
--evidence benchmarks/results/longitudinal/local-longitudinal.evidence.json
Contributing
Open an issue or pull request for new blueprint categories, scoring behavior,
storage backends, docs, or examples. Security reports should go to
security@flyto2.com.
License
Apache-2.0
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flyto_blueprint-0.2.2.tar.gz.
File metadata
- Download URL: flyto_blueprint-0.2.2.tar.gz
- Upload date:
- Size: 240.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbe7e0cf06696aaab8c6921c68be003b6c6214a39f2123416bbd7e6d1be69402
|
|
| MD5 |
ea0f48b6c60937a40824822d66e1ae76
|
|
| BLAKE2b-256 |
c8989b95f1a16789793c8a35e89ea498172c80dabf98b027a1b8f357e3557ed8
|
Provenance
The following attestation bundles were made for flyto_blueprint-0.2.2.tar.gz:
Publisher:
publish-pypi.yml on flytohub/flyto-blueprint
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
flyto_blueprint-0.2.2.tar.gz -
Subject digest:
dbe7e0cf06696aaab8c6921c68be003b6c6214a39f2123416bbd7e6d1be69402 - Sigstore transparency entry: 2326868646
- Sigstore integration time:
-
Permalink:
flytohub/flyto-blueprint@68a5499d88ca72fdc48d35dff1b18f573dd865dc -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/flytohub
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@68a5499d88ca72fdc48d35dff1b18f573dd865dc -
Trigger Event:
push
-
Statement type:
File details
Details for the file flyto_blueprint-0.2.2-py3-none-any.whl.
File metadata
- Download URL: flyto_blueprint-0.2.2-py3-none-any.whl
- Upload date:
- Size: 80.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06acf9cfd5cd48258589aadc2bd4382f58594304cfb5224c0f1aa60f13c64dd4
|
|
| MD5 |
5dafdd7d079fe7a158965a8854a72d83
|
|
| BLAKE2b-256 |
d41adf15793221e52a2dd40a9b5e3186f107b196a32de3f87573d70cf7b4a047
|
Provenance
The following attestation bundles were made for flyto_blueprint-0.2.2-py3-none-any.whl:
Publisher:
publish-pypi.yml on flytohub/flyto-blueprint
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
flyto_blueprint-0.2.2-py3-none-any.whl -
Subject digest:
06acf9cfd5cd48258589aadc2bd4382f58594304cfb5224c0f1aa60f13c64dd4 - Sigstore transparency entry: 2326868791
- Sigstore integration time:
-
Permalink:
flytohub/flyto-blueprint@68a5499d88ca72fdc48d35dff1b18f573dd865dc -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/flytohub
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@68a5499d88ca72fdc48d35dff1b18f573dd865dc -
Trigger Event:
push
-
Statement type: