From 64d44f76f17b37cae4eab71599af63719c92f2f3 Mon Sep 17 00:00:00 2001 From: flemming-it Date: Mon, 1 Jun 2026 22:46:15 +0200 Subject: [PATCH] feat: schema_version 3 with DE/EN field descriptions Signed-off-by: flemming-it --- module.yaml | 102 +++++++++++++++++++++++++++++++++++----------------- 1 file changed, 70 insertions(+), 32 deletions(-) diff --git a/module.yaml b/module.yaml index 8460a39..3b4e487 100644 --- a/module.yaml +++ b/module.yaml @@ -1,47 +1,85 @@ -schema_version: 2 +schema_version: 3 provider: fai name: text-translate version: 0.1.0 -# Capability provided by this module. provides: - capability: text.translate version: 0.1.0 -# Inputs the invoke function accepts. inputs: - # Source text to translate. - text: text - # Target language name in plain English (e.g. "German", - # "French", "ja-JP" — anything the configured LLM - # understands). - target_language: text - # Optional source language hint. Empty string lets the model - # auto-detect. - source_language: text - # Ollama-shaped /api/chat endpoint. - endpoint: text - # Model identifier (e.g. "qwen2.5:14b"). - model: text - # Optional bearer token for cloud-hosted endpoints. - api_key: text + text: + type: text + description: + en: Source text to translate. + de: Quelltext, der übersetzt werden soll. + target_language: + type: text + description: + en: | + Target language name in plain English (e.g. "German", + "French", "ja-JP" — anything the configured LLM + understands). + de: | + Zielsprache in Klartext (z. B. "German", "French", + "ja-JP" — alles was das konfigurierte LLM versteht). + source_language: + type: text + description: + en: | + Optional source language hint. Empty = let the model + auto-detect. + de: | + Optionaler Hinweis zur Quellsprache. Leer = das Modell + erkennt sie selbst. + endpoint: + type: text + description: + en: Ollama-shaped /api/chat endpoint. + de: Ollama-kompatibler /api/chat-Endpunkt. + model: + type: text + description: + en: Model identifier (e.g. "qwen2.5:14b"). + de: Modell-Identifier (z. B. "qwen2.5:14b"). + api_key: + type: text + description: + en: Optional bearer token for cloud-hosted endpoints. + de: Optionaler Bearer-Token für Cloud-Endpunkte. -# Outputs produced. outputs: - # The translated text. - translation: text - # Echo of the source-language input for downstream audit. - source_language: text - # Echo of the target-language input. - target_language: text - # Endpoint the translation was generated against. - model_endpoint: text - # Model identifier as supplied to the LLM API. - model_name: text - # SHA-256 digest of the served Ollama model (when reachable). - model_digest: text + translation: + type: text + description: + en: The translated text. + de: Der übersetzte Text. + source_language: + type: text + description: + en: Echo of the source-language input for downstream audit. + de: Echo des source_language-Inputs für Downstream-Audit. + target_language: + type: text + description: + en: Echo of the target-language input. + de: Echo des target_language-Inputs. + model_endpoint: + type: text + description: + en: Endpoint the translation was generated against. + de: Endpunkt, gegen den die Übersetzung erzeugt wurde. + model_name: + type: text + description: + en: Model identifier as supplied to the LLM API. + de: An die LLM-API übergebenes Modell. + model_digest: + type: text + description: + en: SHA-256 digest of the served Ollama model (when reachable). + de: SHA-256-Digest des bedienten Ollama-Modells (wenn erreichbar). -# Permissions required. permissions: - "net: localhost" - "net: 127.0.0.1"