Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(schema): add TinyHumans API key management functions

Steven Enamakel967e67891b09
diff --git a/app/schema.json b/app/schema.json
index a6a0059391..7f0993526b 100644
--- a/app/schema.json
+++ b/app/schema.json
@@ -286,6 +286,21 @@
}
]
},
+ {
+ "description": "Remove the stored TinyHumans API key.",
+ "function": "clear_api_key",
+ "inputs": [],
+ "method": "openhuman.auth_clear_api_key",
+ "namespace": "auth",
+ "outputs": [
+ {
+ "comment": "Whether a key was removed.",
+ "name": "result",
+ "required": true,
+ "ty": "Json"
+ }
+ ]
+ },
{
"description": "Remove stored app session credentials.",
"function": "clear_session",
@@ -532,6 +547,28 @@
}
]
},
+ {
+ "description": "Store a TinyHumans API key as the backend credential (no user session; managed inference sends it as a bearer, REST as x-api-key).",
+ "function": "store_api_key",
+ "inputs": [
+ {
+ "comment": "TinyHumans API key.",
+ "name": "key",
+ "required": true,
+ "ty": "String"
+ }
+ ],
+ "method": "openhuman.auth_store_api_key",
+ "namespace": "auth",
+ "outputs": [
+ {
+ "comment": "Auth state after storing the key.",
+ "name": "state",
+ "required": true,
+ "ty": "Json"
+ }
+ ]
+ },
{
"description": "Store provider credentials for a profile.",
"function": "store_provider_credentials",
@@ -1216,7 +1253,7 @@
]
},
{
- "description": "Enqueue a cron job for immediate background execution and return once it is queued. The terminal outcome (ok/error, duration, output) is recorded in the run history \u2014 read it with `cron_runs`.",
+ "description": "Enqueue a cron job for immediate background execution and return once it is queued. The terminal outcome (ok/error, duration, output) is recorded in the run history — read it with `cron_runs`.",
"function": "run",
"inputs": [
{
@@ -1243,7 +1280,7 @@
"ty": "String"
},
{
- "comment": "Always \"queued\" \u2014 the job runs in the background; poll `cron_runs` for the terminal status.",
+ "comment": "Always \"queued\" — the job runs in the background; poll `cron_runs` for the terminal status.",
"name": "status",
"required": true,
"ty": {