Files
zeekay 8d6cfb9872
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
feat(sdk): add PostAudioSpeechBytes, GameBackend flow, and LiveIntegrationTests (v8.5.1027)
2026-11-10 15:38:23 -08:00

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;