nallwhy

nallwhy

LangSchema is an Elixir library that helps developers create provider-agnostic schemas for AI model integration. It abstracts away the differences between various AI providers, making it easier to switch between them without modifying your core schema definitions.

Key Features

  • Abstract Schema: Provides a flexible, unified schema format that can be converted to provider-specific JSON schemas.
  • Extensible Converters: Easily add support for new AI providers by implementing the LangSchema.Converter behaviour.
  • Direct Integration: Compatible with Elixir LangChain, allowing seamless integration without extensive modification.

Why Use LangSchema?

As the AI landscape rapidly evolves, developers often need to switch between different providers like OpenAI, Gemini, or emerging alternatives. However, each provider has its own JSON schema requirements, making it cumbersome to adjust schemas every time you switch models. LangSchema addresses this by introducing an intermediate, provider-agnostic schema format, allowing you to define your data structures once and reuse them across different providers with minimal modification. This not only simplifies your code but also significantly reduces the friction when experimenting with or integrating new AI models.

Moreover, LangSchema is designed with extensibility in mind. You can easily create custom converters to handle provider-specific quirks or special requirements, ensuring that your schema can evolve alongside the rapidly changing AI ecosystem. This flexibility makes it an ideal choice for developers who need full control over their schema definitions.

Built-in Supported Converters

  • OpenAI
  • Gemini

For more information, check out the repository:

https://github.com/nallwhy/lang_schema

Where Next? Top

Trending in Announcing Top

woylie
Flop is an Elixir library that applies filtering, ordering and pagination parameters to your Ecto queries. offset-based pagination with...
New
MRdotB
I needed to reuse React components from my Chrome extension in my Phoenix/LiveView backend. I noticed that for Svelte/Vue, there are live...
New
woylie
I released Doggo, a collection of unstyled Phoenix components. https://github.com/woylie/doggo Features Unstyled Phoenix components....
New
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
anuaralfetahe
Hello Published a new library - ProcessHub! ProcessHub is a library designed to manage process distribution within the Elixir cluster. ...
New
rodloboz
I’ve started working on a new library to run SQL queries and do basic business intelligence. Think “Blazer for Elixir.” Currently it fe...
New

Other Trending Topics Top

mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New
AstonJ
This showed up on my feed.. anyone heard of it? Just hype? Ox Alpha is a reasoning model designed for coding, sustained ag...
New
bartblast
Hey folks, I just published a post about Hologram’s funding and where the project goes next - the short version: Curiosum as Main Spons...
New
CodeSync
:microphone: ElixirConf 2026 - Call for Talks is open! We’re heading to Chicago :united_states: :round_pushpin: In person + virtual :d...
New
Null-logic-0
What IDE or editor are you using for Elixir development? Personally, I use Zed, and I really like it, but sometimes I wish there were a ...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews