-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
141 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 11 additions & 5 deletions
16
dotnet/src/Experimental/Process.Abstractions/KernelProcessEdge.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,37 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
|
||
using System.Runtime.Serialization; | ||
|
||
namespace Microsoft.SemanticKernel; | ||
|
||
/// <summary> | ||
/// A serializable representation of an edge between a source <see cref="KernelProcessStep"/> and a <see cref="KernelProcessFunctionTarget"/>. | ||
/// </summary> | ||
[DataContract] | ||
[KnownType(typeof(KernelProcessFunctionTarget))] | ||
public sealed class KernelProcessEdge | ||
{ | ||
/// <summary> | ||
/// The unique identifier of the source Step. | ||
/// </summary> | ||
public string SourceStepId { get; } | ||
[DataMember] | ||
public string SourceStepId { get; init; } | ||
|
||
/// <summary> | ||
/// The collection of <see cref="KernelProcessFunctionTarget"/>s that are the output of the source Step. | ||
/// </summary> | ||
public KernelProcessFunctionTarget OutputTarget { get; } | ||
[DataMember] | ||
public KernelProcessFunctionTarget OutputTarget { get; init; } | ||
|
||
/// <summary> | ||
/// Creates a new instance of the <see cref="KernelProcessEdge"/> class. | ||
/// </summary> | ||
public KernelProcessEdge(string sourceStepId, KernelProcessFunctionTarget outputTargets) | ||
public KernelProcessEdge(string sourceStepId, KernelProcessFunctionTarget outputTarget) | ||
{ | ||
Verify.NotNullOrWhiteSpace(sourceStepId); | ||
Verify.NotNull(outputTargets); | ||
Verify.NotNull(outputTarget); | ||
|
||
this.SourceStepId = sourceStepId; | ||
this.OutputTarget = outputTargets; | ||
this.OutputTarget = outputTarget; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
dotnet/src/Experimental/Process.Abstractions/KernelProcessState.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.