text-summarize/module.yaml
flemming-it 09c542b5bd
Some checks failed
CI / Linux x86_64 (Forgejo) (push) Failing after 1s
chore(module): schema_version 2 + explicit provider
Brings module.yaml in line with F∆I 0.12.0's capability naming
convention. The legacy schema_version 1 (with implicit provider)
still loads in 0.12.0 via the grace-period default, but this
bump makes the publisher identity explicit and unblocks
storage-layout migration via 'fai migrate'.

See fai/platform docs/reference/capability-namespaces.yaml +
docs/operations/migration-to-0.12.md.

Signed-off-by: flemming-it <sf@flemming.it>
2026-05-28 11:48:25 +02:00

49 lines
1.2 KiB
YAML

schema_version: 2
provider: fai
name: text-summarize
version: 0.1.0
# Capability provided by this module.
provides:
- capability: text.summarize
version: 0.1.0
# Inputs the invoke function accepts.
inputs:
# Source text to summarise.
text: text
# Style / shape of the summary, e.g. "one paragraph",
# "three bullet points", "a tweet". Defaults to
# "one paragraph" when omitted.
style: text
# Optional output language hint, e.g. "German", "ja-JP".
# Empty = same language as the 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
# Outputs produced.
outputs:
# The summary text.
summary: text
# Echo of the style input for downstream audit.
style: text
# Echo of the language input.
language: text
# Endpoint the summary 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
# Permissions required.
permissions:
- "net: localhost"
- "net: 127.0.0.1"
- "net: api.openai.com"
- "net: api.anthropic.com"