rust 1,859,989 · typescript 235,537 · javascript 132,952 · python 20,426 · 6,407 files · digest 4f42637fac12 · built in 1.2 s · crystals off
crates/cre8-app-agent/src/offer_tools.rs
Items
trait DelegationStore struct InMemoryDelegationStore impl InMemoryDelegationStore impl DelegationStore for InMemoryDelegationStore const ACCEPT_REP_TICK struct ListDelegationOffersTool impl ListDelegationOffersTool impl Tool for ListDelegationOffersTool struct EvaluateDelegationOfferTool impl EvaluateDelegationOfferTool struct EvaluateArgs struct OfferEvaluation impl Tool for EvaluateDelegationOfferTool struct AcceptDelegationOfferTool impl AcceptDelegationOfferTool struct AcceptArgs impl Tool for AcceptDelegationOfferTool struct DeclineDelegationOfferTool impl DeclineDelegationOfferTool struct DeclineArgs impl Tool for DeclineDelegationOfferTool
Functions
By call-graph weight (PageRank; 1.0 is the average function). 71 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| freshsrc/offer_tools.rs:733 | fn | 21 | 1 | 22 | 6 | 2.8 | |
| pending_offersrc/offer_tools.rs:761 | fn | 19 | 1 | 17 | 4 | 2.8 | |
| permissive_policysrc/offer_tools.rs:107 | fn | 3 | 1 | 3 | 0 | 2.3 | |
| AcceptDelegationOfferTool::newsrc/offer_tools.rs:402 | method | 3 | 1 | 10 | 0 | 1.4 | |
| EvaluateDelegationOfferTool::newsrc/offer_tools.rs:219 | method | 3 | 1 | 7 | 0 | 1.3 | |
| derive_offer_id_for_testsrc/offer_tools.rs:807 | fn | 3 | 1 | 6 | 1 | 1.1 | |
| ensure_contextsrc/offer_tools.rs:582 | fn | 8 | 3 | 2 | 0 | 1.1 | |
| DeclineDelegationOfferTool::newsrc/offer_tools.rs:599 | method | 3 | 1 | 5 | 0 | 1 | |
| seed_balancesrc/offer_tools.rs:755 | fn | 5 | 1 | 7 | 1 | 1 | |
| InMemoryDelegationStore::newsrc/offer_tools.rs:61 | method | 3 | 1 | 3 | 0 | 1 | |
| ListDelegationOffersTool::namesrc/offer_tools.rs:156 | trait impl | 3 | 1 | 1 | 0 | 0.9 | |
| EvaluateDelegationOfferTool::namesrc/offer_tools.rs:262 | trait impl | 3 | 1 | 1 | 0 | 0.9 | |
| AcceptDelegationOfferTool::namesrc/offer_tools.rs:423 | trait impl | 3 | 1 | 1 | 0 | 0.9 | |
| DeclineDelegationOfferTool::namesrc/offer_tools.rs:615 | trait impl | 3 | 1 | 1 | 0 | 0.9 | |
| ListDelegationOffersTool::newsrc/offer_tools.rs:150 | method | 3 | 1 | 3 | 0 | 0.8 | |
| agent_offer_toolssrc/offer_tools.rs:710 | fn | 8 | 1 | 2 | 5 | 0.8 | |
| route_per_action_feesrc/offer_tools.rs:680 | fn | 27 | 4 | 2 | 2 | 0.7 | |
| route_acceptance_feesrc/offer_tools.rs:531 | fn | 21 | 4 | 2 | 1 | 0.7 | |
| task_offersrc/offer_tools.rs:1177 | fn | 10 | 1 | 3 | 1 | 0.7 | |
| validate_pending_offer_for_accountsrc/offer_tools.rs:507 | fn | 17 | 4 | 2 | 0 | 0.7 | |
| AcceptDelegationOfferTool::with_task_storesrc/offer_tools.rs:411 | method | 4 | 1 | 3 | 0 | 0.7 | |
| InMemoryDelegationStore::get_consentsrc/offer_tools.rs:73 | method | 3 | 1 | 2 | 0 | 0.6 | |
| scope_summarysrc/offer_tools.rs:114 | fn | 15 | 4 | 2 | 0 | 0.6 | |
| effective_totalsrc/offer_tools.rs:133 | fn | 8 | 2 | 2 | 0 | 0.6 | |
| offer_considerationssrc/offer_tools.rs:342 | fn | 9 | 1 | 2 | 5 | 0.6 | |
| push_clock_considerationsrc/offer_tools.rs:352 | fn | 5 | 2 | 1 | 0 | 0.6 | |
| push_status_considerationsrc/offer_tools.rs:358 | fn | 5 | 2 | 1 | 0 | 0.6 | |
| push_rep_considerationsrc/offer_tools.rs:364 | fn | 9 | 3 | 1 | 0 | 0.6 | |
| push_fee_considerationsrc/offer_tools.rs:374 | fn | 5 | 3 | 1 | 0 | 0.6 | |
| push_scope_considerationsrc/offer_tools.rs:380 | fn | 10 | 3 | 1 | 0 | 0.6 | |
| open_tasksrc/offer_tools.rs:1188 | fn | 3 | 1 | 2 | 1 | 0.6 | |
| InMemoryDelegationStore::offer_countsrc/offer_tools.rs:65 | method | 3 | 1 | 1 | 0 | 0.6 | |
| InMemoryDelegationStore::consent_countsrc/offer_tools.rs:69 | method | 3 | 1 | 1 | 0 | 0.6 | |
| load_targeted_offersrc/offer_tools.rs:334 | fn | 7 | 2 | 1 | 0 | 0.6 | |
| accepted_offer_consentsrc/offer_tools.rs:525 | fn | 5 | 1 | 1 | 1 | 0.6 | |
| claim_offer_tasksrc/offer_tools.rs:553 | fn | 25 | 4 | 1 | 0 | 0.6 | |
| InMemoryDelegationStore::get_offersrc/offer_tools.rs:79 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| InMemoryDelegationStore::upsert_offersrc/offer_tools.rs:83 | trait impl | 4 | 1 | 0 | 0 | 0.5 | |
| InMemoryDelegationStore::list_active_offers_forsrc/offer_tools.rs:88 | trait impl | 10 | 2 | 0 | 0 | 0.5 | |
| InMemoryDelegationStore::upsert_consentsrc/offer_tools.rs:99 | trait impl | 4 | 1 | 0 | 0 | 0.5 | |
| ListDelegationOffersTool::specsrc/offer_tools.rs:160 | trait impl | 16 | 1 | 0 | 1 | 0.5 | |
| ListDelegationOffersTool::executesrc/offer_tools.rs:177 | trait impl | 32 | 1 | 0 | 0 | 0.5 | |
| default_est_actionssrc/offer_tools.rs:235 | fn | 3 | 1 | 0 | 0 | 0.5 | |
| EvaluateDelegationOfferTool::specsrc/offer_tools.rs:266 | trait impl | 28 | 1 | 0 | 1 | 0.5 | |
| EvaluateDelegationOfferTool::executesrc/offer_tools.rs:295 | trait impl | 35 | 1 | 0 | 5 | 0.5 | |
| AcceptDelegationOfferTool::specsrc/offer_tools.rs:427 | trait impl | 24 | 1 | 0 | 1 | 0.5 | |
| AcceptDelegationOfferTool::executesrc/offer_tools.rs:452 | trait impl | 53 | 1 | 0 | 5 | 0.5 | |
| DeclineDelegationOfferTool::specsrc/offer_tools.rs:619 | trait impl | 18 | 1 | 0 | 1 | 0.5 | |
| DeclineDelegationOfferTool::executesrc/offer_tools.rs:638 | trait impl | 30 | 3 | 0 | 0 | 0.5 | |
| list_returns_only_active_offers_for_selfsrc/offer_tools.rs:784 | fn | 22 | 1 | 0 | 4 | 0.5 | |
| evaluate_returns_structured_analysissrc/offer_tools.rs:814 | fn | 17 | 1 | 0 | 3 | 0.5 | |
| evaluate_flags_no_fees_and_negative_repsrc/offer_tools.rs:833 | fn | 18 | 1 | 0 | 5 | 0.5 | |
| evaluate_rejects_offer_for_someone_elsesrc/offer_tools.rs:853 | fn | 12 | 1 | 0 | 4 | 0.5 | |
| accept_emits_consent_routes_fee_and_repsrc/offer_tools.rs:869 | fn | 33 | 1 | 0 | 6 | 0.5 | |
| accept_rejects_non_pendingsrc/offer_tools.rs:904 | fn | 11 | 1 | 0 | 3 | 0.5 | |
| accept_rejects_expired_offersrc/offer_tools.rs:917 | fn | 12 | 1 | 0 | 4 | 0.5 | |
| decline_terminalizes_offer_no_penaltysrc/offer_tools.rs:933 | fn | 17 | 1 | 0 | 3 | 0.5 | |
| route_per_action_fee_debits_offerer_credits_agentsrc/offer_tools.rs:954 | fn | 13 | 1 | 0 | 4 | 0.5 | |
| route_per_action_fee_noop_when_emptysrc/offer_tools.rs:969 | fn | 14 | 1 | 0 | 3 | 0.5 | |
| offer_tool_specs_are_named_and_describe_required_inputssrc/offer_tools.rs:985 | fn | 17 | 1 | 0 | 5 | 0.5 | |
| offer_helpers_cover_scope_totals_context_and_considerationssrc/offer_tools.rs:1004 | fn | 44 | 2 | 0 | 6 | 0.5 | |
| in_memory_store_counts_and_direct_consent_helpers_worksrc/offer_tools.rs:1050 | fn | 20 | 1 | 0 | 5 | 0.5 | |
| route_acceptance_fee_noops_when_emptysrc/offer_tools.rs:1072 | fn | 14 | 1 | 0 | 3 | 0.5 | |
| validation_and_decline_reject_wrong_target_and_terminal_statussrc/offer_tools.rs:1088 | fn | 29 | 1 | 0 | 5 | 0.5 | |
| tool_argument_errors_and_missing_offers_are_reportedsrc/offer_tools.rs:1119 | fn | 15 | 1 | 0 | 4 | 0.5 | |
| evaluate_surfaces_terminal_and_broad_spending_considerationssrc/offer_tools.rs:1136 | fn | 21 | 2 | 0 | 4 | 0.5 | |
| agent_offer_tools_returns_four_named_toolssrc/offer_tools.rs:1161 | fn | 10 | 1 | 0 | 2 | 0.5 | |
| accept_with_task_store_claims_the_wrapped_tasksrc/offer_tools.rs:1193 | fn | 30 | 1 | 0 | 8 | 0.5 | |
| accept_without_task_store_warns_when_offer_has_task_idsrc/offer_tools.rs:1225 | fn | 16 | 1 | 0 | 5 | 0.5 | |
| accept_without_task_id_returns_null_task_claimsrc/offer_tools.rs:1243 | fn | 16 | 1 | 0 | 7 | 0.5 | |
| accept_with_unclaimable_task_surfaces_partial_statesrc/offer_tools.rs:1261 | fn | 30 | 1 | 0 | 8 | 0.5 |
Source not readable from this process.