Skip to navigation

nemoguardrails.server.experimental.provider.endpoint

View as MarkdownOpen in Claude

Declare provider endpoints handled by the guarded JSON pipeline.

Module Contents

Classes

NameDescription
GuardedJsonEndpointDescribe one provider route and the content fields it guards.

API

class nemoguardrails.server.experimental.provider.endpoint.GuardedJsonEndpoint(
route_path: str,
operation_name: str,
operation: str,
unsupported_request_code: str,
unsupported_response_code: str,
provider_operation_id: str,
contract_name: str | None = None,
method: str = 'POST',
operation_paths: tuple[nemoguardrails.server.experimental._http_paths.GuardedOperationPath, ...] = ()
)
Dataclass

Describe one provider route and the content fields it guards.

api_revision
ProviderApiRevisionBinding | None = None
contract_name
str | None = None
guarded_request_model
type[GuardedRequestModel]
guarded_response_model
type[GuardedPayloadModel]
method
str = 'POST'
operation
str
operation_name
str
operation_paths
tuple[GuardedOperationPath, ...] = ()
provider_operation_id
str
route_path
str
stream
StreamBinding | None = None
unsupported_request_code
str
unsupported_response_code
str
nemoguardrails.server.experimental.provider.endpoint.GuardedJsonEndpoint.__post_init__() -> None

Validate the route, projections, and shared capability profile.