Search Results for

    Show / Hide Table of Contents

    Class SequentialChain

    Chain that represent sequential list of chains

    Inheritance
    object
    SequentialChain
    Implements
    IChain
    IChain<ChainMessage, ChainMessage>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: DotnetPrompt.Chains.Specialized
    Assembly: DotnetPrompt.dll
    Syntax
    public class SequentialChain : IChain, IChain<ChainMessage, ChainMessage>

    Constructors

    | Improve this Doc View Source

    SequentialChain(IReadOnlyList<IChain>)

    ctor

    Declaration
    public SequentialChain(IReadOnlyList<IChain> chains)
    Parameters
    Type Name Description
    IReadOnlyList<IChain> chains

    List of chain that would be linked together where input should match output

    Properties

    | Improve this Doc View Source

    Chains

    List of inner chains of SequentialChain

    Declaration
    public IReadOnlyList<IChain> Chains { get; }
    Property Value
    Type Description
    IReadOnlyList<IChain>
    | Improve this Doc View Source

    DefaultOutputKey

    Output chain produces

    Declaration
    public string DefaultOutputKey { get; set; }
    Property Value
    Type Description
    string
    | Improve this Doc View Source

    InputBlock

    Declaration
    public ITargetBlock<ChainMessage> InputBlock { get; }
    Property Value
    Type Description
    ITargetBlock<ChainMessage>
    | Improve this Doc View Source

    InputVariables

    List of inputs chain require to run

    Declaration
    public IList<string> InputVariables { get; }
    Property Value
    Type Description
    IList<string>
    | Improve this Doc View Source

    OutputBlock

    Declaration
    public ISourceBlock<ChainMessage> OutputBlock { get; }
    Property Value
    Type Description
    ISourceBlock<ChainMessage>

    Methods

    | Improve this Doc View Source

    Cancel()

    Cancel Chain execution

    Declaration
    public void Cancel()

    Implements

    IChain
    IChain<TInput, TOutput>

    Extension Methods

    ChainExecutorExtensions.GetExecutor(IChain, bool)
    ChainExtensions.LinkTo(IChain, IChain)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright 2023 © Pavel «xakpc» Osadchuk for DotnetPrompt