Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /mlflow-oidc_mlflow-oidc-auth /mlflow_oidc_auth /models /prompt.py
| from pydantic import BaseModel, Field | |
| class PromptPermission(BaseModel): | |
| """ | |
| Model for creating or updating a prompt permission. | |
| Parameters: | |
| ----------- | |
| permission : str | |
| The permission level to grant (e.g., "READ", "WRITE", "MANAGE"). | |
| """ | |
| permission: str = Field(..., description="Permission level for the prompt") | |
| class PromptRegexCreate(BaseModel): | |
| """ | |
| Model for creating or updating a regex-based prompt permission. | |
| Parameters: | |
| ----------- | |
| regex : str | |
| Regular expression pattern to match prompt names. | |
| priority : int | |
| Priority of this rule (lower numbers = higher priority). | |
| permission : str | |
| The permission level to grant. | |
| """ | |
| regex: str = Field(..., description="Regex pattern to match prompts") | |
| priority: int = Field(..., description="Priority of the permission rule") | |
| permission: str = Field(..., description="Permission level for matching prompts") | |
Xet Storage Details
- Size:
- 967 Bytes
- Xet hash:
- 45a58a3501459ee0bab893d66dcc0e6494c97b13925f0c4249a00cdd5f144312
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.