Search Results for

    Show / Hide Table of Contents

    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 Source

    AddExample(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.

    | Improve this Doc View Source

    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>>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright 2023 © Pavel «xakpc» Osadchuk for DotnetPrompt