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
crates/cre8-app-agent/src/alignment.rs
Items
trait ProfileLookup struct InMemoryProfileLookup impl InMemoryProfileLookup impl ProfileLookup for InMemoryProfileLookup struct FindAlignedPeersTool impl FindAlignedPeersTool struct FindArgs struct AlignmentMatch impl Tool for FindAlignedPeersTool struct MeritTool impl MeritTool struct AgentMerit impl Tool for MeritTool struct EmptyMeritSource impl MeritDataSource for EmptyMeritSource
Functions
By call-graph weight (PageRank; 1.0 is the average function). 37 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| InMemoryProfileLookup::newsrc/alignment.rs:52 | method | 3 | 1 | 19 | 0 | 2.9 | |
| freshsrc/alignment.rs:356 | fn | 21 | 1 | 11 | 6 | 2 | |
| FindAlignedPeersTool::newsrc/alignment.rs:103 | method | 3 | 1 | 8 | 0 | 1.6 | |
| profile_with_entrysrc/alignment.rs:380 | fn | 15 | 1 | 6 | 0 | 1.3 | |
| MeritTool::newsrc/alignment.rs:233 | method | 3 | 1 | 3 | 0 | 1 | |
| agent_alignment_toolssrc/alignment.rs:332 | fn | 11 | 2 | 4 | 4 | 1 | |
| FindAlignedPeersTool::namesrc/alignment.rs:138 | trait impl | 3 | 1 | 1 | 0 | 0.9 | |
| MeritTool::namesrc/alignment.rs:266 | trait impl | 3 | 1 | 1 | 0 | 0.9 | |
| MeritTool::with_sourcesrc/alignment.rs:240 | method | 3 | 1 | 2 | 0 | 0.8 | |
| rep_ofsrc/alignment.rs:91 | fn | 3 | 1 | 2 | 1 | 0.7 | |
| default_min_similaritysrc/alignment.rs:121 | fn | 3 | 1 | 1 | 0 | 0.6 | |
| default_limitsrc/alignment.rs:125 | fn | 3 | 1 | 1 | 0 | 0.6 | |
| InMemoryProfileLookup::insertsrc/alignment.rs:56 | method | 3 | 1 | 0 | 0 | 0.5 | |
| InMemoryProfileLookup::lookupsrc/alignment.rs:62 | trait impl | 4 | 1 | 0 | 1 | 0.5 | |
| InMemoryProfileLookup::peer_universesrc/alignment.rs:67 | trait impl | 4 | 1 | 0 | 0 | 0.5 | |
| lookup_returns_seeded_and_empty_profilessrc/alignment.rs:78 | fn | 9 | 1 | 0 | 2 | 0.5 | |
| FindAlignedPeersTool::specsrc/alignment.rs:142 | trait impl | 30 | 1 | 0 | 1 | 0.5 | |
| FindAlignedPeersTool::executesrc/alignment.rs:173 | trait impl | 48 | 5 | 0 | 4 | 0.5 | |
| MeritTool::specsrc/alignment.rs:270 | trait impl | 18 | 1 | 0 | 1 | 0.5 | |
| MeritTool::executesrc/alignment.rs:289 | trait impl | 35 | 2 | 0 | 5 | 0.5 | |
| EmptyMeritSource::rep_historysrc/alignment.rs:399 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| EmptyMeritSource::ballot_responsessrc/alignment.rs:403 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| EmptyMeritSource::payout_outcomessrc/alignment.rs:407 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| EmptyMeritSource::offers_tosrc/alignment.rs:411 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| EmptyMeritSource::agent_receiptssrc/alignment.rs:415 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| profile_lookup_returns_empty_profile_for_unknown_peersrc/alignment.rs:421 | fn | 8 | 1 | 0 | 1 | 0.5 | |
| alignment_tool_specs_are_named_and_describe_inputssrc/alignment.rs:431 | fn | 12 | 1 | 0 | 3 | 0.5 | |
| find_aligned_returns_peers_above_thresholdsrc/alignment.rs:447 | fn | 15 | 1 | 0 | 3 | 0.5 | |
| find_aligned_filters_by_min_repsrc/alignment.rs:464 | fn | 13 | 1 | 0 | 4 | 0.5 | |
| find_aligned_excludes_selfsrc/alignment.rs:479 | fn | 9 | 1 | 0 | 3 | 0.5 | |
| find_aligned_sorts_by_similarity_then_repsrc/alignment.rs:490 | fn | 42 | 1 | 0 | 3 | 0.5 | |
| find_aligned_respects_limitsrc/alignment.rs:534 | fn | 11 | 2 | 0 | 3 | 0.5 | |
| find_aligned_defaults_invalid_arguments_and_tie_breaks_by_repsrc/alignment.rs:547 | fn | 17 | 1 | 0 | 4 | 0.5 | |
| merit_returns_rep_and_profile_fieldssrc/alignment.rs:568 | fn | 18 | 1 | 0 | 3 | 0.5 | |
| merit_with_source_uses_full_merit_walker_pathsrc/alignment.rs:588 | fn | 8 | 1 | 0 | 3 | 0.5 | |
| agent_alignment_tools_returns_two_toolssrc/alignment.rs:600 | fn | 8 | 1 | 0 | 2 | 0.5 | |
| agent_alignment_tools_can_wire_merit_sourcesrc/alignment.rs:610 | fn | 8 | 1 | 0 | 3 | 0.5 |
Source not readable from this process.