Transform business logic into typesafe, production-ready APIs. Our agentic workflow platform handles the boilerplate, so you can focus on writing code that delivers value.
import { Function } from 'functions.do';
// Define the input type for your function
interface Lead {
companySize: number;
industry: string;
hasBudget: boolean;
}
// Create a function agent
const scoreLead = Function('score-lead-v1');
// Execute the function with typesafe inputs
const { score, reason } = await scoreLead({
companySize: 250,
industry: 'SaaS',
hasBudget: true,
});
console.log(`Lead Score: ${score}/100 - ${reason}`);