1 viewer
rust 1,849,384 · typescript 232,426 · javascript 131,078 · python 19,227 · 6,366 files · digest 815dcbacab85 · built in 1.4 s · crystals off
crates/cre8-app-intelligence-api/src/provider.rs
Items
struct ModelReference impl ModelReference struct ToolSpec struct ToolCall struct ToolResult struct LlmImage impl Debug for LlmImage enum LlmMessage struct LlmRequest impl LlmRequest struct LlmResponse struct LlmUsage enum LlmVisionMessage struct LlmVisionRequest struct LlmVisionResponse trait LlmProvider trait EmbedProvider struct DummyLlm impl LlmProvider for DummyLlm struct DummyEmbed impl EmbedProvider for DummyEmbed
Functions
By call-graph weight (PageRank; 1.0 is the average function). 23 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| ModelReference::with_labelsrc/provider.rs:30 | method | 4 | 1 | 7 | 0 | 2.8 | |
| LlmRequest::validate_image_messagessrc/provider.rs:143 | method | 23 | 12 | 11 | 0 | 2.6 | |
| ModelReference::chatsrc/provider.rs:25 | method | 4 | 1 | 2 | 0 | 1 | |
| DummyEmbed::embedsrc/provider.rs:353 | trait impl | 3 | 1 | 1 | 0 | 0.9 | |
| ModelReference::with_capabilitiessrc/provider.rs:35 | method | 4 | 1 | 4 | 0 | 0.9 | |
| ModelReference::with_max_output_tokenssrc/provider.rs:40 | method | 4 | 1 | 4 | 0 | 0.9 | |
| DummyLlm::idsrc/provider.rs:326 | trait impl | 3 | 1 | 1 | 0 | 0.7 | |
| DummyLlm::default_modelsrc/provider.rs:330 | trait impl | 3 | 1 | 1 | 0 | 0.7 | |
| requestsrc/provider.rs:455 | fn | 3 | 1 | 1 | 0 | 0.7 | |
| LlmProvider::model_referencessrc/provider.rs:259 | trait default | 4 | 2 | 1 | 1 | 0.6 | |
| LlmProvider::supports_visionsrc/provider.rs:277 | trait default | 3 | 1 | 1 | 0 | 0.6 | |
| LlmProvider::complete_visionsrc/provider.rs:283 | trait default | 3 | 1 | 1 | 0 | 0.6 | |
| LlmImage::fmtsrc/provider.rs:88 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| LlmProvider::kindsrc/provider.rs:251 | trait default | 3 | 1 | 0 | 0 | 0.5 | |
| LlmProvider::supports_image_messagessrc/provider.rs:269 | trait default | 1 | 1 | 0 | 0 | 0.5 | |
| LlmProvider::supports_native_toolssrc/provider.rs:273 | trait default | 1 | 1 | 0 | 0 | 0.5 | |
| EmbedProvider::kindsrc/provider.rs:305 | trait default | 3 | 1 | 0 | 0 | 0.5 | |
| DummyLlm::completesrc/provider.rs:334 | trait impl | 10 | 2 | 0 | 2 | 0.5 | |
| DummyEmbed::idsrc/provider.rs:349 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| model_reference_builders_and_provider_defaults_are_stablesrc/provider.rs:359 | fn | 32 | 1 | 0 | 7 | 0.5 | |
| llm_dtos_serde_defaults_and_tool_shapes_roundtripsrc/provider.rs:393 | fn | 38 | 1 | 0 | 0 | 0.5 | |
| vision_and_embedding_shapes_are_exercisedsrc/provider.rs:433 | fn | 16 | 1 | 0 | 1 | 0.5 | |
| image_requests_fail_closed_and_roundtrip_without_debug_payloadssrc/provider.rs:459 | fn | 10 | 1 | 0 | 2 | 0.5 |
Source not readable from this process.