Interface IExampleSelector
Interface for selecting examples to include in prompts.
Namespace: DotnetPrompt.Prompts.ExampleSelectors
Assembly: DotnetPrompt.dll
Syntax
public interface IExampleSelector
Methods
| Improve this Doc View SourceAddExample(IDictionary<string, string>)
Add new example to store for a key.
Declaration
void AddExample(IDictionary<string, string> example)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<string, string> | example | List of examples to select. |
Remarks
Example should be a dictionary with the keys being the input variables and the values being the values for those input variables.
SelectExamples(IDictionary<string, string>)
Select which examples to use based on the inputs.
Declaration
IList<IDictionary<string, string>> SelectExamples(IDictionary<string, string> inputVariables)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<string, string> | inputVariables | List of input variables that should be user for calculation of possible examples |
Returns
Type | Description |
---|---|
IList<IDictionary<string, string>> |