---name: math-additiontext_config: model_name: gpt-4o schema: type: "object" properties: sum: type: "number" description: "The sum of the two numbers" explanation: type: "string" description: "Step by step explanation" required: ["sum", "explanation"]input_schema: type: "object" properties: num1: type: "number" description: "First number to add" num2: type: "number" description: "Second number to add" required: ["num1", "num2"]---<System>You are a helpful math assistant that performs addition.</System><User>What is the sum of {props.num1} and {props.num2}?</User>
Running generate-types will create:
agentmark.types.ts
Copy
// Auto-generated types from AgentMark// Do not edit this file directlyinterface Math$AdditionIn { /** First number to add */ num1: number; /** Second number to add */ num2: number;}interface Math$AdditionOut { /** The sum of the two numbers */ sum: number; /** Step by step explanation */ explanation: string;}interface Math$Addition { input: Math$AdditionIn; output: Math$AdditionOut; kind: "object";}export default interface AgentMarkTypes { "math/addition.prompt.mdx": Math$Addition;}