Serverless worker
Fixture pricing: deterministic, no supplier call.
Capabilities
| Capability | Kind | Signature | Module | Summary |
|---|---|---|---|---|
flaky_price | skill | (origin: str, destination: str, fail: bool = False) -> dict | examples/python/features/serverless/agent.py | Fails with a non-retryable envelope when asked, to show the failure path. |
price | skill | (origin: str, destination: str, nights: int = 1) -> dict | examples/python/features/serverless/agent.py | Fixture pricing: deterministic, no supplier call. |
quote | traversal | (legs: list[dict]) -> dict | examples/python/features/serverless/agent.py | Price every leg as a nested child; cache repeats; admit calls per node. |
Commands
python -m examples.python.features.serverless.invoke --action drain
python -m examples.python.features.serverless.invoke --action serve
python -m examples.python.features.serverless.invoke quote '{"legs":[{"origin":"BNE","destination":"SYD"}]}'
Files
examples/python/features/serverless/__init__.pyexamples/python/features/serverless/agent.pyexamples/python/features/serverless/agentnode.yamlexamples/python/features/serverless/invoke.py