AnthropicBuilder class

Anthropic-specific LLM builder with provider-specific configuration methods

This builder provides a layered configuration approach where Anthropic-specific parameters are handled separately from the generic LLMBuilder, keeping the main builder clean and focused.

Use this for Anthropic-specific parameters only. For common parameters like apiKey, model, temperature, etc., continue using the base LLMBuilder methods.

Constructors

AnthropicBuilder.new(LLMBuilder _baseBuilder)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build() Future<ChatCapability>
Builds and returns a configured LLM provider instance
buildFileManagement() Future<FileManagementCapability>
Builds a provider with FileManagementCapability
buildModelListing() Future<ModelListingCapability>
Builds a provider with ModelListingCapability
container(String containerId) AnthropicBuilder
Sets the container ID for workbench usage
forDevelopment({String? userId, String? sessionId, String? version}) AnthropicBuilder
Configure for development with tracking metadata
forProduction({required String userId, required String sessionId, required String applicationName, String? version, Map<String, dynamic>? additionalMetadata}) AnthropicBuilder
Configure for production with comprehensive tracking
forResearch({required String experimentId, required String researcherId, String? hypothesis, Map<String, dynamic>? experimentParameters}) AnthropicBuilder
Configure for research with experiment tracking
forWorkbench({required String containerId, String? projectName, String? experimentId}) AnthropicBuilder
Configure for workbench usage
mcpServers(List<AnthropicMCPServer> servers) AnthropicBuilder
Sets MCP (Model Context Protocol) servers
metadata(Map<String, dynamic> data) AnthropicBuilder
Sets metadata for the request
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
withMcpServers({String? fileServerUrl, String? databaseServerUrl, String? webServerUrl, List<AnthropicMCPServer>? customServers}) AnthropicBuilder
Configure with MCP servers for enhanced capabilities

Operators

operator ==(Object other) bool
The equality operator.
inherited