Implementation:1ay1 Agentty Bundled Model Floor
| 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
- Repository: 1ay1_Agentty
- File: include/agentty/domain/bundled_catalog.hpp
- Lines: 1-127
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