Skip to main content
Version: 3.4.0-rc.1

cmind/cluster/tenants/v1/internal_tenant_service.proto

Package: cmind.cluster.tenants.v1

Messages​

GetContentCaptureRequest​

FieldTypeNumberDescription
tenantIdstring1
userIdstring2user_id is the caller of the request the gateway is about to capture — this endpoint answers "is capture on for this specific caller," never "for the tenant." This service is unauthenticated (no principal of its own to derive it from), so the gateway supplies it explicitly.

GetContentCaptureResponse​

FieldTypeNumberDescription
enabledbool1

GetChatInstructionsRequest​

FieldTypeNumberDescription
tenantIdstring1

GetChatInstructionsResponse​

FieldTypeNumberDescription
instructionsstring1The resolved instructions. Empty means the tenant explicitly omitted the tenant component; the gateway must not substitute the platform baseline.

Services​

InternalTenantService​

InternalTenantService exposes cluster-internal, unauthenticated tenant reads consumed by other in-namespace services. The model gateway calls it on the /v1/responses hot path to learn whether the caller of that request has personally opted into content capture for the tenant, and to fetch a tenant's resolved chat instructions for Chat-mode composition. As with every internal_service, network policy (Istio AuthorizationPolicy) must restrict access.

GetContentCapture​

POST /cmind.cluster.tenants.v1.InternalTenantService/GetContentCapture

Returns whether content capture is enabled for user_id's own requests in the tenant (off if unset — false for most users, who never opt in).

Request: GetContentCaptureRequest

Response: GetContentCaptureResponse

GetChatInstructions​

POST /cmind.cluster.tenants.v1.InternalTenantService/GetChatInstructions

Returns the tenant's resolved chat instructions for the gateway: the platform baseline when the tenant is unset, its explicit empty string when it omitted the tenant component, or its custom text. The gateway composes this into direct-model Chat requests; preset agents never consult it.

Request: GetChatInstructionsRequest

Response: GetChatInstructionsResponse