nlp2cmd-planner
IntentIR → ExecutionPlanIR przez strategie planowania (PlanStrategy).
Użycie
from nlp2cmd_planner import PlanningPipeline
plan = PlanningPipeline().run("znajdz pliki *.py w src")
print(plan.steps[0].dsl) # find src -name "*.py"
Strategie
| Strategia | Warunek | Wynik |
|---|---|---|
RuleShellPlanStrategy |
target_kind=shell, intencje find / list / … |
find … / ls -la |
RestWorkflowPlanStrategy |
NLP2CMD_NLP2DSL_WORKFLOW=1 + intencja workflow / REST |
POST /workflow/run z DSL backendu |
Router wybiera pierwszą pasującą strategię (shell ma pierwszeństwo przed REST).
Workflow REST
export NLP2CMD_NLP2DSL_WORKFLOW=1
export NLP2DSL_BACKEND_URL=http://127.0.0.1:8010
nlp2cmd plan "Wyslij fakture na 1500 PLN do a@b.pl" --json
Niedopasowane intencje (np. navigate/browser bez strategii) → UnsupportedIntentError → użyj legacy nlp2cmd (-q … -r).
Instalacja
pip install -e packages/pact-ir
pip install -e packages/nlp2cmd-intent
pip install -e packages/nlp2cmd-planner
Testy
pytest packages/nlp2cmd-planner/tests/
Metadata
Release files for nlp2cmd-planner 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nlp2cmd_planner-0.1.2.tar.gz | 7.3 kB | Without provenance | Details for nlp2cmd_planner-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nlp2cmd_planner-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for nlp2cmd_planner-0.1.2-py3-none-any.whl |
Total release size: 14.0 kB
Release files / nlp2cmd_planner-0.1.2.tar.gz
| Download URL | nlp2cmd_planner-0.1.2.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb4af16f5d3eae53b03359be5caf6231a6b372ae0829a6c4cdf1b6fee61d448d
|
|
BLAKE2b-256 checksum How to use checksums |
e74c5fffdc640a3ac1b35aa3806b0b05a5ff55429e76e99300b76183cdf05dbc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / nlp2cmd_planner-0.1.2-py3-none-any.whl
| Download URL | nlp2cmd_planner-0.1.2-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
76586fa34d2b09ab3e79adf77cf4962730fddb4824cc32d3d5ca8da8fade6dc2
|
|
BLAKE2b-256 checksum How to use checksums |
09a1b708a649fcb8fb4333c0c5fc62cc51bdeb52ff9ac696457e73f5f43f12d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for nlp2cmd-planner 0.1.2
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.