Skip to content
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

cre8-app-intelligence · module adapters::anthropic · src · 578 lines (483 code, 46 comment) · sha 672cab3084a4b85f

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.

functionkindlinescyclomaticcallerscalleesweightcrystal
AnthropicProvider::newsrc/adapters/anthropic.rs:112method311002
anthropic_tool_result_messagesrc/adapters/anthropic.rs:72fn153101.5
anthropic_message_from_llmsrc/adapters/anthropic.rs:29fn266211.2
llm_http_timeoutsrc/adapters/anthropic.rs:25fn31301
AnthropicProvider::build_vision_bodysrc/adapters/anthropic.rs:211method7011300.8
reqsrc/adapters/anthropic.rs:398fn131200.8
vision_reqsrc/adapters/anthropic.rs:474fn121200.7
anthropic_tools_bodysrc/adapters/anthropic.rs:88fn161100.7
AnthropicProvider::parse_vision_responsesrc/adapters/anthropic.rs:282method194200.7
AnthropicProvider::build_bodysrc/adapters/anthropic.rs:121method296120.6
AnthropicProvider::parse_responsesrc/adapters/anthropic.rs:151method425100.6
anthropic_tool_use_blockssrc/adapters/anthropic.rs:56fn152000.5
AnthropicProvider::with_modelsrc/adapters/anthropic.rs:116method41000.5
AnthropicProvider::supports_native_toolssrc/adapters/anthropic.rs:304trait impl11000.5
AnthropicProvider::idsrc/adapters/anthropic.rs:305trait impl31000.5
AnthropicProvider::kindsrc/adapters/anthropic.rs:308trait impl31000.5
AnthropicProvider::default_modelsrc/adapters/anthropic.rs:311trait impl31000.5
AnthropicProvider::supports_image_messagessrc/adapters/anthropic.rs:315trait impl11000.5
AnthropicProvider::completesrc/adapters/anthropic.rs:317trait impl333070.5
AnthropicProvider::supports_visionsrc/adapters/anthropic.rs:351trait impl71000.5
AnthropicProvider::complete_visionsrc/adapters/anthropic.rs:359trait impl333060.5
build_body_lifts_system_out_of_messagessrc/adapters/anthropic.rs:413fn81030.5
parse_response_concatenates_text_blockssrc/adapters/anthropic.rs:423fn151020.5
parse_response_extracts_tool_usesrc/adapters/anthropic.rs:440fn151020.5
http_timeout_is_finitesrc/adapters/anthropic.rs:457fn41010.5
complete_rejects_empty_keysrc/adapters/anthropic.rs:463fn51030.5
anthropic_provider_supports_visionsrc/adapters/anthropic.rs:488fn41020.5
build_vision_body_emits_content_blockssrc/adapters/anthropic.rs:494fn221040.5
build_vision_body_splits_user_and_assistant_turnssrc/adapters/anthropic.rs:518fn241030.5
parse_vision_response_extracts_text_and_usagesrc/adapters/anthropic.rs:544fn161030.5
complete_vision_rejects_empty_keysrc/adapters/anthropic.rs:562fn51030.5
chat_image_block_preserves_caption_and_bytessrc/adapters/anthropic.rs:573fn51010.5

Source not readable from this process.