Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 1.09 KB

File metadata and controls

35 lines (28 loc) · 1.09 KB

Bean Execution Gateway Python Stub

This is a local-only helper that shells out to the Node CLI. It is intentionally not a hosted API client.

from bean_execution_gateway_client import find_execution_path

summary = find_execution_path({
    "outcome": {
        "goal": "Triage a public issue locally.",
        "task_type": "issue_triage",
        "desired_artifact": "triage_packet",
    },
    "context_refs": ["https://github.com/example/project/issues/1"],
    "policy": {"mode": "free_only"},
})

For a running local or hosted public demo, the stub can also call /v0/path:

from bean_execution_gateway_client import find_agent_path

path = find_agent_path("http://127.0.0.1:8787", {
    "outcome": {
        "goal": "Find the safest executable path for a public task.",
        "task_type": "agent_task_triage",
        "desired_artifact": "agent_path_packet",
    },
    "source_mode": "fixture",
    "policy": {"mode": "free_only"},
})

The V0 policy boundary remains: no spend, no external writes, no account mutation, no supplier execution, and no private-context handling.