Skip to content

Commit

Permalink
update (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleLittleCloud authored Sep 12, 2024
1 parent 0108322 commit 84d6c1c
Show file tree
Hide file tree
Showing 25 changed files with 1,061 additions and 53 deletions.
16 changes: 15 additions & 1 deletion StepWise.sln
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GetWeather", "example\GetWe
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StepWise.Core.Tests", "test\StepWise.Core.Tests\StepWise.Core.Tests.csproj", "{2C1A5352-C488-4EBB-B3C6-2FDCE9B043F8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeInterpreter", "example\CodeInterpreter\CodeInterpreter.csproj", "{9BF63586-31E6-4075-B120-C8D2B6E7296A}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CodeInterpreter", "example\CodeInterpreter\CodeInterpreter.csproj", "{9BF63586-31E6-4075-B120-C8D2B6E7296A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StepWise.WebAPI", "src\StepWise.WebAPI\StepWise.WebAPI.csproj", "{8D2B6D19-3922-4B52-BB88-B28C01737970}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StepWise.WebAPI.Tests", "test\StepWise.WebAPI.Tests\StepWise.WebAPI.Tests.csproj", "{DAE8E54E-0A43-4FD7-9D75-6081792FA94E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -47,6 +51,14 @@ Global
{9BF63586-31E6-4075-B120-C8D2B6E7296A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9BF63586-31E6-4075-B120-C8D2B6E7296A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9BF63586-31E6-4075-B120-C8D2B6E7296A}.Release|Any CPU.Build.0 = Release|Any CPU
{8D2B6D19-3922-4B52-BB88-B28C01737970}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8D2B6D19-3922-4B52-BB88-B28C01737970}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8D2B6D19-3922-4B52-BB88-B28C01737970}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8D2B6D19-3922-4B52-BB88-B28C01737970}.Release|Any CPU.Build.0 = Release|Any CPU
{DAE8E54E-0A43-4FD7-9D75-6081792FA94E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DAE8E54E-0A43-4FD7-9D75-6081792FA94E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DAE8E54E-0A43-4FD7-9D75-6081792FA94E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DAE8E54E-0A43-4FD7-9D75-6081792FA94E}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -56,6 +68,8 @@ Global
{CEEC902A-E5F1-48DB-B549-D27C5011020A} = {0D861355-C022-4E1A-8C7B-7D1C3A066EE3}
{2C1A5352-C488-4EBB-B3C6-2FDCE9B043F8} = {5E5C30E1-F538-430A-BE65-40C1C5B5C76A}
{9BF63586-31E6-4075-B120-C8D2B6E7296A} = {0D861355-C022-4E1A-8C7B-7D1C3A066EE3}
{8D2B6D19-3922-4B52-BB88-B28C01737970} = {19750AFD-3091-4569-9D89-8D5735C3EBFC}
{DAE8E54E-0A43-4FD7-9D75-6081792FA94E} = {5E5C30E1-F538-430A-BE65-40C1C5B5C76A}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {55953F2E-2283-4F22-9B79-17E81B54BDCE}
Expand Down
5 changes: 1 addition & 4 deletions example/CodeInterpreter/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@
var engine = StepWiseEngine.CreateFromInstance(codeInterpreter, maxConcurrency: 1, logger);

var task = "use python to switch my system to dark mode";
var input = new Dictionary<string, StepVariable>
{
["task"] = StepVariable.Create(task),
};
StepVariable[] input = [StepVariable.Create("task", task)];

await foreach (var stepResult in engine.ExecuteAsync(nameof(Workflow.GenerateReply), input))
{
Expand Down
5 changes: 3 additions & 2 deletions example/GetWeather/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@

var getWeather = new Workflow();
var workflowEngine = StepWiseEngine.CreateFromInstance(getWeather, maxConcurrency: 3, loggerFactory.CreateLogger<StepWiseEngine>());
var input = new Dictionary<string, StepVariable>

StepVariable[] input = new StepVariable[]
{
{ "cities", StepVariable.Create(new string[] { "Seattle", "Redmond" }) }
StepVariable.Create("cities", new string[] { "Seattle", "Redmond" })
};

await foreach (var stepResult in workflowEngine.ExecuteAsync(nameof(Workflow.GetWeatherAsync), input))
Expand Down
6 changes: 1 addition & 5 deletions nuget/NUGET.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,4 @@ A powerful C# library for building and executing workflows. Define steps, manage

Key features:
• Intuitive step definition
• Automatic dependency resolution
• Attribute-based and programmatic workflow creation
• Flexible execution engine

Simplify your workflow management with StepWise.
• Automatic dependency resolution
Binary file modified nuget/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 84d6c1c

Please sign in to comment.