feat: schema_version 3 with DE/EN field descriptions
Some checks failed
CI / Linux x86_64 (Forgejo) (push) Failing after 2s

Signed-off-by: flemming-it <sf@flemming.it>
This commit is contained in:
flemming-it 2026-06-01 22:13:33 +02:00
parent 447ed0af31
commit 04d663a86f

View file

@ -1,4 +1,4 @@
schema_version: 2 schema_version: 3
provider: fai provider: fai
name: text-summarize name: text-summarize
version: 0.1.0 version: 0.1.0
@ -10,36 +10,79 @@ provides:
# Inputs the invoke function accepts. # Inputs the invoke function accepts.
inputs: inputs:
# Source text to summarise. text:
text: text type: text
# Style / shape of the summary, e.g. "one paragraph", description:
# "three bullet points", "a tweet". Defaults to en: Source text to summarise.
# "one paragraph" when omitted. de: Quelltext, der zusammengefasst werden soll.
style: text style:
# Optional output language hint, e.g. "German", "ja-JP". type: text
# Empty = same language as the source. description:
language: text en: |
# Ollama-shaped /api/chat endpoint. Style / shape of the summary, e.g. "one paragraph",
endpoint: text "three bullet points", "a tweet". Defaults to
# Model identifier (e.g. "qwen2.5:14b"). "one paragraph" when omitted.
model: text de: |
# Optional bearer token for cloud-hosted endpoints. Stil/Form der Zusammenfassung, z. B. "ein Absatz",
api_key: text "drei Bulletpoints", "ein Tweet". Default ist
"ein Absatz".
language:
type: text
description:
en: |
Optional output language hint, e.g. "German", "ja-JP".
Empty = same language as the source.
de: |
Optionale Ausgabesprache, z. B. "German", "ja-JP".
Leer = gleiche Sprache wie die Quelle.
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 produced.
outputs: outputs:
# The summary text. summary:
summary: text type: text
# Echo of the style input for downstream audit. description:
style: text en: The summary text.
# Echo of the language input. de: Die zusammengefasste Antwort.
language: text style:
# Endpoint the summary was generated against. type: text
model_endpoint: text description:
# Model identifier as supplied to the LLM API. en: Echo of the style input for downstream audit.
model_name: text de: Echo des Style-Inputs für Downstream-Audit.
# SHA-256 digest of the served Ollama model (when reachable). language:
model_digest: text type: text
description:
en: Echo of the language input.
de: Echo des Language-Inputs.
model_endpoint:
type: text
description:
en: Endpoint the summary was generated against.
de: Endpunkt, gegen den die Zusammenfassung 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 required.
permissions: permissions: