Coroutine-native client covering the full Hanzo /v1 cloud surface, for JVM and Android. Generated with openapi-generator kotlin (library=jvm-okhttp4, useCoroutines=true). Coordinate: ai.hanzo:sdk. Base URL: https://api.hanzo.ai. Co-authored-by: Hanzo Dev <[email protected]>
6.1 KiB
AIApi
All URIs are relative to https://api.hanzo.ai
| Method | HTTP request | Description |
|---|---|---|
| worldWorldClassifyBatch | POST /v1/world/classify-batch | Batch headline classification (per-user IAM token) |
| worldWorldClassifyEvent | POST /v1/world/classify-event | Single event classification (per-user IAM token) |
| worldWorldCountryIntel | POST /v1/world/country-intel | AI country intelligence brief (per-user IAM token) |
| worldWorldGroqSummarize | POST /v1/world/groq-summarize | World-brief summary via Hanzo inference (forwards the caller IAM token → org/project/billing; anon → skipped) |
| worldWorldOpenrouterSummarize | POST /v1/world/openrouter-summarize | Alt summary path via Hanzo inference (per-user IAM token) |
worldWorldClassifyBatch
kotlin.Any worldWorldClassifyBatch()
Batch headline classification (per-user IAM token)
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = AIApi()
try {
val result : kotlin.Any = apiInstance.worldWorldClassifyBatch()
println(result)
} catch (e: ClientException) {
println("4xx response calling AIApi#worldWorldClassifyBatch")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling AIApi#worldWorldClassifyBatch")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
worldWorldClassifyEvent
kotlin.Any worldWorldClassifyEvent()
Single event classification (per-user IAM token)
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = AIApi()
try {
val result : kotlin.Any = apiInstance.worldWorldClassifyEvent()
println(result)
} catch (e: ClientException) {
println("4xx response calling AIApi#worldWorldClassifyEvent")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling AIApi#worldWorldClassifyEvent")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
worldWorldCountryIntel
kotlin.Any worldWorldCountryIntel()
AI country intelligence brief (per-user IAM token)
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = AIApi()
try {
val result : kotlin.Any = apiInstance.worldWorldCountryIntel()
println(result)
} catch (e: ClientException) {
println("4xx response calling AIApi#worldWorldCountryIntel")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling AIApi#worldWorldCountryIntel")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
worldWorldGroqSummarize
kotlin.Any worldWorldGroqSummarize()
World-brief summary via Hanzo inference (forwards the caller IAM token → org/project/billing; anon → skipped)
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = AIApi()
try {
val result : kotlin.Any = apiInstance.worldWorldGroqSummarize()
println(result)
} catch (e: ClientException) {
println("4xx response calling AIApi#worldWorldGroqSummarize")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling AIApi#worldWorldGroqSummarize")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
worldWorldOpenrouterSummarize
kotlin.Any worldWorldOpenrouterSummarize()
Alt summary path via Hanzo inference (per-user IAM token)
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = AIApi()
try {
val result : kotlin.Any = apiInstance.worldWorldOpenrouterSummarize()
println(result)
} catch (e: ClientException) {
println("4xx response calling AIApi#worldWorldOpenrouterSummarize")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling AIApi#worldWorldOpenrouterSummarize")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json