@tpmjs/tools-recipe-emit
Emits a recipe in standard format for workflow orchestration. Takes a recipe name, array of steps (each with tool, inputs, and outputs), and optional metadata. Returns a validated, formatted recipe ready for execution.
Test @tpmjs/tools-recipe-emit (recipeEmitTool) with AI-powered execution
0/2000 characters
Install this tool and use it with the AI SDK
npm install @tpmjs/tools-recipe-emitpnpm add @tpmjs/tools-recipe-emityarn add @tpmjs/tools-recipe-emitbun add @tpmjs/tools-recipe-emitdeno add npm:@tpmjs/tools-recipe-emitimport { recipeEmitTool } from '@tpmjs/tools-recipe-emit';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { recipeEmitTool } from '@tpmjs/tools-recipe-emit';
const result = await generateText({
model: openai('gpt-4o'),
tools: { recipeEmitTool },
prompt: 'Your prompt here...',
});
console.log(result.text);Available configuration options
namestringThe name of the recipe
stepsarrayArray of workflow steps
metadataobjectOptional metadata about the recipe
Schema extracted: 1/1/2026, 8:18:24 AM
Emits a recipe in standard format for workflow orchestration. Validates and formats workflow recipes with steps, inputs, and outputs.
npm install @tpmjs/tools-recipe-emit
import { recipeEmitTool } from '@tpmjs/tools-recipe-emit'; const result = await recipeEmitTool.execute({ name: 'Data Processing Pipeline', steps: [ { tool: 'fetchData', inputs: { url: 'https://api.example.com/data' }, outputs: { rawData: 'string' }, description: 'Fetch data from API', }, { tool: 'transformData', inputs: { rawData: 'string' }, outputs: { processedData: 'object' }, description: 'Transform raw data', }, { tool: 'saveData', inputs: { processedData: 'object' }, outputs: { success: 'boolean' }, description: 'Save processed data', }, ], metadata: { author: 'John Doe', version: '1.0.0', description: 'A simple data processing pipeline', tags: ['data', 'pipeline', 'etl'], }, }); console.log(result); // { // recipe: { // name: 'Data Processing Pipeline', // version: '1.0.0', // steps: [...], // metadata: {...} // }, // format: 'tpmjs-recipe-v1', // stepCount: 3, // validation: { // isValid: true, // warnings: [] // } // }
{ name: string; // Recipe name steps: Array<{ // Workflow steps tool: string; // Tool name to execute inputs: object; // Input parameters outputs: object; // Expected outputs description?: string; // Optional step description }>; metadata?: { // Optional metadata author?: string; version?: string; description?: string; tags?: string[]; createdAt?: string; }; }
{ recipe: { name: string; version: string; steps: RecipeStep[]; metadata: RecipeMetadata; }; format: string; // Always 'tpmjs-recipe-v1' stepCount: number; // Number of steps validation: { isValid: boolean; // Whether recipe is valid warnings: string[]; // Validation warnings }; }
MIT
Downloads/month
0
Quality Score