Skip to content

trulens.core.otel.client_hooks.clients

trulens.core.otel.client_hooks.clients

Client plugin contracts and discovery for coding-agent hooks.

Classes

FieldAliases dataclass

Native payload field aliases consumed by the shared normalizer.

ClientSpec dataclass

Minimal native client contract supplied by plugin packages.

Functions
build_config
build_config(command: str) -> Mapping[str, Any]

Build this client's native hook configuration fragment.

build_plugin
build_plugin(
    command: str, client_version: Optional[str] = None
) -> Optional[str]

Build a native plugin source file when this client is not JSON-hooks.

detect_version
detect_version() -> Optional[str]

Detect the installed native client version when supported.

Functions

register_client

register_client(spec: ClientSpec) -> ClientSpec

Register a client specification and all of its aliases.

get_client

get_client(name: str) -> ClientSpec

Return an installed client specification by name or alias.

list_clients

list_clients() -> Tuple[ClientSpec, ...]

List installed client specifications without duplicate aliases.