Anthropic
minisweagent.models.anthropic
AnthropicModel
AnthropicModel(**kwargs)
Bases: LitellmModel
For the use of anthropic models, we need to add explicit cache control marks to the messages or we lose out on the benefits of the cache. Because break points are limited per key, we also need to rotate between different keys if running with multiple agents in parallel threads.
Source code in src/minisweagent/models/litellm_model.py
26 27 28 29 |
|
query
query(messages: list[dict], **kwargs) -> dict
Source code in src/minisweagent/models/anthropic.py
15 16 17 18 19 |
|