Interface ModelDiscovery
- All Known Implementing Classes:
AnthropicBedrockMantleProvider, AnthropicBedrockProvider, AnthropicDirectProvider, AzureFoundryOpenAIProvider, BedrockCohereEmbeddingsProvider, BedrockConverseProvider, LocalSystemOneProvider, OpenAIChatCompletionsProvider, OpenAICompatibleEmbeddingsProvider, OpenAICompatibleProvider, OpenAICompatibleResponsesProvider, OpenAIEmbeddingsProvider, OpenAIProvider, SystemOneProvider
public interface ModelDiscovery
What a provider knows about its own account that the catalog cannot: which models the
account can reach, and, where the provider publishes them through an API, the account's
limits and each model's retention posture. A
ClientProvider that can answer
implements this beside its client construction; CatalogDiscovery walks every
configured provider on the classpath, asks the ones that implement it, and reports the ones
that do not as "listing unsupported" with their seed entries pinged blind.
The answer is the account's, not the world's: an Anthropic key lists the models that key may call, an AWS identity lists what its region and account have access to. Limits that the provider only reveals on a response (Anthropic's and OpenAI's rate-limit headers) are not this method's business; the ping observes those.
- Since:
- 0.1 (2026-09-12)
- Author:
- Andrey Santrosyan
-
Method Summary
Modifier and TypeMethodDescriptionEvery model the account can reach on this provider's surface.
-
Method Details
-
listModels
Every model the account can reach on this provider's surface. The provider's own failure (a rejected credential, an unreachable endpoint) propagates as-is; the discovery reports it verbatim against the provider and moves on.- Throws:
IOException
-