Skip to main content

Shared IntentIR and ExecutionPlanIR for nlp2cmd ↔ Propact integration

Project description

pact-ir

Wspólna reprezentacja zamiaru i planu wykonania między nlp2cmd, nlp2dsl i Propact.

Typy

  • IntentIR — co użytkownik chce (format nlp2cmd.intent_ir.v1)
  • ExecutionPlanIR — jak to wykonać (format nlp2cmd.execution_plan_ir.v1)
  • TargetKind — shell, browser, rest, sql, …
  • ExecutionRisk — low, medium, high, destructive

Przykład

from pact_ir import IntentIR, ExecutionPlanIR, PlanStep, TargetKind

intent = IntentIR(
    query="znajdź pliki *.py w src",
    intent="find",
    domain="shell",
    target_kind=TargetKind.SHELL,
    confidence=0.95,
)
plan = ExecutionPlanIR.from_intent(
    intent,
    steps=[
        PlanStep(
            id="s1",
            action="shell_find",
            target_kind=TargetKind.SHELL,
            dsl='find src -name "*.py"',
        )
    ],
    source="rule_shell",
)

Instalacja

pip install -e packages/pact-ir

Zależność pozostałych pakietów w packages/ — instaluj pierwszy.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pact_ir-0.1.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pact_ir-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file pact_ir-0.1.0.tar.gz.

File metadata

  • Download URL: pact_ir-0.1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for pact_ir-0.1.0.tar.gz
Algorithm Hash digest
SHA256 90838bcbdefc8d50e06fd8cdf016b248c366f647307656664902a14129d70aa0
MD5 22afc11a1568619c7b21d95d8911cf11
BLAKE2b-256 4cb4f956d62a420af28a1aa645aec845e8ad98318a8c3b693f55f1acc6e145a1

See more details on using hashes here.

File details

Details for the file pact_ir-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pact_ir-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for pact_ir-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 06ca3ad315a7e2fb17a91ef6ac0fbbb3580355703348abc394aa7e77ae15946a
MD5 5972d942718114f12086ce91a7e2df92
BLAKE2b-256 c844dac017a891d919fcd7d092027e10de83e666e6812aee5ca01cd91a4d1d0e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page