capsule AI-native Unix-like composition layer

capsule.yaml

1,510 bytes · 48 lines · capsule://quake0day/[email protected] raw on github

apiVersion: capsule.dev/v0.1
kind: Capsule
name: cverse-asr-inference-adapter
version: 0.1.0
type: adapter
purpose:
  summary: 'Provides adapters for various Automatic Speech Recognition (ASR) models,
    allowing the core inference service to use different ASR providers (e.g., Qwen
    ASR, Whisper) through a unified interface.

    '
  owns:
  - Base ASR plugin interface
  - Specific ASR model implementations (e.g., Qwen, Whisper)
  does_not_own:
  - The core inference service
  - Other AI model types (LLM, TTS, Avatar, etc.)
interfaces:
  provides:
  - kind: library
    name: asr-plugin
    description: ASR model implementations conforming to the inference core's plugin
      interface.
dependencies:
  capsules:
  - name: cverse-inference-core
    version: '>=0.1.0'
agent:
  summary_for_ai: 'An AI agent working on this capsule would focus on adding new ASR
    model integrations, improving existing ASR model performance, or optimizing the
    ASR plugin''s interaction with external APIs. It requires knowledge of ASR technologies
    and Python plugin development.

    '
  avoid:
  - Modifying the core inference service or other AI model types.
verification:
  invariants:
  - ASR plugins must correctly transcribe audio inputs.
  - Plugins must adhere to the defined ASR plugin interface.
x-reuse:
  notes: 'Specific API keys or endpoint configurations for Qwen ASR or Whisper would
    need to be parameterized or configured by the consumer.

    '
x-reconstruct:
  install: install.json