Template schema and validation for Mosaic UI SDK
Project description
mosaic-ui-schema
Template schema and validation for mosaic-ui-sdk.
Provides Pydantic v2 models, JSON Schema export, and validation utilities for producing valid Mosaic UI template JSON.
Install
pip install mosaic-ui-schema
Usage
Function Calling / Tool Use
from mosaic_ui_schema import get_template_schema
schema = get_template_schema()
# Pass schema as tool parameters to LLM
Validate LLM output
from mosaic_ui_schema import validate, to_json
template = validate(llm_output_dict)
json_str = to_json(template) # Send to SDK
Single slot schema (for step-by-step generation)
from mosaic_ui_schema import get_slot_schema
table_schema = get_slot_schema("table")
form_schema = get_slot_schema("form")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mosaic_ui_schema-1.0.0.tar.gz
(24.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mosaic_ui_schema-1.0.0.tar.gz.
File metadata
- Download URL: mosaic_ui_schema-1.0.0.tar.gz
- Upload date:
- Size: 24.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63a79eeb53566066c04232ee1d659ef13a7fbb8947318a2bae23542cc1ef8813
|
|
| MD5 |
0cff5f6f98cfd1b6425017503e81988d
|
|
| BLAKE2b-256 |
0de6f93cd8121b196299b1ab581d9f5df0e6d794e02ec36b6ad0e797adff58b8
|
File details
Details for the file mosaic_ui_schema-1.0.0-py3-none-any.whl.
File metadata
- Download URL: mosaic_ui_schema-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bcd0a887de61ff209ee53bae9d031de3091fde96ec21077f604d7d625e6c87e9
|
|
| MD5 |
34ab5e0b481a3ec01a683fcfdbad2058
|
|
| BLAKE2b-256 |
d1ea453397137e12c78801087f2d1f4ce015418d4afdef179fd0b5da86cddb9c
|