Plan strategies producing ExecutionPlanIR from IntentIR
Project description
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/
Project details
Release history Release notifications | RSS feed
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 nlp2cmd_planner-0.1.2.tar.gz.
File metadata
- Download URL: nlp2cmd_planner-0.1.2.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb4af16f5d3eae53b03359be5caf6231a6b372ae0829a6c4cdf1b6fee61d448d
|
|
| MD5 |
8967e2178ba385bffa22208ff3d26f49
|
|
| BLAKE2b-256 |
e74c5fffdc640a3ac1b35aa3806b0b05a5ff55429e76e99300b76183cdf05dbc
|
File details
Details for the file nlp2cmd_planner-0.1.2-py3-none-any.whl.
File metadata
- Download URL: nlp2cmd_planner-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76586fa34d2b09ab3e79adf77cf4962730fddb4824cc32d3d5ca8da8fade6dc2
|
|
| MD5 |
9c5c0c8919c82d509274b32dfa34a0d0
|
|
| BLAKE2b-256 |
09a1b708a649fcb8fb4333c0c5fc62cc51bdeb52ff9ac696457e73f5f43f12d7
|