Class SequentialChain
Chain that represent sequential list of chains
Inheritance
object
SequentialChain
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 SourceSequentialChain(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 SourceChains
List of inner chains of SequentialChain
Declaration
public IReadOnlyList<IChain> Chains { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<IChain> |
DefaultOutputKey
Output chain produces
Declaration
public string DefaultOutputKey { get; set; }
Property Value
Type | Description |
---|---|
string |
InputBlock
Declaration
public ITargetBlock<ChainMessage> InputBlock { get; }
Property Value
Type | Description |
---|---|
ITargetBlock<ChainMessage> |
InputVariables
List of inputs chain require to run
Declaration
public IList<string> InputVariables { get; }
Property Value
Type | Description |
---|---|
IList<string> |
OutputBlock
Declaration
public ISourceBlock<ChainMessage> OutputBlock { get; }
Property Value
Type | Description |
---|---|
ISourceBlock<ChainMessage> |
Methods
| Improve this Doc View SourceCancel()
Cancel Chain execution
Declaration
public void Cancel()