AnthropicModels class
Anthropic Models capability implementation
This module handles model listing functionality for Anthropic providers. Reference: https://docs.anthropic.com/en/api/models-list
- Implemented types
Constructors
- AnthropicModels.new(AnthropicClient client, AnthropicConfig config)
Properties
- client → AnthropicClient
-
final
- config → AnthropicConfig
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- modelsEndpoint → String
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getModel(
String modelId) → Future< AIModel?> - Get information about a specific model
-
listModels(
{String? beforeId, String? afterId, int limit = 20}) → Future< List< AIModel> > - List available models from Anthropic API
-
models(
) → Future< List< AIModel> > -
Get available models from the provider
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited