Skip to content

Add v0.3.0/v0.4.0 cookbooks for @betterdb/agent-cache and new Python track#5

Open
KIvanow wants to merge 2 commits into
meet-bhagdev:mainfrom
KIvanow:main
Open

Add v0.3.0/v0.4.0 cookbooks for @betterdb/agent-cache and new Python track#5
KIvanow wants to merge 2 commits into
meet-bhagdev:mainfrom
KIvanow:main

Conversation

@KIvanow
Copy link
Copy Markdown
Contributor

@KIvanow KIvanow commented Apr 23, 2026

Description

Summary

Covers the two most recent releases of both betterdb packages and adds a complete Python cookbook track to match the existing TypeScript coverage.

New content

  • 05-provider-adapters (TypeScript) — OpenAI Chat Completions, OpenAI Responses API, Anthropic Messages, and LlamaIndex adapters; pluggable binary normalizer for multi-modal caching (v0.3.0)
  • betterdb-agent-cache-py/ — full Python track (5 cookbooks): Getting Started, LLM & Tool Cache, Session Store, Provider Adapters, LangGraph Checkpointing; mirrors the TypeScript track feature-for-feature

Updated content

  • 02-llm-and-tool-cache (TypeScript) — default cost table section covering the 1,900+ model bundled table, useDefaultCostTable, and DEFAULT_COST_TABLE export (v0.4.0); costTable no longer required in examples
  • 01-getting-started (TypeScript) — removed manual costTable from constructor example now that defaults cover common models; fixed stats key (betterdb_ac:statsbetterdb_ac:__stats)

Site

  • cookbooks/betterdb/index.html — new Python section (amber cards); new TS cookbook 05 card; subtitle updated from "Two npm packages" to "TypeScript and Python packages"
  • Homepage card updated: 7 → 13 cookbooks, added Python tag

Test plan

  • node build.js completes with no errors across all tracks
  • Serve locally (python3 -m http.server 8080) and verify all 13 cookbook pages load and render correctly
  • Confirm prev/next navigation works end-to-end in both TS and Python tracks
  • Spot-check code examples against package source for accuracy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant