You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug PromptyKernelExtensions.CreateFunctionFromPromptyFile calls PromptyKernelExtensions..CreateFunctionFromPrompty which calls KernelFunctionPrompty.ToPromptTemplateConfig which then calls Prompty.Load.
The path to the prompty file is not passed in the call to Prompty.Load, this means that paths in any ${file:..} references in the prompty file are evaluated relative to the application's working directory rather than to the directory containing the prompty file. This behaviour is different from that when running using the VS Code extension.
To Reproduce
Create a prompty file containing a ${file:...} reference, e.g.
github-actionsbot
changed the title
Bug: CreateFunctionFromPromptyFile ${file:...} paths are not evaluated relative to the prompty file location
.Net: Bug: CreateFunctionFromPromptyFile ${file:...} paths are not evaluated relative to the prompty file location
Apr 2, 2025
Describe the bug
PromptyKernelExtensions.CreateFunctionFromPromptyFile
callsPromptyKernelExtensions..CreateFunctionFromPrompty
which callsKernelFunctionPrompty.ToPromptTemplateConfig
which then callsPrompty.Load
.The path to the prompty file is not passed in the call to
Prompty.Load
, this means that paths in any${file:..}
references in the prompty file are evaluated relative to the application's working directory rather than to the directory containing the prompty file. This behaviour is different from that when running using the VS Code extension.To Reproduce
/prompts
MySchema.json
in the sub-directory.CreateFunctionFromPromptyFile
:Expected behavior
${file:...}
paths are evaluated relative to the prompty file location.The text was updated successfully, but these errors were encountered: