Skip to content

Condition

Union Type

Condition module-attribute

A condition that determines when a gateway rule applies. Conditions can match on principals, request paths, or the requested model.

Union Member Types

ConditionMatchPrincipals dataclass

Bases: _SerdeShape

A condition that matches on the identity of the caller making the request.

Attributes

value instance-attribute

ConditionMatchPaths dataclass

Bases: _SerdeShape

A condition that matches on the request path.

Attributes

value instance-attribute
value: MatchPaths

ConditionMatchModels dataclass

Bases: _SerdeShape

A condition that matches on the model requested in an inference request.

Attributes

value instance-attribute
value: MatchModels

ConditionUnknown dataclass

Bases: _SerdeShape

Represents an unknown variant. If you receive this value, you will need to update your library to receive the parsed value. This value may not be deliberately sent.

Attributes

tag instance-attribute
tag: str