1 viewer
rust 1,847,276 · typescript 232,434 · javascript 131,064 · python 19,227 · 6,362 files · digest fa0546eddd29 · built in 1.5 s · crystals off
crates/cre8-app-intelligence/src/adapters/anthropic.rs
Items
const ENDPOINT const API_VERSION const DEFAULT_MAX_TOKENS const DEFAULT_MODEL const DEFAULT_HTTP_TIMEOUT_SECS const MAX_RESPONSE_BODY_BYTES struct AnthropicProvider impl AnthropicProvider impl AnthropicProvider enum Role impl LlmProvider for AnthropicProvider
Functions
By call-graph weight (PageRank; 1.0 is the average function). 32 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| AnthropicProvider::newsrc/adapters/anthropic.rs:112 | method | 3 | 1 | 10 | 0 | 2 | |
| anthropic_tool_result_messagesrc/adapters/anthropic.rs:72 | fn | 15 | 3 | 1 | 0 | 1.5 | |
| anthropic_message_from_llmsrc/adapters/anthropic.rs:29 | fn | 26 | 6 | 2 | 1 | 1.2 | |
| llm_http_timeoutsrc/adapters/anthropic.rs:25 | fn | 3 | 1 | 3 | 0 | 1 | |
| AnthropicProvider::build_vision_bodysrc/adapters/anthropic.rs:211 | method | 70 | 11 | 3 | 0 | 0.8 | |
| reqsrc/adapters/anthropic.rs:398 | fn | 13 | 1 | 2 | 0 | 0.8 | |
| vision_reqsrc/adapters/anthropic.rs:474 | fn | 12 | 1 | 2 | 0 | 0.7 | |
| anthropic_tools_bodysrc/adapters/anthropic.rs:88 | fn | 16 | 1 | 1 | 0 | 0.7 | |
| AnthropicProvider::parse_vision_responsesrc/adapters/anthropic.rs:282 | method | 19 | 4 | 2 | 0 | 0.7 | |
| AnthropicProvider::build_bodysrc/adapters/anthropic.rs:121 | method | 29 | 6 | 1 | 2 | 0.6 | |
| AnthropicProvider::parse_responsesrc/adapters/anthropic.rs:151 | method | 42 | 5 | 1 | 0 | 0.6 | |
| anthropic_tool_use_blockssrc/adapters/anthropic.rs:56 | fn | 15 | 2 | 0 | 0 | 0.5 | |
| AnthropicProvider::with_modelsrc/adapters/anthropic.rs:116 | method | 4 | 1 | 0 | 0 | 0.5 | |
| AnthropicProvider::supports_native_toolssrc/adapters/anthropic.rs:304 | trait impl | 1 | 1 | 0 | 0 | 0.5 | |
| AnthropicProvider::idsrc/adapters/anthropic.rs:305 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| AnthropicProvider::kindsrc/adapters/anthropic.rs:308 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| AnthropicProvider::default_modelsrc/adapters/anthropic.rs:311 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| AnthropicProvider::supports_image_messagessrc/adapters/anthropic.rs:315 | trait impl | 1 | 1 | 0 | 0 | 0.5 | |
| AnthropicProvider::completesrc/adapters/anthropic.rs:317 | trait impl | 33 | 3 | 0 | 7 | 0.5 | |
| AnthropicProvider::supports_visionsrc/adapters/anthropic.rs:351 | trait impl | 7 | 1 | 0 | 0 | 0.5 | |
| AnthropicProvider::complete_visionsrc/adapters/anthropic.rs:359 | trait impl | 33 | 3 | 0 | 6 | 0.5 | |
| build_body_lifts_system_out_of_messagessrc/adapters/anthropic.rs:413 | fn | 8 | 1 | 0 | 3 | 0.5 | |
| parse_response_concatenates_text_blockssrc/adapters/anthropic.rs:423 | fn | 15 | 1 | 0 | 2 | 0.5 | |
| parse_response_extracts_tool_usesrc/adapters/anthropic.rs:440 | fn | 15 | 1 | 0 | 2 | 0.5 | |
| http_timeout_is_finitesrc/adapters/anthropic.rs:457 | fn | 4 | 1 | 0 | 1 | 0.5 | |
| complete_rejects_empty_keysrc/adapters/anthropic.rs:463 | fn | 5 | 1 | 0 | 3 | 0.5 | |
| anthropic_provider_supports_visionsrc/adapters/anthropic.rs:488 | fn | 4 | 1 | 0 | 2 | 0.5 | |
| build_vision_body_emits_content_blockssrc/adapters/anthropic.rs:494 | fn | 22 | 1 | 0 | 4 | 0.5 | |
| build_vision_body_splits_user_and_assistant_turnssrc/adapters/anthropic.rs:518 | fn | 24 | 1 | 0 | 3 | 0.5 | |
| parse_vision_response_extracts_text_and_usagesrc/adapters/anthropic.rs:544 | fn | 16 | 1 | 0 | 3 | 0.5 | |
| complete_vision_rejects_empty_keysrc/adapters/anthropic.rs:562 | fn | 5 | 1 | 0 | 3 | 0.5 | |
| chat_image_block_preserves_caption_and_bytessrc/adapters/anthropic.rs:573 | fn | 5 | 1 | 0 | 1 | 0.5 |
Source not readable from this process.