Search Results for

    Show / Hide Table of Contents

    Interface IChainExecutor

    Chain executor to run chains

    Namespace: DotnetPrompt.Abstractions.Chains
    Assembly: DotnetPrompt.Abstractions.dll
    Syntax
    public interface IChainExecutor

    Methods

    | Improve this Doc View Source

    PromptAsync(IDictionary<string, string>, List<string>)

    Execute chain with default inputs and outputs

    Declaration
    Task<IDictionary<string, string>> PromptAsync(IDictionary<string, string> input, List<string> stops = null)
    Parameters
    Type Name Description
    IDictionary<string, string> input
    List<string> stops
    Returns
    Type Description
    Task<IDictionary<string, string>>
    | Improve this Doc View Source

    PromptAsync(string)

    Execute chain with single string input and single string output

    Declaration
    Task<string> PromptAsync(string input)
    Parameters
    Type Name Description
    string input
    Returns
    Type Description
    Task<string>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright 2023 © Pavel «xakpc» Osadchuk for DotnetPrompt