协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
mellea【开发与工程】Use Mellea to build, test, serve, evaluate, instrument, and extend typed generative Python programs across provider backends and agent workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Mellea is a Python library for generative programs: typed functions and
components become model calls, schemas constrain outputs, requirements validate
meaning, and sampling can repair or select candidates. Use this repo skill when
a task names Mellea, generative, MelleaSession, mellea.stdlib, m serve,
m eval, Granite adapters, Mellea plugins, or a Mellea-compatible provider.
Choose the smallest route that owns the work:
mify.m eval.m commands, Mellea
HTTP serving, model routing, response formats, streaming endpoints,
decomposition, and safe CLI inspection.If a request crosses routes, start here, select an owner for each phase, and keep the backend, safety, evaluation, serving, or telemetry boundary explicit.
Mellea requires Python 3.11 or newer. For a normal application install:
uv pip install mellea
Add only the extra for the selected surface, for example:
uv pip install 'mellea[hf]' # local Hugging Face backend
uv pip install 'mellea[server,cli]' # HTTP service and m CLI
uv pip install 'mellea[tools]' # MCP/tool integrations
uv pip install 'mellea[telemetry]' # OpenTelemetry and hook telemetry
Do not install all merely to fix an import. Provider credentials, Ollama,
model checkpoints, cloud SDK configuration, and servers are separate runtime
prerequisites. Read troubleshooting before
changing dependencies. For source-version alignment, inspect
provenance.
Minimal base import check:
python -c "import mellea; print('mellea import ok')"
Bundled helpers live under the owning route's scripts/ directory. They are
safe diagnostics or validators, not replacements for a model provider:
backends-and-models/scripts/check_backends.py checks imports and optional
device state without provider calls.generative-programming/scripts/inspect_api.py prints verified signatures.tools-and-agents/scripts/audit_tool_request.py audits JSON tool requests
without executing them.sampling-and-evaluation/scripts/validate_eval_config.py validates a small
eval config without running an evaluator.serving-and-cli/scripts/check_cli_surface.py inspects CLI help/static
structure without starting a server.observability-and-extensions/scripts/check_telemetry_install.py checks
telemetry imports without creating exporters.Read the nearest sub-skill before running a helper; do not pass secrets or large payloads to diagnostics.