common.utils

Small helpers shared across the agent packages.

Functions

require_absolute_path(value)

Return value as an absolute Path.

common.utils.require_absolute_path(value)[source]

Return value as an absolute Path.

Relative paths are rejected: they are ambiguous without an anchor, and the config loader resolves them against the config file’s location before the config models see them.

Parameters:

value (str | Path) – The path to check.

Returns:

The same path, as an absolute Path.

Return type:

Path

Raises:

ValueError – If value is not absolute.