/\ ATFGraph /docs
README Downloads
Examples / ATFGraph
Framework reference

This article is retained from the existing framework docs. Self-hosting commands and server-admin access differ from the managed CLI workflow. Start with Get started for the installed product.

Serverless worker

Directory examples/python/features/serverless

Fixture pricing: deterministic, no supplier call.

Agent node label quoter, version 1.0.0.

Capabilities

CapabilityKindSignatureModuleSummary
flaky_priceskill(origin: str, destination: str, fail: bool = False) -> dictexamples/python/features/serverless/agent.pyFails with a non-retryable envelope when asked, to show the failure path.
priceskill(origin: str, destination: str, nights: int = 1) -> dictexamples/python/features/serverless/agent.pyFixture pricing: deterministic, no supplier call.
quotetraversal(legs: list[dict]) -> dictexamples/python/features/serverless/agent.pyPrice every leg as a nested child; cache repeats; admit calls per node.

Commands

Taken from this example's own README and module docstrings.

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__.py
  • examples/python/features/serverless/agent.py
  • examples/python/features/serverless/agentnode.yaml
  • examples/python/features/serverless/invoke.py
ATFGraph documentationHosted workflow · Framework reference