annoscript 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- annoscript/__init__.py +1 -0
- annoscript/_backend_profiles.py +17 -0
- annoscript/_client_common.py +287 -0
- annoscript/_data.py +37 -0
- annoscript/_dispatch_pool.py +47 -0
- annoscript/_env.py +19 -0
- annoscript/_examples.py +34 -0
- annoscript/_expressions.py +93 -0
- annoscript/_plan_viewer.html +953 -0
- annoscript/_remote_jobs.py +211 -0
- annoscript/_request_adapters.py +71 -0
- annoscript/_speculation.py +321 -0
- annoscript/_test_artifacts.py +33 -0
- annoscript/_test_evaluation_http.py +117 -0
- annoscript/_test_ir_runtime.py +138 -0
- annoscript/_test_job_process.py +166 -0
- annoscript/_test_plan_runtime.py +331 -0
- annoscript/_test_remote_client.py +46 -0
- annoscript/_test_remote_server.py +75 -0
- annoscript/_test_synthetic.py +67 -0
- annoscript/anno.py +270 -0
- annoscript/backends/__init__.py +13 -0
- annoscript/backends/_batch_wire.py +26 -0
- annoscript/backends/_bounded_grammar.py +97 -0
- annoscript/backends/_example_layout.py +23 -0
- annoscript/backends/_generation_policy.py +116 -0
- annoscript/backends/_grammar.py +83 -0
- annoscript/backends/_preview.py +13 -0
- annoscript/backends/_prompt.py +115 -0
- annoscript/backends/_shared_rules.py +38 -0
- annoscript/backends/adapters/__init__.py +17 -0
- annoscript/backends/adapters/chat.py +39 -0
- annoscript/backends/adapters/decision.py +119 -0
- annoscript/backends/base.py +427 -0
- annoscript/backends/config.py +67 -0
- annoscript/backends/decision.py +150 -0
- annoscript/backends/llm.py +338 -0
- annoscript/client.py +247 -0
- annoscript/client_tests.py +17 -0
- annoscript/compiler.py +708 -0
- annoscript/cross_version_tests.py +68 -0
- annoscript/fixtures/request-adapters-v1.json +4741 -0
- annoscript/formatter.py +171 -0
- annoscript/grammar_tests.py +176 -0
- annoscript/inspect.py +77 -0
- annoscript/ir.py +458 -0
- annoscript/job_cross_version_tests.py +118 -0
- annoscript/job_protocol.py +180 -0
- annoscript/jobs.py +255 -0
- annoscript/metrics.py +153 -0
- annoscript/p0_grammar_tests.py +147 -0
- annoscript/passes/__init__.py +40 -0
- annoscript/passes/_analysis.py +178 -0
- annoscript/passes/control_flow.py +68 -0
- annoscript/passes/dead_assignments.py +44 -0
- annoscript/passes/folding.py +104 -0
- annoscript/passes/propagation.py +53 -0
- annoscript/passes/temporaries.py +45 -0
- annoscript/plan.py +542 -0
- annoscript/plan_formatter.py +452 -0
- annoscript/plan_lowering.py +571 -0
- annoscript/preview.py +115 -0
- annoscript/remote.py +304 -0
- annoscript/runtime.py +861 -0
- annoscript/server/__init__.py +1 -0
- annoscript/server/__main__.py +49 -0
- annoscript/server/_plan_cache.py +79 -0
- annoscript/server/api.py +146 -0
- annoscript/server/metrics.py +140 -0
- annoscript/server/migrate.py +61 -0
- annoscript/server/releases.py +143 -0
- annoscript/server/store.py +429 -0
- annoscript/server/worker.py +290 -0
- annoscript/substring_tests.py +79 -0
- annoscript/test_advisory_lengths.py +115 -0
- annoscript/test_backends.py +181 -0
- annoscript/test_client.py +349 -0
- annoscript/test_compact_batch.py +95 -0
- annoscript/test_compiler.py +444 -0
- annoscript/test_decision_adapters.py +410 -0
- annoscript/test_decision_wire.py +190 -0
- annoscript/test_diagnostics.py +97 -0
- annoscript/test_engineering_p0.py +191 -0
- annoscript/test_environment.py +65 -0
- annoscript/test_example_backends.py +251 -0
- annoscript/test_examples.py +149 -0
- annoscript/test_field_names.py +221 -0
- annoscript/test_formatter.py +153 -0
- annoscript/test_fusion_scheduling.py +109 -0
- annoscript/test_generation_policy.py +180 -0
- annoscript/test_ir.py +148 -0
- annoscript/test_jobs.py +371 -0
- annoscript/test_jobs_server.py +511 -0
- annoscript/test_llm_batch.py +428 -0
- annoscript/test_metrics.py +59 -0
- annoscript/test_metrics_server.py +261 -0
- annoscript/test_minimal_fusion.py +59 -0
- annoscript/test_nullable_generate.py +169 -0
- annoscript/test_passes.py +408 -0
- annoscript/test_plan.py +522 -0
- annoscript/test_plan_constraints.py +305 -0
- annoscript/test_plan_formatter.py +272 -0
- annoscript/test_prompt_layout.py +140 -0
- annoscript/test_qwen_backend.py +181 -0
- annoscript/test_qwen_pilot_regression.py +180 -0
- annoscript/test_release_client.py +20 -0
- annoscript/test_remote.py +308 -0
- annoscript/test_request_adapters.py +295 -0
- annoscript/test_requirements.py +228 -0
- annoscript/test_rule_dedup.py +67 -0
- annoscript/test_runtime.py +314 -0
- annoscript/test_runtime_client.py +133 -0
- annoscript/test_source_fields.py +111 -0
- annoscript/test_speculation.py +458 -0
- annoscript/test_substring_backend.py +81 -0
- annoscript/test_synthetic_example.py +61 -0
- annoscript-0.1.0.dist-info/METADATA +145 -0
- annoscript-0.1.0.dist-info/RECORD +128 -0
- annoscript-0.1.0.dist-info/WHEEL +4 -0
- annoscript-0.1.0.dist-info/licenses/LICENSE +21 -0
- annoscript_examples/__init__.py +1 -0
- annoscript_examples/fixtures.py +3 -0
- annoscript_examples/request.execution_plan.json +3017 -0
- annoscript_examples/request.json +858 -0
- annoscript_examples/request.py +37 -0
- annoscript_examples/request_preview.decision.json +23 -0
- annoscript_examples/request_preview.generation.json +20 -0
- annoscript_examples/run.py +24 -0
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: annoscript
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: AnnoScript: Programmable AI Annotation
|
|
5
|
+
Project-URL: Homepage, https://annoscript.chukonu.ai
|
|
6
|
+
Project-URL: Repository, https://github.com/stevenybw/annoscript
|
|
7
|
+
Project-URL: Issues, https://github.com/stevenybw/annoscript/issues
|
|
8
|
+
Author: stevenybw
|
|
9
|
+
License-Expression: MIT
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
19
|
+
Requires-Python: >=3.10
|
|
20
|
+
Requires-Dist: httpx<1,>=0.28
|
|
21
|
+
Provides-Extra: server
|
|
22
|
+
Requires-Dist: fastapi<1,>=0.128.1; extra == 'server'
|
|
23
|
+
Requires-Dist: uvicorn<1,>=0.40; extra == 'server'
|
|
24
|
+
Provides-Extra: tokenizer
|
|
25
|
+
Requires-Dist: transformers==5.17.0; extra == 'tokenizer'
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
|
|
28
|
+
# AnnoScript: Programmable AI Annotation
|
|
29
|
+
|
|
30
|
+
AnnoScript compiles Python annotation programs into a serializable intermediate
|
|
31
|
+
representation and an execution plan. Decision operations and generation
|
|
32
|
+
operations can use separate model backends while sharing program state.
|
|
33
|
+
|
|
34
|
+
The client supports Python 3.10+. Runtime and server execution require Python 3.12+.
|
|
35
|
+
|
|
36
|
+
## Install
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
pip install annoscript
|
|
40
|
+
# Local execution and the durable server (Python 3.12+):
|
|
41
|
+
pip install 'annoscript[server]'
|
|
42
|
+
# Optional pinned local tokenizer support:
|
|
43
|
+
pip install 'annoscript[tokenizer]'
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Python imports use `annoscript`, for example `from annoscript.client import AnnoClient`.
|
|
47
|
+
The eDSL context is `annoscript.anno.Anno`; the runtime and durable-job clients are
|
|
48
|
+
`AnnoRuntime`, `AnnoJobClient`, and `AnnoRemoteClient` in their corresponding modules.
|
|
49
|
+
This release replaces the former Lev Python namespace. Version-1 serialized IR,
|
|
50
|
+
execution plans, durable-job protocols and the `legacy` backend profile remain compatible.
|
|
51
|
+
|
|
52
|
+
## Synthetic example
|
|
53
|
+
|
|
54
|
+
`annoscript_examples.request.annotate` classifies a synthetic document, conditionally
|
|
55
|
+
generates a title, and produces tags and source spans. The example demonstrates
|
|
56
|
+
all six operators without requiring an application dataset.
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
python -m annoscript.inspect annoscript_examples/request.json --show-source
|
|
60
|
+
python -m annoscript.inspect annoscript_examples/request.execution_plan.json
|
|
61
|
+
python -m annoscript.inspect annoscript_examples/request.execution_plan.json --format html -o /tmp/lev-plan.html
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
To regenerate the saved example with Python 3.12:
|
|
65
|
+
|
|
66
|
+
```python
|
|
67
|
+
from pathlib import Path
|
|
68
|
+
from annoscript.compiler import compile_program
|
|
69
|
+
from annoscript.plan_lowering import lower_to_plan
|
|
70
|
+
from annoscript_examples.request import annotate
|
|
71
|
+
|
|
72
|
+
program = compile_program(annotate)
|
|
73
|
+
Path("annoscript_examples/request.json").write_text(program.to_json(indent=2) + "\n")
|
|
74
|
+
Path("annoscript_examples/request.execution_plan.json").write_text(lower_to_plan(program).to_json(indent=2) + "\n")
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Configuration
|
|
78
|
+
|
|
79
|
+
Install `requirements.txt` for the client and `requirements-server.txt` for
|
|
80
|
+
local execution or the durable job server. Copy `.credential.example` to an
|
|
81
|
+
ignored local file and supply the desired endpoints and model names.
|
|
82
|
+
Environment variables override values from an explicitly supplied environment file.
|
|
83
|
+
Canonical `ANNO_*` keys take precedence over legacy `LEV_*` aliases within the same
|
|
84
|
+
layer. Process environment values override file values regardless of their prefix;
|
|
85
|
+
explicit API arguments take precedence over both. Credentials stay outside packages.
|
|
86
|
+
|
|
87
|
+
| Variable | Purpose |
|
|
88
|
+
| --- | --- |
|
|
89
|
+
| `ANNO_DECISION_BASE_URL` | Decision provider URL |
|
|
90
|
+
| `ANNO_DECISION_AUTH_TOKEN` | Decision provider credential |
|
|
91
|
+
| `ANNO_DECISION_MODEL` | Decision model identifier |
|
|
92
|
+
| `ANNO_GENERATE_BASE_URL` | Generation provider URL |
|
|
93
|
+
| `ANNO_GENERATE_AUTH_TOKEN` | Generation provider credential |
|
|
94
|
+
| `ANNO_GENERATE_MODEL` | Generation model identifier |
|
|
95
|
+
| `ANNO_GENERATE_PROFILE` | `legacy` (default) or `qwen_vllm` wire protocol |
|
|
96
|
+
| `ANNO_GENERATE_TOKENIZER_DIR` | Caller-provided tokenizer directory when required by policy |
|
|
97
|
+
|
|
98
|
+
Keep live service settings and credentials outside version control.
|
|
99
|
+
The `legacy` profile name describes a supported request protocol.
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
python -m annoscript_examples.run --env-file .credential --inputs /tmp/documents.json --mode speculative
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
This command calls the caller's configured services. Inspecting IR, previewing
|
|
106
|
+
resolved requests and running the offline tests do not call model services.
|
|
107
|
+
|
|
108
|
+
## Execution and backends
|
|
109
|
+
|
|
110
|
+
Programs use `choice`, `noul`, `score`, `generate`, `generate_list` and `extract`.
|
|
111
|
+
`constrain` declares hard runtime constraints. `system_prompt` supplies shared
|
|
112
|
+
instructions; preconditions validate inputs locally before dispatch.
|
|
113
|
+
|
|
114
|
+
`AnnoClient` supports strict, eager and speculative execution. The runtime
|
|
115
|
+
handles bounded concurrency, batching, cancellation, repair and result ordering.
|
|
116
|
+
Examples, field names, nullable output and per-call requirements are included in
|
|
117
|
+
the IR and execution-plan bindings. Decision and generation request adapters
|
|
118
|
+
are explicitly selectable and can be inspected without dispatch.
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
python -m annoscript.preview annoscript_examples/request_preview.decision.json
|
|
122
|
+
python -m annoscript.preview annoscript_examples/request_preview.generation.json
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
Remote execution exchanges serialized IR. Durable jobs bind an immutable
|
|
126
|
+
release to resumable, idempotent result retrieval. See [remote protocol](remote_protocol.md)
|
|
127
|
+
and [durable jobs](job_protocol.md) for request formats and error semantics.
|
|
128
|
+
|
|
129
|
+
## Offline verification
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
ANNO_RUN_LIVE_TESTS=0 python -m annoscript.client_tests -q
|
|
133
|
+
ANNO_RUN_LIVE_TESTS=0 python -m unittest discover -q
|
|
134
|
+
python -m annoscript.grammar_tests -v
|
|
135
|
+
python -m annoscript.cross_version_tests --client-python /path/to/python3.10 --server-python /path/to/python3.12
|
|
136
|
+
python -m annoscript.job_cross_version_tests --client-python /path/to/python3.10 --server-python /path/to/python3.12
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
The CPU grammar suite requires Python 3.12 and `requirements-test-grammar.txt`.
|
|
140
|
+
Cross-version checks use loopback HTTP and deterministic model doubles. They do
|
|
141
|
+
not require provider credentials or download models. Additional pinned decoder
|
|
142
|
+
acceptance instructions are in [third_party/xgrammar](third_party/xgrammar/README.md).
|
|
143
|
+
|
|
144
|
+
See [motivation](motivation.md) and [operator interfaces](design_api.md) for the
|
|
145
|
+
design rationale and API contracts.
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
annoscript/__init__.py,sha256=GW3bcTHFz9JmSCJg6G-EzgvSJ9iPTGjuSFqe3Sc8idU,82
|
|
2
|
+
annoscript/_backend_profiles.py,sha256=o90sDAdhL4c0hVvFHhTq2qze9StC4z1F1FcN-j8NcJI,680
|
|
3
|
+
annoscript/_client_common.py,sha256=deX6RzgdpNAaEvJqqVXET8Od1DzVUfw54FoUGNRrQVc,11215
|
|
4
|
+
annoscript/_data.py,sha256=SuzdsbJl7fAe3h4axu15ab2oGQIBI3aE84izUAbZcWU,1318
|
|
5
|
+
annoscript/_dispatch_pool.py,sha256=8_MIn0B7xxHvjFXqT6YTDyyJF2chu6QsTjwk2WqPSi8,1727
|
|
6
|
+
annoscript/_env.py,sha256=yeEds7dJrbthB0bH3EcDB01aeJD-AKu0rlyuM4Li0Uc,578
|
|
7
|
+
annoscript/_examples.py,sha256=VcHJX7QOOJBnc-4ewLMC3ZCc1vYUxA_0dKAovIPM57I,1134
|
|
8
|
+
annoscript/_expressions.py,sha256=LhH_pLQ9XIbEi79nJuPInPNwccZz0hMEGIMwVdTrnXo,3659
|
|
9
|
+
annoscript/_plan_viewer.html,sha256=RF3EMxSRCirgMUUQ0w7JwjfosimVF9n3a7FWqF_dfLI,28833
|
|
10
|
+
annoscript/_remote_jobs.py,sha256=VrH2-yELkJeOdTfwX7Pel8O0rL9hVInSeSudFOXe1rc,8612
|
|
11
|
+
annoscript/_request_adapters.py,sha256=60rXUh2YMWvn28C6Et4TgJs0XKGL_Cu8fp62nJPk3eI,3689
|
|
12
|
+
annoscript/_speculation.py,sha256=s53bLKBWlxaP0EOB6QsPVsZag1PJZPlcfDNBA5-5aGw,13535
|
|
13
|
+
annoscript/_test_artifacts.py,sha256=tamPIeO00MEIIAbgqpw4vFbZEGE-PGWDS0dPARlDOAY,1341
|
|
14
|
+
annoscript/_test_evaluation_http.py,sha256=tlo7mJJkTMylJYuY5dkmM8hYux46epZYIRxVsVifpbw,5094
|
|
15
|
+
annoscript/_test_ir_runtime.py,sha256=fZifHLQH-ie3v6pafzMj8BsUSXRRz5krfToJvs0_5GY,5579
|
|
16
|
+
annoscript/_test_job_process.py,sha256=cq5LaM7KLwf9AadMzmuIEmNyQrgtX7UGVGMNbXzXIeM,7697
|
|
17
|
+
annoscript/_test_plan_runtime.py,sha256=eIb1f41si6nfkO8MCn6f33B5EdKiK9JxuW8COHx02aQ,13629
|
|
18
|
+
annoscript/_test_remote_client.py,sha256=VZyYeqnu66JDm062X7tQzZ1OxXhtxAxXmOMM8rCzdcs,2336
|
|
19
|
+
annoscript/_test_remote_server.py,sha256=hgSY0Vliaf9Zv35Wow7BMe66VL3PflscdmrsrK_41p8,3384
|
|
20
|
+
annoscript/_test_synthetic.py,sha256=_SqmNHRCXj_0VgE0MV-q-HBMQhPC8gYRzxBCXFALeTE,3043
|
|
21
|
+
annoscript/anno.py,sha256=KzgN9L68n2QXnkhBe0W09xAXpnIpAnr1HR13W1Ya7Wc,11677
|
|
22
|
+
annoscript/client.py,sha256=IYBaBx0qjeLRo5zjTh-HQ1R1PYldjCuLqTHhefEt61Y,10940
|
|
23
|
+
annoscript/client_tests.py,sha256=jSddJ4PHaKpltWNkZhE-23sSm0XNuakV5Os3GITRd9U,674
|
|
24
|
+
annoscript/compiler.py,sha256=xjSBG59-2dS30cNw0m9TXtnWxQYhDmTNOzIR48KAhrY,34653
|
|
25
|
+
annoscript/cross_version_tests.py,sha256=jysDUW9mfhCzAVR1NGD6P5Lg2O2qSUt4vUtYe-uzwtw,2930
|
|
26
|
+
annoscript/formatter.py,sha256=xOmCDabneNGeWJjxoZlEz91u2FxzMatQdbm6qWmuCAg,7078
|
|
27
|
+
annoscript/grammar_tests.py,sha256=pZYXXjcDEce91UAsxr3i505aDcCuULi4SSdPGLHsvRU,8607
|
|
28
|
+
annoscript/inspect.py,sha256=cjq48vVGfLGAQy33aKBccALdsWUkPFvroQD0E-DCUVc,3937
|
|
29
|
+
annoscript/ir.py,sha256=63FEglnWiefa1lcwqZDBH9qv_rwdtEPmjJlXA0hLd1M,15790
|
|
30
|
+
annoscript/job_cross_version_tests.py,sha256=IsGXtNCAhQUnRXCN0DA2XskikADckl23B4rf1APFOU4,5279
|
|
31
|
+
annoscript/job_protocol.py,sha256=59llQOudl5O8t0c3TIMZUyrlMah00lcihU9nRV7mNwM,8018
|
|
32
|
+
annoscript/jobs.py,sha256=zJ-kyxqUg6gHqJfYxo2JfedEmylmsv8RLWXU2GIQTHM,13218
|
|
33
|
+
annoscript/metrics.py,sha256=TX5cZKLcGsWWUwmlXIAGGMZwnIZ88ecDhKpF_N9mVkU,9135
|
|
34
|
+
annoscript/p0_grammar_tests.py,sha256=sqP6BkTj1dK8cf3dw2K5JEBUdE2tzZRaQE3GS3n_apY,8853
|
|
35
|
+
annoscript/plan.py,sha256=uRHLiRC46SvZBXtjls3yb0GsGTaMkOHJcdi5ZhkcNx8,22809
|
|
36
|
+
annoscript/plan_formatter.py,sha256=Qqv4wbAs2HCjbJdsolDPkWEeknADG8dwuaJQv8dJHp4,23899
|
|
37
|
+
annoscript/plan_lowering.py,sha256=C_i2qrUpjnzFGxXgS2WdlC9R_DYEvBywN12svh-x80s,27108
|
|
38
|
+
annoscript/preview.py,sha256=UOHVl3YgtIOqt1amfsuTz36BbvpXiU4mpah-mi3WW4g,7007
|
|
39
|
+
annoscript/remote.py,sha256=lcnRzr_MHQOiR6-K_FpypAcfkw2WLW5L0JE40STFo6U,13249
|
|
40
|
+
annoscript/runtime.py,sha256=AQLJ0LWd0KTO-fybSqS8OcqfsHwsmP-muRyAiChdgAA,40828
|
|
41
|
+
annoscript/substring_tests.py,sha256=-1VyfXJql1tw4PZ4vtNaOcjb44Sdju2nD6dW9R0u_zI,3921
|
|
42
|
+
annoscript/test_advisory_lengths.py,sha256=BunGEN_kAqGF-1cFCVtiylNiA-1SHwVx7C5Tew7LCyo,6947
|
|
43
|
+
annoscript/test_backends.py,sha256=3cMo_nXHHMFOF-8xbRNqhIcZ9YzxB5VFteTL-yBolJg,10911
|
|
44
|
+
annoscript/test_client.py,sha256=MfJz6ZInSVXdAFHKEeZyXKuWPjs6nTs3ZYYreAOB11c,13667
|
|
45
|
+
annoscript/test_compact_batch.py,sha256=FE4bJebCeTJjDhAth1JsvuvfTSgSrIGiMtH4U38vbW8,5779
|
|
46
|
+
annoscript/test_compiler.py,sha256=5HDRZY5JvKwSeGupDP-LFRo-Rf_bZjThrI9j-VXJdQY,13749
|
|
47
|
+
annoscript/test_decision_adapters.py,sha256=nQvAtgD3xATGqFsUTJIVzg49Pvdpi0kkHWw8CDoPwDU,25424
|
|
48
|
+
annoscript/test_decision_wire.py,sha256=6iOgxKsmRiMTfKpbuWxXCBsvzNSxqmha6jfpULN3a90,11188
|
|
49
|
+
annoscript/test_diagnostics.py,sha256=9Cp_MqmGVhJrz0JSAgqvFfN7zA3Dffi-_YKy7HJkQLo,6832
|
|
50
|
+
annoscript/test_engineering_p0.py,sha256=c1nJSrgvpBCIs-GPBWyYwwOwu88QySkvc9MDdJie5Vg,10193
|
|
51
|
+
annoscript/test_environment.py,sha256=SUrTrlU91c_LW1nxIugHdaDLvWl-Vz1czzXKbHL0x2M,3139
|
|
52
|
+
annoscript/test_example_backends.py,sha256=f-1qusHcti3tO4XemtegET6Yeu6xDHfzs9880F8QUu8,14730
|
|
53
|
+
annoscript/test_examples.py,sha256=DZgM7cWkCICiNvohapw1afyBqcaas7_kvueBsAQ14zg,6381
|
|
54
|
+
annoscript/test_field_names.py,sha256=RO8hNQG-6Lu7aK6RkHUdriS31gGPHKeV_Xx4Rv9HKIY,12783
|
|
55
|
+
annoscript/test_formatter.py,sha256=rpYl4nmFZEZKYyDTA0-lVPySZSJyPCEaHWFY5foZm_E,7165
|
|
56
|
+
annoscript/test_fusion_scheduling.py,sha256=wpT7LUOmZB9o6xt9WZoV2xDNe4bZRaGr-txCAkiutuw,4777
|
|
57
|
+
annoscript/test_generation_policy.py,sha256=fUi4RAd77ABd9tqtLAJlaALDpI6kf4g3YmIBX7S4ogI,11499
|
|
58
|
+
annoscript/test_ir.py,sha256=n51Ybn7P7LG0L_RjJp9Vwl9T4O-3ezMut4rsjzehd1c,7026
|
|
59
|
+
annoscript/test_jobs.py,sha256=xTKM4w5ZfSWVSV9aoyLYCtaBxACESYBBIZsglDuNwK0,18043
|
|
60
|
+
annoscript/test_jobs_server.py,sha256=CcxhUY6ckwClOs0j02WEzUbXL_EewiJ6Ev_AYGUd06c,26606
|
|
61
|
+
annoscript/test_llm_batch.py,sha256=0bVZIVK9375F0ykZKrBejE0pOf7CcciMI9hfoesBCKc,23444
|
|
62
|
+
annoscript/test_metrics.py,sha256=ma-ptMI6QiJJY_E9Iifqs-aGhelUJH8PL632yihK8h0,3588
|
|
63
|
+
annoscript/test_metrics_server.py,sha256=6tZHE19EqvJWSwTIb4LiggHqH7ZNCf-MR4pjS5pk83I,14408
|
|
64
|
+
annoscript/test_minimal_fusion.py,sha256=nQgR0H7ATNadTayEDgaksvMTQONAxeQTyA9aqFqkCf8,3622
|
|
65
|
+
annoscript/test_nullable_generate.py,sha256=NAzx2CN8cem0ZNRdALhq7QyY9v9eKanj2hU9R3CZwiI,9435
|
|
66
|
+
annoscript/test_passes.py,sha256=5ZPe1EiZz1UXXkh495HGpayJa-5TMNgY0RqEvkiT4Xo,18705
|
|
67
|
+
annoscript/test_plan.py,sha256=wumnxFqEDz7hYqjUGNQkz6-2f61z0dG9T1Mcc1Pa0jc,21843
|
|
68
|
+
annoscript/test_plan_constraints.py,sha256=uLvMM9vV64joOEJtR-A23s5eTPsLR69UdQGU3j9kTd4,13880
|
|
69
|
+
annoscript/test_plan_formatter.py,sha256=-8ayPPlJxyzJICUS0h-wyt9OZzCHamPj-vA-Ug-3pns,12301
|
|
70
|
+
annoscript/test_prompt_layout.py,sha256=xvCHQlBTv-fwajxAJXijaiDwCiT61j6KnPdg-aCoTSI,9392
|
|
71
|
+
annoscript/test_qwen_backend.py,sha256=yFjLwF1EbL1qrELz7VXMni_nQEIZOIMlLw6sD1tbQhA,10681
|
|
72
|
+
annoscript/test_qwen_pilot_regression.py,sha256=YvUJZbBubRxBlH6r1O35-AV2QVuHjADTmIx01zxsdw0,11158
|
|
73
|
+
annoscript/test_release_client.py,sha256=G2dtK45gjUxROVmKGreCNh1fzMF1mMvlsWDXQlRDymU,918
|
|
74
|
+
annoscript/test_remote.py,sha256=SzbYH8lWADaXhnnZU_6xOV8Jt-xItL2LPPd-oXqMpfU,15791
|
|
75
|
+
annoscript/test_request_adapters.py,sha256=995LekKvtAA_gsXVtL-Hiu6RgdWUNQSZXerKCPJgOsQ,17962
|
|
76
|
+
annoscript/test_requirements.py,sha256=X8PZmGqBKYFSvnh-EGBRWIsOTbm7NyaDTWvKlacNxRY,13422
|
|
77
|
+
annoscript/test_rule_dedup.py,sha256=eu1YUKP3u3ecdLkqw68UsbeJEyaH_sAbHXAPwy7prOk,5918
|
|
78
|
+
annoscript/test_runtime.py,sha256=AmsZKxVcs1yPp5psQHqm4m4ZdSTdZUvGukJZbzIxEHo,15977
|
|
79
|
+
annoscript/test_runtime_client.py,sha256=ZIbZHWgtdv2bgcwedVyI7mYVGUwq6rAczX3_WPHtQHA,5726
|
|
80
|
+
annoscript/test_source_fields.py,sha256=kR22sS7Vk8nXLrgMGAPWxsH_qLuTvOEMllO6eA3zlBE,5649
|
|
81
|
+
annoscript/test_speculation.py,sha256=e5wmYySw5wxMokj9sZM8MWioAxugvYByrBYwOqxhbu0,21805
|
|
82
|
+
annoscript/test_substring_backend.py,sha256=-Wyv0NEbzDKlYr-W2eib-iffXAEeg9JDBY4THaxWYSI,4965
|
|
83
|
+
annoscript/test_synthetic_example.py,sha256=Svv8Salle28TKxlyvQJg5T0L4GD2jn7oKNtQdlb7K_E,3168
|
|
84
|
+
annoscript/backends/__init__.py,sha256=GZl7v68qWWXfZfdUgib9xOmvW6aKhjUhMws3TJ2VIlA,521
|
|
85
|
+
annoscript/backends/_batch_wire.py,sha256=3ulhf11LtrBE9TxboV3Z4AHxHALBXeMq-AOOfnYT3B0,938
|
|
86
|
+
annoscript/backends/_bounded_grammar.py,sha256=R2azkKTI7FoRnMj63r0JLK2B41h1MswAxSovgwikK2Y,4224
|
|
87
|
+
annoscript/backends/_example_layout.py,sha256=YMiB0rtkPZwpLThGxditjEjYh7NYZULtlY8FP5tp9lA,931
|
|
88
|
+
annoscript/backends/_generation_policy.py,sha256=nPy88LxIjK1qZwSvT-YhkaJ5c1LAwduQcBBNPBe9QFw,5622
|
|
89
|
+
annoscript/backends/_grammar.py,sha256=D4MXAG6qyIXSQdlaxcqqK4Ksy6v1AMrYErdahTm_xpo,3719
|
|
90
|
+
annoscript/backends/_preview.py,sha256=Y7vldrEjrE9Q6H8D-C5coWHI-8Ucl8eD02oYsCDdT6U,531
|
|
91
|
+
annoscript/backends/_prompt.py,sha256=fDolbBz-KVSfsVyyNIw9Pit6oU-_g6HZNA1VE8zTzY8,6799
|
|
92
|
+
annoscript/backends/_shared_rules.py,sha256=PpZjYN2MrQV11gqPZjsZtBdofRJZIqgUrutPSgBCoJ0,1636
|
|
93
|
+
annoscript/backends/base.py,sha256=k27QWbqcsYIRW3IILjcKW-UPHqaCkGNTIXNo_x5UBxo,20953
|
|
94
|
+
annoscript/backends/config.py,sha256=PpQ6LKl8WVTCsHKuheNy0M65PaoCq-JcY1vQnlR_EX0,4068
|
|
95
|
+
annoscript/backends/decision.py,sha256=-A5YP8M-8QTw32B5BXjFHPnxlH3P2W_9hnpOnaYvKL4,8488
|
|
96
|
+
annoscript/backends/llm.py,sha256=yfIPZNmNdNhIHT9Sx4nJGBoanoHj1NbuORD6-BfAAY8,20593
|
|
97
|
+
annoscript/backends/adapters/__init__.py,sha256=8A2QBERsu5j6koIyvVk6jArNJHSRAxFZ4UJOFVNMJN4,757
|
|
98
|
+
annoscript/backends/adapters/chat.py,sha256=WVy6Hf-NY2LELAVch0V03TtrSG1oGnZQ_30eRqdGQy0,1818
|
|
99
|
+
annoscript/backends/adapters/decision.py,sha256=e2oUMbPlPdq_A5ErsvG1aR9TG4Jj_EdeeJH-0pUydDM,5034
|
|
100
|
+
annoscript/fixtures/request-adapters-v1.json,sha256=kVZTOwr2omlcVrR8hImY0laYBrjqV0R8mhJf3wFdCf8,118004
|
|
101
|
+
annoscript/passes/__init__.py,sha256=Frk4i6dm0ZrcwguOZ8zhvijHShCeYihtPuI39-urL7o,1556
|
|
102
|
+
annoscript/passes/_analysis.py,sha256=ksYB2pf4xe_nFXf9oBWJOmyQ_GhbVJt-AdA1RbUeM6Y,5595
|
|
103
|
+
annoscript/passes/control_flow.py,sha256=i37T8CLaUOB06fUA-8RmR5mkRveItEZqsbHpCy7srF8,3093
|
|
104
|
+
annoscript/passes/dead_assignments.py,sha256=zNQWL9CETFCNBwTK1YSYl6a76DYusDLSqmiCjVQjFrA,1860
|
|
105
|
+
annoscript/passes/folding.py,sha256=KtoK2uqrZaMVmEZSmNXz1qvG0Oe3UelqfO01frEvHFk,4197
|
|
106
|
+
annoscript/passes/propagation.py,sha256=LwmOylyRh1BcI2SaBrMFxJkshuCDvmqpjMVpvXJFGX0,2275
|
|
107
|
+
annoscript/passes/temporaries.py,sha256=3WMYtfWywLlI3oclBm5dl1tq3EHOFH4Wk1uFjZDUk-A,1854
|
|
108
|
+
annoscript/server/__init__.py,sha256=Hw6stIASTwKm6y1akNFQmfVDNsvC2BGczoLzohXwQfI,86
|
|
109
|
+
annoscript/server/__main__.py,sha256=LXhnH2PJS0f6aAjyJVD-Vm39gBxgSKxoqFZ0qnfujAg,2158
|
|
110
|
+
annoscript/server/_plan_cache.py,sha256=ap_mFu1_lpCjOvEVG388zhARqlnjtP7-SmEc9K7bLHI,3427
|
|
111
|
+
annoscript/server/api.py,sha256=9RT3if8tmVq_Fg7yGGjpPgFDSQMm38OQzDlnl0XkR2o,6653
|
|
112
|
+
annoscript/server/metrics.py,sha256=fMFZ-t5Dz1fjuwxs9iMmxJLhHX3yia2G90oYF6LG3gc,7665
|
|
113
|
+
annoscript/server/migrate.py,sha256=vCweyff7AQR-ws0m1mefZaYmp8g7gpZyn6T6jZCRb2A,2347
|
|
114
|
+
annoscript/server/releases.py,sha256=XzrTnmynnX4rp1IZEpdd7fbo_c8gEYWJEWejsbgjxdM,9158
|
|
115
|
+
annoscript/server/store.py,sha256=Kg6CWTzIyLfHQsh4k2hocNJkmIvnL_FCEP7xNhuYcGI,24800
|
|
116
|
+
annoscript/server/worker.py,sha256=B8O3HmsWPLn7435xVKxqLglP2x1rE5HHXmvY83fWbbE,15110
|
|
117
|
+
annoscript_examples/__init__.py,sha256=q4raJ-Wb6uCFIwZvSTF5RljCTvHtvWh396eNpHF6RQA,60
|
|
118
|
+
annoscript_examples/fixtures.py,sha256=AHDav-tCLwNrDTfk5p84-I2l8rVsHBbyct8WSXouPpY,169
|
|
119
|
+
annoscript_examples/request.execution_plan.json,sha256=QTAKtNA33RCoHO6zTOY7uJQ-FouB-Z-T5atauJ9K9I0,65503
|
|
120
|
+
annoscript_examples/request.json,sha256=mhvldOHVVzqP2SDVH_Lh9LxeDMstTE_2bE_tm9tRZAc,18171
|
|
121
|
+
annoscript_examples/request.py,sha256=ejyFwAW8ne838bxnzKMG7Ggslx1ZmIsfql0Nx7R_fqs,1990
|
|
122
|
+
annoscript_examples/request_preview.decision.json,sha256=O3TaU7Or8iYVWngUPCJOu0lexZ1lTgYBcJvQz5IsQnU,422
|
|
123
|
+
annoscript_examples/request_preview.generation.json,sha256=gXKw4Sm7GuWtK0RFAWraZFIIhP8vm83jum3dyVz_9Mg,352
|
|
124
|
+
annoscript_examples/run.py,sha256=Xl07hVcu-gKqAPIwsXmJ5B5rb08gVYyUc_XVFQaOqFE,956
|
|
125
|
+
annoscript-0.1.0.dist-info/METADATA,sha256=GNn6HK-iFWjvSXGtn7XxN7KaNOCCdL_XSXWZVtUED3o,6521
|
|
126
|
+
annoscript-0.1.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
127
|
+
annoscript-0.1.0.dist-info/licenses/LICENSE,sha256=A7F80Eo4pwyLemgycQtEeWTip44lQQSe0alOCTB1KH0,1066
|
|
128
|
+
annoscript-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 stevenybw
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Synthetic examples using only public AnnoScript APIs."""
|