๐Ÿš€ YoMo LLM Function Calling Examples

October 23, 2025 ยท View on GitHub

Build powerful AI agents with the best open-source serverless function calling framework.

This repository showcases real-world examples of LLM Function Calling using YoMo - the fastest, most developer-friendly way to create serverless functions that your AI agents can call.

Why YoMo for AI Agent Development?

๐ŸŽฏ Built for AI Agents

  • Type-Safe Development: Write functions in TypeScript or Go with full type safety
  • LLM-Ready: Functions automatically generate JSON schemas for seamless LLM integration
  • Real-Time Performance: Ultra-low latency for responsive AI interactions

๐Ÿ”„ Write Once, Run Anywhere

  • Multi-Model Support: Works with OpenAI, Claude, Llama, Mistral, Azure OpenAI, and more
  • Provider Flexibility: Switch between LLM providers without changing your functions
  • No Vendor Lock-in: Deploy on any cloud or self-host

โšก Developer Experience

# Install YoMo CLI
curl -fsSL https://get.yomo.run | sh

# Run any example
cd node-tool-get-weather
yomo run -n get-weather

๐ŸŒ Production Ready

  • Geo-Distributed: Deploy globally for low latency worldwide
  • Auto-Scaling: Handle any load automatically
  • Self-Hosting: Full control over your infrastructure

Quick Start

Try it in 2 minutes:

  1. Clone and run an example:
git clone https://github.com/yomorun/llm-function-calling-examples.git
cd llm-function-calling-examples/node-tool-get-weather
yomo run -n get-weather
  1. Test with your LLM:

You can grab a free account on vivgrid.com to build your AI Agent:

curl https://api.vivgrid.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <your-vivgrid.com-token>" \
  -d '{
    "messages": [{"role": "user", "content": "What's the weather in Tokyo?"}]
  }'

That's it! Your AI agent now has weather capabilities.

๐Ÿ“š Function Examples

Explore real-world serverless functions organized by category:

๐ŸŒฆ๏ธ Weather & Location

FunctionLanguageDescription
node-tool-get-weatherTypeScriptGet weather by city using OpenWeatherMap API
node-tool-get-weather-google-apiTypeScriptGet weather using Google Weather API
golang-tool-get-weatherGoWeather information with geo-coordinates
node-tool-get-utc-timeTypeScriptGet UTC time by city name
golang-tool-get-utc-timeGoUTC time lookup
golang-tool-timezone-calculatorGoCalculate timezone for specific time

๐Ÿ’ฐ Financial & Data

FunctionLanguageDescription
node-tool-currency-converterTypeScriptReal-time currency conversion
golang-tool-currency-converterGoCurrency calculator with live rates

๐Ÿ” Web Search & Network

FunctionLanguageDescription
node-tool-exa-web-searchTypeScriptSearch using Exa
node-tool-google-web-searchTypeScriptSearch using Google Custom Search
node-tool-tavily-web-searchTypeScriptWeb search via Tavily
node-tool-duckduckgo-web-searchTypeScriptPrivacy-focused DuckDuckGo search
node-tool-get-ip-and-latencyTypeScriptGet IP and latency for websites
golang-tool-get-ip-and-latencyGoNetwork diagnostics with ping

๐Ÿ“ง Communication

FunctionLanguageDescription
node-tool-send-mail-smtpTypeScriptSend email via SMTP with nodemailer
node-tool-send-mail-resendTypeScriptModern email via Resend API
golang-tool-send-mail-smtpGoEmail sending with Go SMTP
golang-tool-send-mail-resendGoResend integration for Go

๐Ÿ—„๏ธ Database

FunctionLanguageDescription
node-tool-postgres-dbTypeScriptPostgreSQL database operations

๐Ÿ’ก How It Works

Each example demonstrates the YoMo pattern:

TypeScript Functions:

// 1. Define what your function does
export const description = 'Get current weather for a city'

// 2. Define typed arguments
export type Argument = {
  city: string
  latitude: number
  longitude: number
}

// 3. Implement your logic
export async function handler(args: Argument) {
  // Your AI agent logic here
  return weatherData
}

Go Functions:

// 1. Describe the function
func Description() string {
  return "Get current weather for a city"
}

// 2. Define schema
type LLMArguments struct {
  City      string  `json:"city"`
  Latitude  float64 `json:"latitude"`
  Longitude float64 `json:"longitude"`  
}

// 3. Handle requests
func Handler(ctx serverless.Context) {
  // Your AI agent logic here
}

๐Ÿš€ Next Steps

๐Ÿ—๏ธ Build Your Own Function

# Create new function from template
yomo init my-awesome-function

# Run locally
yomo run

๐ŸŒ Deploy Anywhere

โ˜๏ธ Managed Cloud: Use VivGrid for instant deployment with global edge locations.

๐Ÿ  Self-Host: Deploy on your own infrastructure:

๐Ÿ“– Resources


Ready to build the future of AI agents? Start with YoMo today! ๐ŸŽ‰

GitHub stars Documentation Discord