forked from microsoft/semantic-kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.Net Processes: fixing KernelProcessStateMetadata usage (microsoft#9598)
### Description - fixing definition of `KernelProcessStateMetadata` to be easier to inherit/manage - fixing missing plumbing of version in KernelState - Updating Build interface in `ProcessStepBuilder` and `ProcessBuilder` Fixes microsoft#9599 ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [x] The code builds clean without any errors or warnings - [x] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [x] All unit tests pass, and I have added new tests where possible - [x] I didn't break anyone 😄
- Loading branch information
1 parent
c539e8b
commit 7404931
Showing
17 changed files
with
120 additions
and
125 deletions.
There are no files selected for viewing
32 changes: 20 additions & 12 deletions
32
...s/GettingStartedWithProcesses/Step03/ProcessesStates/FishSandwichStateProcessSuccess.json
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,47 +1,55 @@ | ||
{ | ||
"$type": "Process", | ||
"stepsState": { | ||
"FriedFishWithStatefulStepsProcess": { | ||
"$type": "Process", | ||
"stepsState": { | ||
"GatherFriedFishIngredientsWithStockStep": { | ||
"state": { | ||
"IngredientsStock": 4 | ||
}, | ||
"id": "32301d167a604f7bb1b69663d8feafe6", | ||
"$type": "Step", | ||
"id": "2908f8c88cf0476a8e0075c3a8020d5d", | ||
"name": "GatherFriedFishIngredientsWithStockStep", | ||
"versionInfo": "GatherFishIngredient.V2" | ||
"versionInfo": "GatherFishIngredient.V2", | ||
"state": { | ||
"IngredientsStock": 3 | ||
} | ||
}, | ||
"CutFoodStep": { | ||
"id": "3be68c614bc44bedb7bce0f002110968", | ||
"$type": "Step", | ||
"id": "014388cf0bbd41119b8730dfc4b0b459", | ||
"name": "CutFoodStep", | ||
"versionInfo": "CutFoodStep.V1" | ||
}, | ||
"FryFoodStep": { | ||
"id": "5f80945fafec4a0bbeccf3ff23a8c1a1", | ||
"$type": "Step", | ||
"id": "c55af0425d864c4e97b6ae67bd715480", | ||
"name": "FryFoodStep", | ||
"versionInfo": "FryFoodStep.V1" | ||
} | ||
}, | ||
"id": "c9d2e56dcc5a4b5ea73e05ae53635c90", | ||
"id": "cab89a17aeae4b9a97568967dbf1ea47", | ||
"name": "FriedFishWithStatefulStepsProcess", | ||
"versionInfo": "FriedFishProcess.v1" | ||
}, | ||
"AddBunsStep": { | ||
"id": "ef113fc874b0473c9c275827effe8dd8", | ||
"$type": "Step", | ||
"id": "35d09b83dea24ddf8e0c24fbe6a3746c", | ||
"name": "AddBunsStep", | ||
"versionInfo": "v1" | ||
}, | ||
"AddSpecialSauceStep": { | ||
"id": "65a35f6dec6e45cab9e1b4df7d43a6bd", | ||
"$type": "Step", | ||
"id": "aa0d408976574afea94387e3da7ca111", | ||
"name": "AddSpecialSauceStep", | ||
"versionInfo": "v1" | ||
}, | ||
"ExternalFriedFishStep": { | ||
"id": "ab186a81480a45249cfff9e0c56319b8", | ||
"$type": "Step", | ||
"id": "2eda38b8ee8745a4ab8b21f4fa01d173", | ||
"name": "ExternalFriedFishStep", | ||
"versionInfo": "v1" | ||
} | ||
}, | ||
"id": "0de6d539-c1bf-44ad-816d-650231cd2034", | ||
"id": "973b06f1-a522-4d2d-9e1c-ec45a07e275c", | ||
"name": "FishSandwichWithStatefulStepsProcess", | ||
"versionInfo": "FishSandwich.V1" | ||
} |
30 changes: 19 additions & 11 deletions
30
...gStartedWithProcesses/Step03/ProcessesStates/FishSandwichStateProcessSuccessLowStock.json
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,47 +1,55 @@ | ||
{ | ||
"$type": "Process", | ||
"stepsState": { | ||
"FriedFishWithStatefulStepsProcess": { | ||
"$type": "Process", | ||
"stepsState": { | ||
"GatherFriedFishIngredientsWithStockStep": { | ||
"$type": "Step", | ||
"id": "2908f8c88cf0476a8e0075c3a8020d5d", | ||
"name": "GatherFriedFishIngredientsWithStockStep", | ||
"versionInfo": "GatherFishIngredient.V2", | ||
"state": { | ||
"IngredientsStock": 1 | ||
}, | ||
"id": "32301d167a604f7bb1b69663d8feafe6", | ||
"name": "GatherFriedFishIngredientsWithStockStep", | ||
"versionInfo": "GatherFishIngredient.V2" | ||
} | ||
}, | ||
"CutFoodStep": { | ||
"id": "3be68c614bc44bedb7bce0f002110968", | ||
"$type": "Step", | ||
"id": "014388cf0bbd41119b8730dfc4b0b459", | ||
"name": "CutFoodStep", | ||
"versionInfo": "CutFoodStep.V1" | ||
}, | ||
"FryFoodStep": { | ||
"id": "5f80945fafec4a0bbeccf3ff23a8c1a1", | ||
"$type": "Step", | ||
"id": "c55af0425d864c4e97b6ae67bd715480", | ||
"name": "FryFoodStep", | ||
"versionInfo": "FryFoodStep.V1" | ||
} | ||
}, | ||
"id": "c9d2e56dcc5a4b5ea73e05ae53635c90", | ||
"id": "cab89a17aeae4b9a97568967dbf1ea47", | ||
"name": "FriedFishWithStatefulStepsProcess", | ||
"versionInfo": "FriedFishProcess.v1" | ||
}, | ||
"AddBunsStep": { | ||
"id": "ef113fc874b0473c9c275827effe8dd8", | ||
"$type": "Step", | ||
"id": "35d09b83dea24ddf8e0c24fbe6a3746c", | ||
"name": "AddBunsStep", | ||
"versionInfo": "v1" | ||
}, | ||
"AddSpecialSauceStep": { | ||
"id": "65a35f6dec6e45cab9e1b4df7d43a6bd", | ||
"$type": "Step", | ||
"id": "aa0d408976574afea94387e3da7ca111", | ||
"name": "AddSpecialSauceStep", | ||
"versionInfo": "v1" | ||
}, | ||
"ExternalFriedFishStep": { | ||
"id": "ab186a81480a45249cfff9e0c56319b8", | ||
"$type": "Step", | ||
"id": "2eda38b8ee8745a4ab8b21f4fa01d173", | ||
"name": "ExternalFriedFishStep", | ||
"versionInfo": "v1" | ||
} | ||
}, | ||
"id": "0de6d539-c1bf-44ad-816d-650231cd2034", | ||
"id": "973b06f1-a522-4d2d-9e1c-ec45a07e275c", | ||
"name": "FishSandwichWithStatefulStepsProcess", | ||
"versionInfo": "FishSandwich.V1" | ||
} |
20 changes: 12 additions & 8 deletions
20
...ples/GettingStartedWithProcesses/Step03/ProcessesStates/FriedFishProcessStateSuccess.json
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,25 +1,29 @@ | ||
{ | ||
"$type": "Process", | ||
"stepsState": { | ||
"GatherFriedFishIngredientsWithStockStep": { | ||
"state": { | ||
"IngredientsStock": 4 | ||
}, | ||
"id": "7d492b6c1ea9404b8adb4c9b0c8f7589", | ||
"$type": "Step", | ||
"id": "92a4cda38c7248648b0aa7ffaaa57f21", | ||
"name": "GatherFriedFishIngredientsWithStockStep", | ||
"versionInfo": "GatherFishIngredient.V2" | ||
"versionInfo": "GatherFishIngredient.V2", | ||
"state": { | ||
"IngredientsStock": 3 | ||
} | ||
}, | ||
"CutFoodStep": { | ||
"id": "7c0d4dce18644abf92941ff2538806dc", | ||
"$type": "Step", | ||
"id": "7ace89e38e1c48b0b3a700b40d160c68", | ||
"name": "CutFoodStep", | ||
"versionInfo": "CutFoodStep.V1" | ||
}, | ||
"FryFoodStep": { | ||
"id": "de06bfb72a3d4f05ba3b4fd4ceb43e1f", | ||
"$type": "Step", | ||
"id": "09bc39ba6d9745439c7c792b8dac0af7", | ||
"name": "FryFoodStep", | ||
"versionInfo": "FryFoodStep.V1" | ||
} | ||
}, | ||
"id": "412f3ad1-d0fd-42f1-9c74-109cff87c75c", | ||
"id": "669c5850-9efc-4585-b3f0-9291a4471887", | ||
"name": "FriedFishWithStatefulStepsProcess", | ||
"versionInfo": "FriedFishProcess.v1" | ||
} |
18 changes: 11 additions & 7 deletions
18
...tingStartedWithProcesses/Step03/ProcessesStates/FriedFishProcessStateSuccessLowStock.json
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,25 +1,29 @@ | ||
{ | ||
"$type": "Process", | ||
"stepsState": { | ||
"GatherFriedFishIngredientsWithStockStep": { | ||
"$type": "Step", | ||
"id": "92a4cda38c7248648b0aa7ffaaa57f21", | ||
"name": "GatherFriedFishIngredientsWithStockStep", | ||
"versionInfo": "GatherFishIngredient.V2", | ||
"state": { | ||
"IngredientsStock": 1 | ||
}, | ||
"id": "7d492b6c1ea9404b8adb4c9b0c8f7589", | ||
"name": "GatherFriedFishIngredientsWithStockStep", | ||
"versionInfo": "GatherFishIngredient.V2" | ||
} | ||
}, | ||
"CutFoodStep": { | ||
"id": "7c0d4dce18644abf92941ff2538806dc", | ||
"$type": "Step", | ||
"id": "7ace89e38e1c48b0b3a700b40d160c68", | ||
"name": "CutFoodStep", | ||
"versionInfo": "CutFoodStep.V1" | ||
}, | ||
"FryFoodStep": { | ||
"id": "de06bfb72a3d4f05ba3b4fd4ceb43e1f", | ||
"$type": "Step", | ||
"id": "09bc39ba6d9745439c7c792b8dac0af7", | ||
"name": "FryFoodStep", | ||
"versionInfo": "FryFoodStep.V1" | ||
} | ||
}, | ||
"id": "412f3ad1-d0fd-42f1-9c74-109cff87c75c", | ||
"id": "669c5850-9efc-4585-b3f0-9291a4471887", | ||
"name": "FriedFishWithStatefulStepsProcess", | ||
"versionInfo": "FriedFishProcess.v1" | ||
} |
18 changes: 11 additions & 7 deletions
18
...ttingStartedWithProcesses/Step03/ProcessesStates/FriedFishProcessStateSuccessNoStock.json
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,25 +1,29 @@ | ||
{ | ||
"$type": "Process", | ||
"stepsState": { | ||
"GatherFriedFishIngredientsWithStockStep": { | ||
"$type": "Step", | ||
"id": "92a4cda38c7248648b0aa7ffaaa57f21", | ||
"name": "GatherFriedFishIngredientsWithStockStep", | ||
"versionInfo": "GatherFishIngredient.V2", | ||
"state": { | ||
"IngredientsStock": 0 | ||
}, | ||
"id": "7d492b6c1ea9404b8adb4c9b0c8f7589", | ||
"name": "GatherFriedFishIngredientsWithStockStep", | ||
"versionInfo": "GatherFishIngredient.V2" | ||
} | ||
}, | ||
"CutFoodStep": { | ||
"id": "7c0d4dce18644abf92941ff2538806dc", | ||
"$type": "Step", | ||
"id": "7ace89e38e1c48b0b3a700b40d160c68", | ||
"name": "CutFoodStep", | ||
"versionInfo": "CutFoodStep.V1" | ||
}, | ||
"FryFoodStep": { | ||
"id": "de06bfb72a3d4f05ba3b4fd4ceb43e1f", | ||
"$type": "Step", | ||
"id": "09bc39ba6d9745439c7c792b8dac0af7", | ||
"name": "FryFoodStep", | ||
"versionInfo": "FryFoodStep.V1" | ||
} | ||
}, | ||
"id": "412f3ad1-d0fd-42f1-9c74-109cff87c75c", | ||
"id": "669c5850-9efc-4585-b3f0-9291a4471887", | ||
"name": "FriedFishWithStatefulStepsProcess", | ||
"versionInfo": "FriedFishProcess.v1" | ||
} |
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.