From 2d1b1dc0cf42141909f15ea04a9989320f0169af Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 21 Mar 2026 06:41:12 -0400 Subject: [PATCH] v0.1.13 - Expose cashu_wallet_mints_get in tool schema so configured mints can be queried --- README.md | 4 ++-- src/main.h | 4 ++-- src/tools/tools_schema.c | 17 +++++++++++++++++ 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a0071b8..76fa026 100644 --- a/README.md +++ b/README.md @@ -55,11 +55,11 @@ Skills compose by adoption-list order (`10123`) and trigger tags carry runtime e Didactyl will support local inference, which is very privacy preserving. Remote inference does however have it's advantages, and in those cases Didactyl supports using Bitcoin Lightning and eCash inference providers. -## Current Status — v0.1.12 +## Current Status — v0.1.13 **Active build — this project is barely working. Experiment at your own risk.** -> Last release update: v0.1.12 — Add /tool -h help shorthand and enrich core tool parameter descriptions +> Last release update: v0.1.13 — Expose cashu_wallet_mints_get in tool schema so configured mints can be queried - Connects to configured relays with auto-reconnect and relay state transition logging - Publishes configured startup events per relay as each relay becomes connected diff --git a/src/main.h b/src/main.h index 641ac73..6ee8be6 100644 --- a/src/main.h +++ b/src/main.h @@ -12,8 +12,8 @@ // Using DIDACTYL_ prefix to avoid conflicts with nostr_core_lib VERSION macros #define DIDACTYL_VERSION_MAJOR 0 #define DIDACTYL_VERSION_MINOR 1 -#define DIDACTYL_VERSION_PATCH 12 -#define DIDACTYL_VERSION "v0.1.12" +#define DIDACTYL_VERSION_PATCH 13 +#define DIDACTYL_VERSION "v0.1.13" // Agent metadata #define DIDACTYL_NAME "Didactyl" diff --git a/src/tools/tools_schema.c b/src/tools/tools_schema.c index 810692f..e4e7bda 100644 --- a/src/tools/tools_schema.c +++ b/src/tools/tools_schema.c @@ -1891,6 +1891,23 @@ char* tools_build_openai_schema_json_legacy(const tools_context_t* ctx) { cJSON_AddItemToObject(t61, "function", t61_fn); cJSON_AddItemToArray(tools, t61); + cJSON* t62 = cJSON_CreateObject(); + cJSON* t62_fn = cJSON_CreateObject(); + cJSON* t62_params = cJSON_CreateObject(); + cJSON* t62_props = cJSON_CreateObject(); + cJSON* t62_required = cJSON_CreateArray(); + + cJSON_AddStringToObject(t62, "type", "function"); + cJSON_AddStringToObject(t62_fn, "name", "cashu_wallet_mints_get"); + cJSON_AddStringToObject(t62_fn, "description", "Get currently configured wallet and public mints"); + cJSON_AddStringToObject(t62_params, "type", "object"); + cJSON_AddItemToObject(t62_params, "properties", t62_props); + cJSON_AddItemToObject(t62_params, "required", t62_required); + + cJSON_AddItemToObject(t62_fn, "parameters", t62_params); + cJSON_AddItemToObject(t62, "function", t62_fn); + cJSON_AddItemToArray(tools, t62); + char* out = cJSON_PrintUnformatted(tools); cJSON_Delete(tools); return out;