inspect_flow.api
Python API
ConfigOptions
Options for loading a configuration file.
class ConfigOptions(TypedDict, total=False)config
Print the flow job configuration.
def config(
job: FlowJob,
resolve: bool = False,
) -> NonejobFlowJob-
The flow job configuration.
resolvebool-
If True, resolve the configuration before printing.
load_job
Load a job file and apply any overrides.
def load_job(file: str, **kwargs: Unpack[ConfigOptions]) -> FlowJobfilestr-
The path to the job configuration file.
**kwargsUnpack[ConfigOptions]-
Configuration options. See ConfigOptions for available parameters.
run
Run an inspect_flow evaluation.
def run(
job: FlowJob,
dry_run: bool = False,
) -> NonejobFlowJob-
The flow job configuration.
dry_runbool-
If True, do not run eval, but show a count of tasks that would be run.