client.guardrails
client.guardrails — the guardrails operations.
On AsyncKindgi every method is the same, awaited.
client.guardrails.list()
Section titled “client.guardrails.list()”list( *, limit: int | None = None, cursor: str | None = None, name: str | None = None, scope_kind: Literal['tenant', 'org', 'project'] | None = None, scope_id: str | None = None, inherit: bool | None = None, timeout: float | None = None,) -> GuardrailCollectionPageList guardrails. GET /v1/guardrails
Cursor-paginated list of registered guardrails. Optional ?name= filters by prefix on guardrail id.
client.guardrails.register()
Section titled “client.guardrails.register()”register( *, idempotency_key: str | None = None, timeout: float | None = None, **fields: Any,) -> RegisterGuardrailResultRegister an guardrail. POST /v1/guardrails
Body is a full Guardrail shape. Server validates via @kindgi/guardrails.validateGuardrailSpec. The check id must reference an implementation already available to the runtime; check code is not uploaded through this route.
client.guardrails.get()
Section titled “client.guardrails.get()”get(*, timeout: float | None = None) -> GuardrailFetch an guardrail. GET /v1/guardrails/{guardrailId}
client.guardrails.unregister()
Section titled “client.guardrails.unregister()”unregister( *, idempotency_key: str | None = None, timeout: float | None = None,) -> UnregisterGuardrailResultUnregister an guardrail. POST /v1/guardrails/{guardrailId}/unregister