Capabilities topic
Capabilities
Six single-method contracts, one per medium: text, image, video, speech, sound effect, and music. Each contract describes what to generate, not how. You code against the contract and swap the implementation, so a real provider client and an in-memory fake are interchangeable at the call site.
Classes
- ImageGenerator Capabilities
- The capability of turning an ImageRequest into image bytes.
- MusicGenerator Capabilities
- The capability of turning a MusicRequest into music bytes.
- SoundEffectGenerator Capabilities
- The capability of turning a SoundEffectRequest into sound-effect bytes.
- SpeechGenerator Capabilities
- The capability of turning a SpeechRequest into spoken audio bytes.
- TextGenerator Capabilities
- The capability of turning a TextRequest into a text completion.
- VideoGenerator Capabilities
- The capability of turning a VideoRequest into video bytes.