1 viewer
rust 1,863,570 · typescript 235,774 · javascript 133,179 · python 20,426 · 6,416 files · digest 72c4f5c61f73 · built in 1.7 s · crystals off
crates/cre8-app-metering/src/agent_tools.rs
Items
struct EconomyView struct CapMeta impl EconomyView struct GetBalanceTool impl GetBalanceTool struct BalanceArgs impl Tool for GetBalanceTool struct GetCapHeadroomTool impl GetCapHeadroomTool struct CapArgs impl Tool for GetCapHeadroomTool struct ListContractsTool impl ListContractsTool struct ListArgs impl Tool for ListContractsTool struct ProposeFlowTool impl ProposeFlowTool struct ProposeArgs impl Tool for ProposeFlowTool
Functions
By call-graph weight (PageRank; 1.0 is the average function). 36 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| EconomyView::newsrc/agent_tools.rs:77 | method | 3 | 1 | 11 | 1 | 3.6 | |
| fresh_viewsrc/agent_tools.rs:457 | fn | 8 | 1 | 14 | 4 | 3.1 | |
| ProposeFlowTool::newsrc/agent_tools.rs:326 | method | 3 | 1 | 5 | 0 | 1.5 | |
| permissive_policysrc/agent_tools.rs:466 | fn | 3 | 1 | 1 | 0 | 1.2 | |
| GetBalanceTool::newsrc/agent_tools.rs:95 | method | 3 | 1 | 4 | 0 | 1.1 | |
| GetCapHeadroomTool::newsrc/agent_tools.rs:170 | method | 3 | 1 | 4 | 0 | 1.1 | |
| ListContractsTool::newsrc/agent_tools.rs:252 | method | 3 | 1 | 3 | 0 | 1.1 | |
| EconomyView::register_capsrc/agent_tools.rs:83 | method | 3 | 1 | 4 | 1 | 1 | |
| GetBalanceTool::namesrc/agent_tools.rs:108 | trait impl | 3 | 1 | 1 | 0 | 0.9 | |
| GetCapHeadroomTool::namesrc/agent_tools.rs:182 | trait impl | 3 | 1 | 1 | 0 | 0.9 | |
| ListContractsTool::namesrc/agent_tools.rs:264 | trait impl | 3 | 1 | 1 | 0 | 0.9 | |
| ProposeFlowTool::namesrc/agent_tools.rs:343 | trait impl | 3 | 1 | 1 | 0 | 0.9 | |
| default_agent_toolssrc/agent_tools.rs:441 | fn | 8 | 1 | 2 | 5 | 0.9 | |
| creditsrc/agent_tools.rs:470 | fn | 5 | 1 | 3 | 1 | 0.9 | |
| GetBalanceTool::specsrc/agent_tools.rs:112 | trait impl | 24 | 1 | 0 | 1 | 0.5 | |
| GetBalanceTool::executesrc/agent_tools.rs:137 | trait impl | 24 | 2 | 0 | 0 | 0.5 | |
| GetCapHeadroomTool::specsrc/agent_tools.rs:186 | trait impl | 22 | 1 | 0 | 1 | 0.5 | |
| GetCapHeadroomTool::executesrc/agent_tools.rs:209 | trait impl | 34 | 2 | 0 | 0 | 0.5 | |
| ListContractsTool::specsrc/agent_tools.rs:268 | trait impl | 20 | 1 | 0 | 1 | 0.5 | |
| ListContractsTool::executesrc/agent_tools.rs:289 | trait impl | 28 | 2 | 0 | 1 | 0.5 | |
| ProposeFlowTool::specsrc/agent_tools.rs:347 | trait impl | 38 | 1 | 0 | 1 | 0.5 | |
| ProposeFlowTool::executesrc/agent_tools.rs:386 | trait impl | 49 | 3 | 0 | 1 | 0.5 | |
| get_balance_all_returns_every_balancesrc/agent_tools.rs:479 | fn | 11 | 1 | 0 | 3 | 0.5 | |
| get_balance_specific_assetsrc/agent_tools.rs:492 | fn | 7 | 1 | 0 | 3 | 0.5 | |
| get_balance_empty_peer_returns_zerosrc/agent_tools.rs:501 | fn | 6 | 1 | 0 | 2 | 0.5 | |
| cap_headroom_reports_remainingsrc/agent_tools.rs:511 | fn | 20 | 1 | 0 | 4 | 0.5 | |
| cap_headroom_unknown_namespace_errorssrc/agent_tools.rs:533 | fn | 6 | 1 | 0 | 2 | 0.5 | |
| cap_headroom_zero_used_yields_full_headroomsrc/agent_tools.rs:541 | fn | 12 | 1 | 0 | 3 | 0.5 | |
| list_contracts_returns_everything_when_unfilteredsrc/agent_tools.rs:557 | fn | 8 | 1 | 0 | 2 | 0.5 | |
| list_contracts_filters_by_intentsrc/agent_tools.rs:567 | fn | 8 | 1 | 0 | 2 | 0.5 | |
| propose_flow_returns_consequence_previewsrc/agent_tools.rs:579 | fn | 19 | 1 | 0 | 2 | 0.5 | |
| propose_flow_does_not_mutate_ledgersrc/agent_tools.rs:600 | fn | 15 | 1 | 0 | 2 | 0.5 | |
| propose_flow_no_match_returns_ok_falsesrc/agent_tools.rs:617 | fn | 13 | 1 | 0 | 2 | 0.5 | |
| propose_flow_invalid_args_errorssrc/agent_tools.rs:632 | fn | 8 | 1 | 0 | 2 | 0.5 | |
| every_tool_exposes_a_specsrc/agent_tools.rs:644 | fn | 9 | 2 | 0 | 2 | 0.5 | |
| default_kit_contains_all_foursrc/agent_tools.rs:655 | fn | 10 | 1 | 0 | 2 | 0.5 |
Source not readable from this process.