londonaicentre-mesa-types 2.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,8 @@
1
+ Metadata-Version: 2.4
2
+ Name: londonaicentre-mesa-types
3
+ Version: 2.0.0
4
+ Summary: MESA types
5
+ Author-email: "Dr. Joe Zhang" <jzhang@nhs.net>, Sophie Ratkai <s.ratkai@nhs.net>, Martin Chapman <contact@martinchapman.co.uk>
6
+ License-Expression: CC-BY-NC-ND-4.0
7
+ Requires-Python: >=3.12
8
+ Requires-Dist: pydantic>=2.12.5
@@ -0,0 +1,24 @@
1
+ [project]
2
+ name = "londonaicentre-mesa-types"
3
+ description = "MESA types"
4
+ authors = [
5
+ { name = "Dr. Joe Zhang", email = "jzhang@nhs.net" },
6
+ { name = "Sophie Ratkai", email = "s.ratkai@nhs.net" },
7
+ { name = "Martin Chapman", email = "contact@martinchapman.co.uk" },
8
+ ]
9
+ version = "2.0.0"
10
+ requires-python = ">=3.12"
11
+ license = "CC-BY-NC-ND-4.0"
12
+ dependencies = [
13
+ "pydantic>=2.12.5",
14
+ ]
15
+ [build-system]
16
+ requires = ["setuptools>=80.9.0"]
17
+ build-backend = "setuptools.build_meta"
18
+ [tool.setuptools]
19
+ package-data = {"mesa_types" = ["py.typed"]}
20
+ [dependency-groups]
21
+ dev = [
22
+ "mypy>=1.18.2",
23
+ "ruff>=0.14.6",
24
+ ]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,8 @@
1
+ Metadata-Version: 2.4
2
+ Name: londonaicentre-mesa-types
3
+ Version: 2.0.0
4
+ Summary: MESA types
5
+ Author-email: "Dr. Joe Zhang" <jzhang@nhs.net>, Sophie Ratkai <s.ratkai@nhs.net>, Martin Chapman <contact@martinchapman.co.uk>
6
+ License-Expression: CC-BY-NC-ND-4.0
7
+ Requires-Python: >=3.12
8
+ Requires-Dist: pydantic>=2.12.5
@@ -0,0 +1,10 @@
1
+ pyproject.toml
2
+ src/londonaicentre_mesa_types.egg-info/PKG-INFO
3
+ src/londonaicentre_mesa_types.egg-info/SOURCES.txt
4
+ src/londonaicentre_mesa_types.egg-info/dependency_links.txt
5
+ src/londonaicentre_mesa_types.egg-info/requires.txt
6
+ src/londonaicentre_mesa_types.egg-info/top_level.txt
7
+ src/mesa_types/__init__.py
8
+ src/mesa_types/document.py
9
+ src/mesa_types/py.typed
10
+ src/mesa_types/training_example.py
@@ -0,0 +1,6 @@
1
+ """MESA types and data models."""
2
+
3
+ from mesa_types.training_example import TrainingExample
4
+ from mesa_types.document import Document
5
+
6
+ __all__ = ["TrainingExample", "Document"]
@@ -0,0 +1,23 @@
1
+ """
2
+ document.py
3
+
4
+ Data model for document JSONs
5
+ """
6
+
7
+ from pydantic import BaseModel
8
+
9
+
10
+ class Document(BaseModel):
11
+ """
12
+ This is the standard format for documents in MESA documents,
13
+ used as input for training data generation.
14
+
15
+ Attributes:
16
+ content: document text content
17
+ source: descriptive source identifier (e.g., "docsynth-oncology", "wikipedia-paragraphs")
18
+ timestamp: creation timestamp
19
+ """
20
+
21
+ content: str
22
+ source: str
23
+ timestamp: str
@@ -0,0 +1,12 @@
1
+ """Standard training example document type."""
2
+
3
+ from typing import Any
4
+
5
+ from pydantic import BaseModel
6
+
7
+
8
+ class TrainingExample(BaseModel):
9
+ """Standard structure for schema training examples."""
10
+
11
+ content: str
12
+ output: dict[str, Any]