Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:1ay1 Agentty Bundled Model Floor

From Leeroopedia
Knowledge Sources
Domains Model_Catalog, Provider_Abstraction
Last Updated 2026-10-28 12:00 GMT

Overview

Single source of truth for the offline bundled model floor per provider, replacing four+ hand-maintained lists that could and did drift.

Description

The agentty::catalog::bundled function is THE single bundled model floor for every provider. Historically each provider's offline floor list lived in a different place: `seed_models()`, the anthropic transport's inline fallback, `selection.cpp`'s `bundled_models_for()`, and per-provider `bundled_models()`. Four+ hand-maintained lists that could (and did) drift — a model listed in one but not another is exactly how a newly-shipped flagship showed in one picker surface but not the fused one.

Every site that needs a floor calls `catalog::bundled(provider_id)`. The live `/v1/models` fetch still supersedes it (the floor is the floor, not the ceiling). Capabilities stay DERIVED from the id (`ModelCapabilities::from_id`) — this file only owns WHICH ids exist offline, never what they can do.

Newest-first: `front()` is the sensible default when the user gives no `-m`. Providers whose real catalog is too large or user-defined (openrouter, custom hosts, locals) intentionally return empty.

Usage

Import this when you need the offline model floor for a provider — for seeding pickers before the live catalog fetch lands, or as a fallback when the fetch fails.

Code Reference

Source Location

Signature

namespace agentty::catalog {

// Append [1m] long-context companion for every suffix-capable model.
inline void add_1m_variants(std::vector<ModelInfo>& v);

// The offline floor for `provider_id`, newest-first.
// Empty when there is no sensible guess (openrouter, custom hosts, locals).
[[nodiscard]] inline std::vector<ModelInfo> bundled(std::string_view provider_id);
}

Import

#include "agentty/domain/bundled_catalog.hpp"

I/O Contract

Inputs

Name Type Required Description
provider_id std::string_view Yes Agentty provider id ("anthropic", "chatgpt", "copilot", ...)

Outputs

Name Type Description
bundled() std::vector<ModelInfo> Offline model floor, newest-first; empty when no guess

Usage Examples

Get the Floor for a Provider

#include "agentty/domain/bundled_catalog.hpp"

auto floor = agentty::catalog::bundled("anthropic");
// floor = {Claude Fable 5, Claude Opus 4.5, Claude Sonnet 4.5,
//          Claude Haiku 4.5, + [1m] variants for each}

auto gpt = agentty::catalog::bundled("chatgpt");
// gpt = {GPT-5}

auto empty = agentty::catalog::bundled("openrouter");
// empty = {} — too large/user-defined to guess

Add 1M Context Variants

auto models = agentty::catalog::bundled("anthropic");
// add_1m_variants already called internally for anthropic;
// call it yourself for a live-fetch catalog:
agentty::catalog::add_1m_variants(models);
// Every suffix-capable model now has a [1m] companion row

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment