Skip to content

Bridge

BridgeMetadata

Bases: TypedDict

Type definition for bridge metadata.

Attributes:

Name Type Description
bridge_version str

The version of the bridge.

framework str

The framework name.

compatible_versions CompatibleVersions

Version bounds for compatibility.

method_name str

The method name associated with the bridge.

Source code in src/fed_rag/data_structures/bridge.py
class BridgeMetadata(TypedDict):
    """Type definition for bridge metadata.

    Attributes:
        bridge_version: The version of the bridge.
        framework: The framework name.
        compatible_versions: Version bounds for compatibility.
        method_name: The method name associated with the bridge.
    """

    bridge_version: str
    framework: str
    compatible_versions: CompatibleVersions
    method_name: str

CompatibleVersions

Bases: TypedDict

Type definition for compatible versions.

Defines optional, inclusive version bounds for compatibility checks.

Attributes:

Name Type Description
min str

Minimum compatible version (inclusive).

max str

Maximum compatible version (inclusive).

Source code in src/fed_rag/data_structures/bridge.py
class CompatibleVersions(TypedDict, total=False):
    """Type definition for compatible versions.

    Defines optional, inclusive version bounds for compatibility checks.

    Attributes:
        min: Minimum compatible version (inclusive).
        max: Maximum compatible version (inclusive).
    """

    min: str
    max: str