From 3a1e55d0e0a4cd94ea2226b25868101e85196d95 Mon Sep 17 00:00:00 2001 From: John Smith Date: Fri, 1 Nov 2024 10:03:03 +1030 Subject: [PATCH] chore: Comment out run start --- .github/workflows/create-archives.yml | 1 + bootstrap-dotnet/Program.cs | 53 ++++++++++++++------------- 2 files changed, 28 insertions(+), 26 deletions(-) diff --git a/.github/workflows/create-archives.yml b/.github/workflows/create-archives.yml index 91759ad7..e43487e1 100644 --- a/.github/workflows/create-archives.yml +++ b/.github/workflows/create-archives.yml @@ -32,6 +32,7 @@ jobs: create-archives: runs-on: ubuntu-latest + needs: check_changes if: ${{ needs.check_changes.outputs.bootstrap == 'true' }} permissions: contents: write diff --git a/bootstrap-dotnet/Program.cs b/bootstrap-dotnet/Program.cs index 1f33d1a0..f29fae56 100644 --- a/bootstrap-dotnet/Program.cs +++ b/bootstrap-dotnet/Program.cs @@ -63,32 +63,33 @@ _ = client.Default.StartAsync(); -var run = await client.CreateRunAsync(new Inferable.API.CreateRunInput -{ - Message = "Can you make an order for 2 lightsabers?", - // Optional: Explicitly attach the `sayHello` function (All functions attached by default) - // AttachedFunctions = new List - // { - // new FunctionReference { - // Function = "SayHello", - // Service = "default" - // } - // }, - // Optional: Define a schema for the result to conform to - //ResultSchema = JsonSchema.FromType(); - // Optional: Subscribe an Inferable function to receive notifications when the run status changes - //OnStatusChange = new OnStatusChange - //{ - // Function = OnStatusChangeFunction - //} -}); - -Console.WriteLine($"Run started: {run.ID}"); - -// Wait for the run to complete and log -var result = await run.PollAsync(null); - -Console.WriteLine($"Run result: {result}"); +// Trigger a Run programmatically +// var run = await client.CreateRunAsync(new Inferable.API.CreateRunInput +// { +// Message = "Can you make an order for 2 lightsabers?", +// // Optional: Explicitly attach the `sayHello` function (All functions attached by default) +// // AttachedFunctions = new List +// // { +// // new FunctionReference { +// // Function = "SayHello", +// // Service = "default" +// // } +// // }, +// // Optional: Define a schema for the result to conform to +// //ResultSchema = JsonSchema.FromType(); +// // Optional: Subscribe an Inferable function to receive notifications when the run status changes +// //OnStatusChange = new OnStatusChange +// //{ +// // Function = OnStatusChangeFunction +// //} +// }); +// +// Console.WriteLine($"Run started: {run.ID}"); +// +// // Wait for the run to complete and log +// var result = await run.PollAsync(null); +// +// Console.WriteLine($"Run result: {result}"); app.Run();