Skip to content
1 viewer

rust 1,961,941 · typescript 233,850 · javascript 141,145 · python 22,871 · 6,801 files · digest 6d882eacc8db · built in 12.5 s · crystals off

cre8-app-intelligence-api intelligence cargo crate

Shared Intelligence API traits and DTOs for LLM providers, embeddings, and tools.

crates/cre8-app-intelligence-api · level 4 · 1,347 lines (1,046 code) · 5 files · 99 fns (65 tests) · cyclomatic Σ 148

3workspace deps
12direct dependents
96transitive dependents
3calls out
29calls in
71.2call-graph weight
0.0%exact crystals

Neighbourhood

Left: crates that declare this one. Right: crates it declares (dev-dependencies included). Edge width grows with resolved calls.

normal dep · 1 calls · source referencenormal dep · 0 calls · source referencenormal dep · 1 calls · source referencenormal dep · 0 calls · source referencenormal dep · 0 calls · source referencenormal dep · 0 calls · source referencenormal dep · 22 calls · source referencenormal dep · 1 calls · source referencenormal dep · 2 calls · source referencenormal dep · 0 calls · source referencenormal dep · 0 calls · source referencenormal dep · 4 calls · source referencenormal dep · 1 calls · source referencenormal dep · 0 calls · source referencedev dep · 0 calls · incomplete scannormal dep · 0 calls · source referencedev dep · 0 calls · incomplete scanapp-intelligence-apiL4 · 1,046 linescre8-app-intelligence-apiapp-agentL24 · 25,428 linescre8-app-agentapp-code_changeL22 · 2,183 linescre8-app-code_changeapp-collabL18 · 4,876 linescre8-app-collabapp-emulationL13 · 17,269 linescre8-app-emulationapp-inference-proofL9 · 5,610 linescre8-app-inference-proofapp-inference-proof-apiL5 · 947 linescre8-app-inference-proof-apiapp-intelligenceL12 · 6,289 linescre8-app-intelligenceplatform-timeL3 · 65 linescre8-platform-timeutil-lock-extL0 · 195 linescre8-util-lock-extutil-quotaL0 · 237 linescre8-util-quotaapp-memoryL19 · 1,944 linescre8-app-memoryapp-messagingL20 · 25,957 linescre8-app-messagingapp-meteringL11 · 4,358 linescre8-app-meteringapp-radioL17 · 10,687 linescre8-app-radioapp-realmL27 · 7,854 linescre8-app-realmapp-virtual_agentL25 · 21,761 linescre8-app-virtual_agentruntime-test-suiteL0 · 0 linescre8-runtime-test-suite

Files

lowhigh

File call graph

Resolved calls between this crate's files, callers left of callees.

Heaviest functions

By call-graph weight (PageRank; 1.0 is the average function). 99 functions in all.

functionkindlinescyclomaticcallerscalleesweightcrystal
run_tool_loop_observedsrc/tool_loop.rs:90fn878633.3
ModelReference::with_labelsrc/provider.rs:30method41702.7
LlmRequest::validate_image_messagessrc/provider.rs:143method23121102.6
ContextResults::projectsrc/tool_loop.rs:183method1610302.3
run_tool_loopsrc/tool_loop.rs:67fn81612.2
user_reqsrc/tool_loop.rs:380fn101802.2
Checkpoints::marksrc/tool_loop.rs:393method52402.2
dispatch_toolsrc/tool_loop.rs:203fn114101.4
compute_aggregatesrc/pool_observability.rs:94fn131221.4
agg_bucketssrc/pool_observability.rs:57fn41201.3
emit_observationsrc/pool_observability.rs:120fn52201.2
install_manifold_emittersrc/pool_observability.rs:112fn31201
ModelReference::chatsrc/provider.rs:25method41201
ComputeBucket::avg_latency_mssrc/pool_observability.rs:26method32201
has_manifold_emittersrc/pool_observability.rs:116fn31201
DummyEmbed::embedsrc/provider.rs:353trait impl31100.9
EchoTool::namesrc/tool.rs:53trait impl31100.9
ModelReference::with_capabilitiessrc/provider.rs:35method41400.9
ModelReference::with_max_output_tokenssrc/provider.rs:40method41400.9
record_observationsrc/pool_observability.rs:62fn306230.7
observationsrc/pool_observability.rs:132fn121200.7
DummyLlm::idsrc/provider.rs:326trait impl31100.7
DummyLlm::default_modelsrc/provider.rs:330trait impl31100.7
requestsrc/provider.rs:455fn31100.7
LlmProvider::model_referencessrc/provider.rs:259trait default42110.6
LlmProvider::supports_visionsrc/provider.rs:277trait default31100.6
LlmProvider::complete_visionsrc/provider.rs:283trait default31100.6
ComputeBucket::total_tokenssrc/pool_observability.rs:30method31000.5
ComputeAggregate::total_tokenssrc/pool_observability.rs:46method31000.5
bucket_and_aggregate_token_helpers_are_stablesrc/pool_observability.rs:146fn211010.5
record_observation_tracks_success_and_rate_limited_bucketssrc/pool_observability.rs:169fn282040.5
manifold_emitter_install_and_emit_are_observablesrc/pool_observability.rs:199fn173040.5
LlmImage::fmtsrc/provider.rs:88trait impl31000.5
LlmProvider::kindsrc/provider.rs:251trait default31000.5
LlmProvider::supports_image_messagessrc/provider.rs:269trait default11000.5
LlmProvider::supports_native_toolssrc/provider.rs:273trait default11000.5
EmbedProvider::kindsrc/provider.rs:305trait default31000.5
DummyLlm::completesrc/provider.rs:334trait impl102020.5
DummyEmbed::idsrc/provider.rs:349trait impl31000.5
model_reference_builders_and_provider_defaults_are_stablesrc/provider.rs:359fn321070.5

Outside the workspace

anyhow base64 serde serde_json