RuntimeClient#
- class tierkreis.client.runtime_client.RuntimeClient[source]#
Bases:
ABC
Abstract class for clients which can run tierkreis graphs on a runtime.
Methods
Get the signature of functions available on the runtime.
Execute a tierkreis graph on the runtime.
Type check a tierkreis graph on the runtime against the runtime signature.
Attributes
Whether the runtime supports type-checking graphs.
- abstract async get_signature() Signature [source]#
Get the signature of functions available on the runtime.
- abstract async run_graph(graph: TierkreisGraph, /, **py_inputs: Any) Dict[str, TierkreisValue] [source]#
Execute a tierkreis graph on the runtime. Inputs are taken as keyword arguments and each keyword argument must match an input port of the graph. Non-tierkreis values will be converted to tierkreis values if possible.
- abstract async type_check_graph(graph: TierkreisGraph) TierkreisGraph [source]#
Type check a tierkreis graph on the runtime against the runtime signature.