Files
zeekayandHanzo Dev f039e694d9 examples: C# and Java call Kai through their SDKs
The C# example built a JSON body by hand and parsed the reply by hand. It
now calls AiApi.PostDecisions from `Hanzo` (hanzo-csharp/sdk), and a Java
example does the same through ai.hanzo:hanzo-java-cloud (hanzo-java/sdk),
both at 8.5.1026. Same decision as before: the strongest opening move in
tic-tac-toe, refused if the answer is not a square. Both ran live against
api.hanzo.ai. test.sh runs Java when Maven is installed; the README shows
both calls.

Co-authored-by: Hanzo Dev <[email protected]>
2026-11-06 13:21:02 -08:00

38 lines
1.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!-- One Kai decision through the Hanzo Java SDK, github.com/hanzo-java/sdk.
Run: HANZO_API_KEY=... mvn -q compile exec:java -->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>ai.hanzo.kai</groupId>
<artifactId>kai-example</artifactId>
<version>1</version>
<properties>
<maven.compiler.release>11</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>ai.hanzo</groupId>
<artifactId>hanzo-java-cloud</artifactId>
<version>8.5.1026</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.5.0</version>
<configuration>
<mainClass>kai.Kai</mainClass>
</configuration>
</plugin>
</plugins>
</build>
</project>