Anthropic API Processor
Anthropic API Processor
mLLMCelltype::BaseAPIProcessor
-> AnthropicProcessor
new()
Initialize Anthropic processor
AnthropicProcessor$new(base_url = NULL)
base_url
Optional custom base URL for Anthropic API
get_default_api_url()
Get default Anthropic API URL
AnthropicProcessor$get_default_api_url()
Default Anthropic API endpoint URL
make_api_call()
Make API call to Anthropic
AnthropicProcessor$make_api_call(chunk_content, model, api_key)
chunk_content
Content for this chunk
model
Model identifier
api_key
API key
httr response object
extract_response_content()
Extract response content from Anthropic API response
AnthropicProcessor$extract_response_content(response, model)
response
httr response object
model
Model identifier
Extracted text content
clone()
The objects of this class are cloneable with this method.
AnthropicProcessor$clone(deep = FALSE)
deep
Whether to make a deep clone.
Concrete implementation of BaseAPIProcessor for Anthropic models. Handles Anthropic-specific API calls, authentication, and response parsing.