AGENT SKILL

e2e-fixtures

liter-llm e2e fixture schema: per-category fixture files, call names, mock provider responses, env and skip, and assertion types. Use when adding or editing a liter-llm e2e fixture.

License 许可
MIT
所属仓库
xberg-io/liter-llm
最近更新
2026-11-14
Stars
★ 266
Forks
27

01 前言 Front Matter

type
Reference
paths
[ "fixtures/**", "e2e/**" ]
title
E2E Fixtures
x-ai-rulez
{ "id": "e2e-fixtures", "kind": "skill", "metadata": { "name": "e2e-fixtures" } }
description
liter-llm e2e fixture schema: per-category fixture files, call names, mock provider responses, env and skip, and assertion types. Use when adding or editing a liter-llm e2e fixture.

02 资源文件 1

03 SKILL.md 正文

liter-llm E2E Fixtures

  • One fixture object per file, fixtures/<category>/<id>.json. fixtures/schema.json still requires an api field that no fixture carries; the generator reads call, so follow existing fixtures, not the schema.
  • Categories match the directory (smoke, chat, streaming, error-handling, proxy, files, batches, rerank, embed, ...); the exception is providers/, whose fixtures carry the test kind as category (smoke, error-handling, streaming, tool-calling), not the directory.
  • Fields: id, description, category, docs {topic, stem, title}, tags, call, input, mock_response {status, body}, assertions, and optionally env, skip {languages, reason}, requirements.
  • call names an API: chat is the default; named calls include chat_stream, embed, rerank, image_generate, list_models, moderate, search, create_response, speech, transcribe, ocr, create_batch (full set in alef.toml). input is the request body.
  • Assertion types in use: equals, not_error, error, count_equals, count_min, not_empty, is_true, greater_than, contains. error takes the error kind as value (for example Authentication); assert the HTTP status with field: error.status_code.
  • Loop: mise run e2e:generate then alef test --e2e (one binding: alef test --lang <lang> --e2e, or mise run <lang>:e2e:test where the task exists); alef lint lints the generated suites.

04 同仓库更多 Skills

xberg-io
xberg-io/liter-llm

liter-llm

Universal LLM API client for 174 providers with native bindings for 14 languages. Use when writing code that calls LLM APIs via liter-llm in Python, TypeScript, Rust, Go, Java, C#, Ruby, PHP, Elixir, WASM, or C, when running the OpenAI-compatible proxy, or when calling LLMs through the MCP server. Covers chat, streaming, tool calling, embeddings, image generation, speech, transcription, moderation, web search, OCR, reranking, provider routing, middleware, and configuration.

★ 266
xberg-io
xberg-io/liter-llm

liter-llm-using-the-mcp-server

Use when calling LLM APIs through the liter-llm MCP server's 22 tools, and to decide when MCP beats the CLI or SDK. Covers the tool surface, the auto-installing launcher, and authentication.

★ 266
xberg-io
xberg-io/liter-llm

liter-llm-tool-calling

Use when defining functions/tools for an LLM to call through liter-llm, or requesting structured JSON outputs. Covers tool schemas, tool_calls handling, and response formats.

★ 266
xberg-io
xberg-io/liter-llm

liter-llm-streaming-responses

Use when streaming tokens incrementally from an LLM via liter-llm over SSE or async iterators. Covers chat_stream, delta handling, and null-content chunks.

★ 266
xberg-io
xberg-io/liter-llm

liter-llm-running-the-proxy

Use when running the `liter-llm api` OpenAI-compatible gateway — virtual keys, per-key rate limits, budgets, cost tracking, and model routing. Covers the TOML config and the 22 REST endpoints.

★ 266
xberg-io
xberg-io/liter-llm

liter-llm-embeddings-and-search

Use when generating embeddings, calling the 12 web-search providers, or running OCR over documents with the 4 OCR providers through liter-llm. Covers embed, search, and ocr methods plus reranking.

★ 266