graphai.api.common.schemas module
- class graphai.api.common.schemas.TaskIDResponse(*, task_id: str)
Bases:
BaseModel
Object representing the output of the /ontology/tree endpoint.
- task_id: str
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class graphai.api.common.schemas.TaskStatusResponse(*, task_id: str, task_name: str | None = None, task_status: str, task_result: BaseModel)
Bases:
BaseModel
,ABC
- task_id: str
- task_name: str | None
- task_status: str
- task_result: BaseModel
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class graphai.api.common.schemas.FileRequest(*, token: str)
Bases:
BaseModel
- token: str
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class graphai.api.common.schemas.TokenStatus(*, active: bool = False, fingerprinted: bool = False)
Bases:
BaseModel
- active: bool
- fingerprinted: bool
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].