RuntimeClient#

class tierkreis.client.runtime_client.RuntimeClient[source]#

Bases: ABC

Abstract class for clients which can run tierkreis graphs on a runtime.

Methods

get_signature

Get the signature of functions available on the runtime.

run_graph

Execute a tierkreis graph on the runtime.

type_check_graph

Type check a tierkreis graph on the runtime against the runtime signature.

Attributes

can_type_check

Whether the runtime supports type-checking graphs.

property can_type_check: bool#

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.