Skip to contents

Anthropic API Processor

Anthropic API Processor

Details

Concrete implementation of BaseAPIProcessor for Anthropic models. Handles Anthropic-specific API calls, authentication, and response parsing.

Super class

mLLMCelltype::BaseAPIProcessor -> AnthropicProcessor

Methods

Inherited methods


Method new()

Initialize Anthropic processor

Usage

AnthropicProcessor$new(base_url = NULL)


Method get_default_api_url()

Get default Anthropic API URL

Usage

AnthropicProcessor$get_default_api_url()


Method make_api_call()

Make API call to Anthropic

Usage

AnthropicProcessor$make_api_call(chunk_content, model, api_key)


Method extract_response_content()

Extract response content from Anthropic API response

Usage

AnthropicProcessor$extract_response_content(response, model)


Method clone()

The objects of this class are cloneable with this method.

Usage

AnthropicProcessor$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.