pyrunir-mcp
pyrunir-mcp is a typed Python API for planning-and-learning agents. Callers keep domains, tasks, candidates, validation results, and history in memory; filesystem artifacts are written only at the dump boundary.
See docs/api.md for the API and docs/index.md for workflow/output tables.
Basic Flow
from pyrunir_mcp import (
ValidationHistory,
create_domain_context,
create_policy,
create_task_context,
dump_result,
find_solution,
generate_tasks,
)
domain = create_domain_context("domain.pddl")
task = create_task_context(domain, "problem.pddl")
policy = create_policy(domain, "policy.txt")
history = ValidationHistory()
result = find_solution(task, policy)
feedback = history.fold(result.observation)
dump_result(result, "artifacts/find-solution")
Entry Points
Context/candidates:
create_domain_context(domain_file)create_task_context(domain_context, problem_file, num_threads=1)create_policy(domain_context, policy_file); passNonefor an empty policywrite_empty_policy(domain_context, policy_file)for canonical empty policy textcreate_module_program(domain_context, module_program_file); passNonefor the built-in empty module programcreate_classifier(domain_context, classifier_file); passNonefor an empty classifier
runir.task_generation:
describe_generator(domain_name)get_generator_path(domain_name)/get_generator_domain_path(domain_name)generate_tasks(domain_name, output_dir, batch_name, configs, allow_invalid=False)
Validation:
find_solution(task_context, policy_or_module_program, classifier=None, universal=False, ...)prove_termination(domain_context, policy_or_module_program, ...)prove_classifier(task_context, classifier, ...)
Dumping:
dump_result(result, output_dir, formats=(DumpFormat.JSON,), include_witness=True, include_witness_trace=True, include_plan_trace=True, include_successors=True)dump_validation_history(history, output_dir, formats=(DumpFormat.JSON,))
DumpFormat.PSV, DumpFormat.MD, and DumpFormat.JSON request LLM-readable PSV, human-readable Markdown, and machine-readable JSON. Validation calls do not write files.
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 pyrunir_mcp-0.0.33.tar.gz.
File metadata
- Download URL: pyrunir_mcp-0.0.33.tar.gz
- Upload date:
- Size: 92.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ff78922bb07adc3e87cb1db37caf0f471be93d883a9d8572196bbdbeee906df
|
|
| MD5 |
17a092f0b1ed41c99b5d2c60e851fce4
|
|
| BLAKE2b-256 |
2f080f7357db8026290c9e931787154b9d6268aead6a8cfe2772d268ada6e1a8
|
Provenance
The following attestation bundles were made for pyrunir_mcp-0.0.33.tar.gz:
Publisher:
release.yml on planning-and-learning/runir-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyrunir_mcp-0.0.33.tar.gz -
Subject digest:
1ff78922bb07adc3e87cb1db37caf0f471be93d883a9d8572196bbdbeee906df - Sigstore transparency entry: 2257262001
- Sigstore integration time:
-
Permalink:
planning-and-learning/runir-mcp@5a9234b10343f1f53ce73370fba4ed5475c54115 -
Branch / Tag:
refs/tags/v0.0.33 - Owner: https://github.com/planning-and-learning
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5a9234b10343f1f53ce73370fba4ed5475c54115 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pyrunir_mcp-0.0.33-py3-none-any.whl.
File metadata
- Download URL: pyrunir_mcp-0.0.33-py3-none-any.whl
- Upload date:
- Size: 68.7 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 |
364d1f6e96c0cdc83442cb3b40a470db019f25e6ccc073b4ab8f8b1773ccf5c6
|
|
| MD5 |
9fce52ebd4532a68540e0e77ce6f5b69
|
|
| BLAKE2b-256 |
37ea33ff710a137ed4ce2e4343eda0eea4102b64673eab94ac85e7589a32a4bb
|
Provenance
The following attestation bundles were made for pyrunir_mcp-0.0.33-py3-none-any.whl:
Publisher:
release.yml on planning-and-learning/runir-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyrunir_mcp-0.0.33-py3-none-any.whl -
Subject digest:
364d1f6e96c0cdc83442cb3b40a470db019f25e6ccc073b4ab8f8b1773ccf5c6 - Sigstore transparency entry: 2257262018
- Sigstore integration time:
-
Permalink:
planning-and-learning/runir-mcp@5a9234b10343f1f53ce73370fba4ed5475c54115 -
Branch / Tag:
refs/tags/v0.0.33 - Owner: https://github.com/planning-and-learning
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5a9234b10343f1f53ce73370fba4ed5475c54115 -
Trigger Event:
push
-
Statement type: