Vibelang-rs
A Rust implementation of the Vibelang protocol. Use Meaning Typed Prompting to create your AI Agents from a verified and validated source definition. From formal definition to safe code for agents deployment:
Try Vibelang (mockup):
// A comprehensive example showcasing various Meaning-Oriented Programming (MTP) features using Vibelang.
// Comments are just for explanation purposes, they are not part of the protocol and can be omitted.
// These types tell the compiler and runtime what the data represents.
type Population = Meaning<Int>("population count in millions");
type HistoricalFact = Meaning<String>("historical information");
type YearFounded = Meaning<Int>("year when established");
type GeographicInfo = Meaning<String>("geographic description");
// --- VibeLang Functions ---
// Functions for knowledge retrieval about a country
fn get_population(country: String) -> Population {
prompt "What is the current population of {country} in millions? Reply with just the number.";
}
// Note: This function uses a raw String return type without a specific Meaning.
fn get_capital(country: String) -> String {
prompt "What is the capital city of {country}? Reply with just the city name.";
}
fn get_founding_year(country: String) -> YearFounded {
prompt "In what year was {country} founded or established as a nation? Reply with just the year.";
}
// Function to get information about a person or landmark
fn get_historical_fact(person: String) -> HistoricalFact {
prompt "Tell me one interesting historical fact about {person}. Keep it to one sentence.";
}
fn get_geographic_info(landmark: String) -> GeographicInfo {
prompt "Describe the geographic location and features of {landmark} in one sentence.";
}
// Function for text analysis
fn analyze_sentiment(text: String) -> Meaning<String>("emotional sentiment") {
prompt "Analyze the emotional sentiment of this text: '{text}'. Reply with either 'positive', 'negative', or 'neutral'.";
}
// Function for simple calculation
fn calculate_age(birth_year: Int) -> Meaning<Int>("age calculation") {
prompt "If someone was born in {birth_year}, how old would they be in 2025? Reply with just the number.";
}
Github
Try agentic programming with Vibelang in Rustโdefine LLM agents, workflows, and interactions using Meaning Typed Prompting (MTP). The project enables precise, annotated payloads for reliable and explainable agent creation. Powered by Rustโs speed, safety, and clarity.
Visit Vibelang-rs on GitHub If you find the project useful or inspiring, please star the repository to help grow the research and its open-source community!