xemantic-ai-tool-schema - AI Developer Tools Tool
Overview
xemantic-ai-tool-schema is an open-source Kotlin multiplatform library that generates JSON Schema from kotlinx.serialization-marked Kotlin classes, enabling seamless function-calling/tool-use workflows for LLMs. The library converts @Serializable Kotlin data classes and enums into a JSON Schema representation (including title, description, formats, patterns, min/max lengths and enum values), so responses from model-driven tool-calls can be deserialized directly into Kotlin types without manual schema authoring. ([github.com](https://github.com/xemantic/xemantic-ai-tool-schema)) The project targets agentic AI use cases (examples include xemantic's anthropic-sdk-kotlin and the Claudine agent) where strict, versioned schemas are needed to validate and parse model outputs. It includes features for JVM-only specifics (Java BigDecimal serialization to string with additional schema metadata), supports sealed hierarchies and common Kotlin annotations, and is distributed via Maven/Gradle as a library artifact (current published coordinate referenced in the README: com.xemantic.ai:xemantic-ai-tool-schema). The README and tests include concrete usage examples (jsonSchemaOf<T>()), making it straightforward to integrate the generated schema into OpenAI/Anthropic function-calling or similar structured-output APIs. ([github.com](https://github.com/xemantic/xemantic-ai-tool-schema))
GitHub Statistics
- Stars: 50
- Forks: 2
- Contributors: 3
- License: Apache-2.0
- Primary Language: Kotlin
- Last Updated: 2026-01-29T19:19:48Z
- Latest Release: v1.2.0
The repository is actively maintained as a small, focused library: the GitHub project shows ~95 commits, 50 stars, 2 forks, and 5 contributors, with a history of regular releases (latest tagged v1.2.0). Activity includes periodic dependency and CI updates and incremental features (support for sealed hierarchies, fallback formats, Kotlin/Gradle updates) surfaced in release notes. ([github.com](https://github.com/xemantic/xemantic-ai-tool-schema)) Issues and pull requests are modest in number (a few open issues and small PRs), which indicates a compact contributor base and lower-volume community traffic — suitable for teams that want a lightweight, stable schema generator rather than a large ecosystem package. The project uses Apache-2.0 licensing and publishes artifacts compatible with standard JVM/Kotlin packaging workflows. ([github.com](https://github.com/xemantic/xemantic-ai-tool-schema))
Installation
Install via docker:
git clone https://github.com/xemantic/xemantic-ai-tool-schema.gitcd xemantic-ai-tool-schema./gradlew buildAdd to your Gradle build.gradle.kts dependencies: implementation("com.xemantic.ai:xemantic-ai-tool-schema:1.2.0") Key Features
- Generate JSON Schema from Kotlin @Serializable classes with jsonSchemaOf<T>().
- Preserve metadata: @Title, @Description, @Format, @Pattern, min/max length constraints.
- Kotlin multiplatform support for JVM and non-JVM targets.
- JVM-specific BigDecimal serialization to string with schema description and pattern.
- Designed for LLM function-calling workflows (OpenAI/Anthropic-compatible schemas).
Community
The project has a small but active contributor base and conservative issue/PR volume, making it stable for integration into other Xemantic agent projects. It is used and referenced by Xemantic's other agent tooling and documented on the organisation site; releases and changelogs are published on GitHub (latest tag v1.2.0). Community feedback is mainly tracked via GitHub issues and PRs rather than broad third-party review coverage. ([github.com](https://github.com/xemantic/xemantic-ai-tool-schema))
Key Information
- Category: Developer Tools
- Type: AI Developer Tools Tool