soda-ai
v1.0.5
Published
schema driven agentic ai
Readme
Welcome to SODA-AI!

Note: This is just a pet-project / PoC at the moment. If you find it useful, have suggestions for improvements, or want to help please reach out.
SODA-AI stands for Schema Object Driven Agentic AI.
Getting started
1. Install
2. Define a schema and function
import z from "zod";
import { soda } from "soda-ai";
import { myModel } from "./myModel";
const schema = {
action: "translate the text into the given language",
inputs: z.object({
text: z.string(),
language: z.string(),
}),
outputs: z.object({
translation: z.string(),
}),
};
export const translate = soda(myModel, schema);3. Call it
const response = await translate({
text: '좋은 아침이에요',
language: "English"
});
console.log(response.translation);
> Good morning!Read more on Github.
