Fix/recipe tool at mention docs#3
Closed
DavidKoleczek wants to merge 2 commits intomicrosoft:mainfrom
Closed
Conversation
The tool description was missing documentation about path formats, causing AI models to omit the required @ prefix when referencing bundle recipes (e.g., 'bundle:path' instead of '@Bundle:path'). Changes: - Add 'Path formats:' section explaining bundle vs local paths - Add IMPORTANT note that bundle paths MUST start with @ - Update examples to show both bundle (@recipes:...) and local (./...) formats Fixes issue where recipe execution fails with 'Recipe file not found' when AI uses bundle paths without the @ prefix. 🤖 Generated with [Amplifier](https://github.com/microsoft/amplifier) Co-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com>
🤖 Generated with [Amplifier](https://github.com/microsoft/amplifier) Co-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com>
Closed
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix: document @mention path format requirement in recipes tool
Problem
When users ask AI to execute a recipe from a bundle, the AI would use paths like:
Instead of the correct format:
This caused "Recipe file not found" errors because the
_resolve_path()function only recognizes bundle paths when they start with@.Root Cause
The tool description showed examples without the
@prefix, so AI models mimicked that pattern:Solution
Updated the tool description to clearly document both path formats and emphasize that bundle paths MUST start with
@:Classification
Documentation/prompt gap - not a code bug. The underlying
_resolve_path()implementation correctly requires the@prefix; the issue was that the tool description didn't communicate this requirement to AI models.Testing
Verified the fix by reviewing the updated tool description. The examples now consistently show:
@recipes:examples/my-recipe.yamlfor bundle paths./my-recipe.yamlfor local paths