Algolia Agent Studio · context APIs unstable

Agent Studiodemos

Small, single-page demos of what the Agent Studio context APIs make possible. context/trim counts exactly what a conversation is carrying; context/compact folds the old part of it into a summary you can still open back up. Each demo runs entirely in the browser, shows every API call it makes, and comes with its source.

The demos

Live

Chat with a book

Take Moby-Dick off the shelf and ask it a question — hierarchical compaction folds 1.2M characters into a conversation that never overflows a 200k window.

  • context/trim
  • context/compact
  • streaming completions
  • cost meter

Open the demo →

Live

Infinite conversation

Arrive 252 exchanges into a thread carrying far more than the working budget can hold. Fold the backlog once, in front of you — then click suggested replies and watch it fold itself, turn after turn.

  • context/trim
  • context/compact
  • auto-compaction
  • seeded histories
  • suggested replies
  • cost meter

Open the demo →