Define an AI generation route for single request-response interaction with specified AI model.
a generation route definition
makeRecipe: a.generation({ aiModel: { resourcePath }, systemPrompt: 'Please make a recipe from the provided ingredients',}) .arguments({ ingredients: a.string().array() }) .returns(a.ref("Recipe")) Copy
makeRecipe: a.generation({ aiModel: { resourcePath }, systemPrompt: 'Please make a recipe from the provided ingredients',}) .arguments({ ingredients: a.string().array() }) .returns(a.ref("Recipe"))
Define an AI generation route for single request-response interaction with specified AI model.