Skip to content

Commit

Permalink
chore: Comment out run start
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjcsmith committed Oct 31, 2024
1 parent 2069644 commit 3a1e55d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 26 deletions.
1 change: 1 addition & 0 deletions .github/workflows/create-archives.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
create-archives:
runs-on: ubuntu-latest
needs: check_changes
if: ${{ needs.check_changes.outputs.bootstrap == 'true' }}
permissions:
contents: write
Expand Down
53 changes: 27 additions & 26 deletions bootstrap-dotnet/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<FunctionReference>
// {
// new FunctionReference {
// Function = "SayHello",
// Service = "default"
// }
// },
// Optional: Define a schema for the result to conform to
//ResultSchema = JsonSchema.FromType<RunOutput>();
// Optional: Subscribe an Inferable function to receive notifications when the run status changes
//OnStatusChange = new OnStatusChange<RunOutput>
//{
// 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<FunctionReference>
// // {
// // new FunctionReference {
// // Function = "SayHello",
// // Service = "default"
// // }
// // },
// // Optional: Define a schema for the result to conform to
// //ResultSchema = JsonSchema.FromType<RunOutput>();
// // Optional: Subscribe an Inferable function to receive notifications when the run status changes
// //OnStatusChange = new OnStatusChange<RunOutput>
// //{
// // 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();

0 comments on commit 3a1e55d

Please sign in to comment.