Templating rendering and generation parsing for Cohere models, version 0.9.0. This library provides tools to manage prompt templates and parse model outputs, enabling structured interactions with Cohere's generative models. It is actively developed with a focus on ease-of-use for prompt engineering.
pip install cohere-melodyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage: initialize Melody with API key, render a prompt template, and parse a model response into structured data.
Ensure schema strings exactly match the format of the generation output, including punctuation and spacing.
Replace `from melody import Template` with `from melody import CohereMelody` and use the `render` method.
Use only lowercase variable names in templates, e.g., `{{my_var}}` not `{{MyVar}}`.No dependency data recorded yet.