mirror of
https://github.com/hanzo-csharp/sdk.git
synced 2026-11-15 01:32:19 +00:00
Hanzo CI/CD / test (linux-amd64) (push) Skipped
Hanzo CI/CD / test (linux-arm64) (push) Skipped
Hanzo CI/CD / test-advisory (push) Skipped
Hanzo CI/CD / test-amd64 (push) Successful in 4m53s
Hanzo CI/CD / cicd (push) Failing after 3m13s
Hanzo CI/CD / verify (push) Skipped
CI/CD / cicd (push) Failing after 11m55s
29 lines
721 B
C#
29 lines
721 B
C#
// The six canonical flows from hanzoai/openapi flows.yaml plus kai (/v1/decisions).
|
|
//
|
|
// HANZO_API_KEY=hk-... dotnet run --project examples -- hello
|
|
using System;
|
|
using Hanzo.AI.Examples;
|
|
|
|
var flows = new (string Name, Func<int> Run)[]
|
|
{
|
|
("hello", Hello.Run),
|
|
("chat", Chat.Run),
|
|
("kai", Kai.Run),
|
|
("money", Money.Run),
|
|
("store", Store.Run),
|
|
("agent", Agent.Run),
|
|
("tools", Tools.Run),
|
|
("game-backend", GameBackend.Run),
|
|
};
|
|
|
|
var want = args.Length > 0 ? args[0] : "";
|
|
foreach (var flow in flows)
|
|
{
|
|
if (flow.Name == want)
|
|
{
|
|
return flow.Run();
|
|
}
|
|
}
|
|
Console.Error.WriteLine($"usage: dotnet run -- <{string.Join("|", Array.ConvertAll(flows, f => f.Name))}>");
|
|
return 2;
|