Connect all your data sources seamlessly to your AI agents with pre-built, language and format agnostic, data connectors
1users: [
2 {
3 name: "Joe Schmo", // commas or semi-colons accepted, but optional
4 cm height: 6ft + 1in // Stof adds units and declarations as expressions
5 age: +32; // trailing commas or semi-colons are okay
6 }, // trailing commas in arrays are okay
7]
8
9fn getJoe(): obj { // Stof adds data types (casting, etc..)
10 for (user in self.users) {
11 if (user.name.toLower().contains("joe")) return user;
12 }
13 return null;
14}
15
16#[main]
17fn main() {
18 let joe = self.getJoe();
19 pln(stringify(joe, 'toml')); // any format loaded into the doc (parse too)
20}
Use the Formata platform with Stof, our open-source data interface that was created to simplify data handling, ensuring safe, high-quality, and accessible data that is ready for your application and users.
View our open-source website for more information about the project and how you to join the community of developers using and contributing to Stof.