Documentation Index
Fetch the complete documentation index at: https://docs.lucid.foundation/llms.txt
Use this file to discover all available pages before exploring further.
Gateway (TrustGate)
Lucid’s Gateway, also known as TrustGate, is responsible for plan-based quota enforcement and feature gating. This ensures that users have access to the appropriate features and resources based on their subscription plan.Plan Definitions
Lucid offers several plans, each with specific quotas and feature access. Below is a summary of the available plans:| Plan | Requests/day | Tool calls/day | Features | Use case |
|---|---|---|---|---|
free | 1,000 | 500 | None | Default for new tenants |
pro | 50,000 | 25,000 | chains, plugins, streaming | Paying customers |
growth | 500,000 | 250,000 | + custom_servers, priority_support | High-volume |
internal | Unlimited | Unlimited | All features | Platform team only |
Enforcing Policies and Quotas
The Gateway uses two main functions to manage plan-based access:-
enforcePolicyAsync(): This function checks the feature gates associated with each plan. It ensures that users can only access the features included in their plan. -
assertWithinQuotaAsync(): This function enforces the request and tool call quotas for each plan. It ensures that users do not exceed their daily limits. Note that this quota enforcement is skipped for users on theinternalplan, which has unlimited access.
Feature Gates
The following features are controlled by the plan-based feature gates:- chains: Access to chain-related functionalities.
- plugins: Ability to use various plugins.
- streaming: Access to streaming capabilities.
- custom_servers: Option to use custom servers, available in the
growthplan. - priority_support: Access to priority support, available in the
growthplan. - admin: Administrative features, typically reserved for internal use.
.png?fit=max&auto=format&n=VsjUqn6fLqEhBiuI&q=85&s=8b4c7e6431e9a6af1ef23b77bb4ff5fd)
.png?fit=max&auto=format&n=VsjUqn6fLqEhBiuI&q=85&s=d5651a45e4bfbabc33f74e146af3f94a)