MCPcopy Create free account
hub / github.com/dataease/SQLBot / AssistantValidator

Class AssistantValidator

backend/apps/system/schemas/system_schema.py:129–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127
128
129class AssistantValidator(BaseModel):
130 valid: bool = False
131 id_match: bool = False
132 domain_match: bool = False
133 token: Optional[str] = None
134
135 def __init__(
136 self,
137 valid: bool = False,
138 id_match: bool = False,
139 domain_match: bool = False,
140 token: Optional[str] = None,
141 **kwargs
142 ):
143 super().__init__(
144 valid=valid,
145 id_match=id_match,
146 domain_match=domain_match,
147 token=token,
148 **kwargs
149 )
150
151
152class WorkspaceUser(UserEditor):

Callers 1

validatorFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected