recommend_prompt_template_tests
Generate recommended test cases for a prompt template using a defined context schema and model, ensuring thorough validation for templates from codebases or new requirements.
Instructions
About this tool:
- This tool is part of a toolchain that generates and provides test cases for a prompt template.
- This tool generates an array of recommended tests for a given prompt template.
Parameters:
- params: object
- promptTemplate: string (the prompt template to be tested)
- contextSchema: object (the context schema that defines the expected input parameters for the prompt template)
- promptOrigin: "codebase" | "requirements" (indicates whether the prompt comes from an existing codebase or from new requirements)
- model: string (the model that the prompt template will be tested against)
Example usage: { "params": { "promptTemplate": "The user wants a bedtime story about {{topic}} for a person of age {{age}} years old. Please craft a captivating tale that captivates their imagination and provides a delightful bedtime experience.", "contextSchema": { "topic": "string", "age": "number" }, "promptOrigin": "codebase" } }
The tool will return a structured array of test cases that can be used to test the prompt template.
Tool output instructions:
- The tool will return a recommendedTests
array that can be used to test the prompt template.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
params | No |