Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mosaic_ui_schema-1.0.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

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

Hashes for mosaic_ui_schema-1.0.0.tar.gz
Algorithm Hash digest
SHA256 63a79eeb53566066c04232ee1d659ef13a7fbb8947318a2bae23542cc1ef8813
MD5 0cff5f6f98cfd1b6425017503e81988d
BLAKE2b-256 0de6f93cd8121b196299b1ab581d9f5df0e6d794e02ec36b6ad0e797adff58b8

See more details on using hashes here.

File details

Details for the file mosaic_ui_schema-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mosaic_ui_schema-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bcd0a887de61ff209ee53bae9d031de3091fde96ec21077f604d7d625e6c87e9
MD5 34ab5e0b481a3ec01a683fcfdbad2058
BLAKE2b-256 d1ea453397137e12c78801087f2d1f4ce015418d4afdef179fd0b5da86cddb9c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page