undatum 1.0.17__py2.py3-none-any.whl

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.
undatum/ai/schemas.py ADDED
@@ -0,0 +1,42 @@
1
+ """JSON Schema definitions for structured AI output."""
2
+
3
+ # Schema for field descriptions response
4
+ FIELD_INFO_SCHEMA = {
5
+ "type": "object",
6
+ "properties": {
7
+ "fields": {
8
+ "type": "array",
9
+ "items": {
10
+ "type": "object",
11
+ "properties": {
12
+ "name": {
13
+ "type": "string",
14
+ "description": "The name of the field"
15
+ },
16
+ "description": {
17
+ "type": "string",
18
+ "description": "A clear, concise description of what this field represents"
19
+ }
20
+ },
21
+ "required": ["name", "description"],
22
+ "additionalProperties": False
23
+ }
24
+ }
25
+ },
26
+ "required": ["fields"],
27
+ "additionalProperties": False
28
+ }
29
+
30
+ # Schema for dataset description (simple string response)
31
+ # For providers that support JSON Schema, we can use a simple object wrapper
32
+ DATASET_DESCRIPTION_SCHEMA = {
33
+ "type": "object",
34
+ "properties": {
35
+ "description": {
36
+ "type": "string",
37
+ "description": "A concise description of the dataset"
38
+ }
39
+ },
40
+ "required": ["description"],
41
+ "additionalProperties": False
42
+ }
@@ -0,0 +1,6 @@
1
+ # -*- coding: utf8 -*-
2
+ """Command modules for undatum CLI operations.
3
+
4
+ This package contains command implementations for various undatum operations
5
+ including conversion, analysis, validation, schema generation, and more.
6
+ """