ums.utils.schema
This represents the basic types used for representing extracted information from the data. The types are implemented using pydantic. It provides validation, allow JSON serialization and works well with FastAPI which is used internally for the http request between the agents and the management.
1# Agenten Plattform 2# 3# (c) 2024 Magnus Bender 4# Institute of Humanities-Centered Artificial Intelligence (CHAI) 5# Universitaet Hamburg 6# https://www.chai.uni-hamburg.de/~bender 7# 8# source code released under the terms of GNU Public License Version 3 9# https://www.gnu.org/licenses/gpl-3.0.txt 10 11""" 12 This represents the basic types used for representing extracted information from the data. 13 The types are implemented using [pydantic](https://docs.pydantic.dev/). 14 It provides validation, allow JSON serialization and works well with [FastAPI](https://fastapi.tiangolo.com/) which is used internally for the http request between the agents and the management. 15 16""" 17 18from enum import Enum 19 20from typing import List, Any 21 22from pydantic import BaseModel 23 24class ExtractionSchema(BaseModel): 25 """ 26 This is the basic class used as superclass for all extracted information from data items. 27 """
class
ExtractionSchema(pydantic.main.BaseModel):
25class ExtractionSchema(BaseModel): 26 """ 27 This is the basic class used as superclass for all extracted information from data items. 28 """
This is the basic class used as superclass for all extracted information from data items.
Inherited Members
- pydantic.main.BaseModel
- BaseModel
- model_extra
- model_fields_set
- model_construct
- model_copy
- model_dump
- model_dump_json
- model_json_schema
- model_parametrized_name
- model_post_init
- model_rebuild
- model_validate
- model_validate_json
- model_validate_strings
- dict
- json
- parse_obj
- parse_raw
- parse_file
- from_orm
- construct
- copy
- schema
- schema_json
- validate
- update_forward_refs