This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
[Feature Request] Allow arguments to be passed to the prompt when calling AskAsync #394
Labels
enhancement
New feature or request
Context / Scenario
I would like to be able to pass parameters to a custom prompt when calling the
AskAsync
method.For example:
I want to conditionally instruct the LLM to automatically translate the response to a specific language that is selected by the user at runtime.
The problem
Cannot pass arguments to a customized prompt when asking.
Proposed solution
Lets say I add a custom prompt provider as shown here that has the following prompt:
I would like to be able to pass a
Dictionary<string,string>
with arguments to theAskAsync
method that contains thetranslateLanguage
argument, for exampleImportance
would be great to have
The text was updated successfully, but these errors were encountered: