MCPcopy Create free account

hub / github.com/Exorust/Adkit-MCP / functions

Functions155 in github.com/Exorust/Adkit-MCP

Methodget_ad
(self, ad_id)
tests/test_match_service.py:88
Functionget_logger
()
src/ad_injector/mcp/observability.py:15
Methodis_empty
(self)
src/ad_injector/domain/filters.py:45
Functionmetrics_snapshot
Return current metrics (for optional /metrics endpoint or health).
src/ad_injector/mcp/observability.py:43
Methodnew_match_id
(self, request_id: str, ad_id: str)
src/ad_injector/ports/id_gen.py:38
Methodnew_request_id
(self)
src/ad_injector/ports/id_gen.py:31
Methodquery
( self, vector: list[float], vector_filter: VectorFilter, top_k: int, )
src/ad_injector/adapters/qdrant_vector_store.py:55
Methodquery
(self, vector, vector_filter, top_k)
tests/test_match_service.py:74
Methodtest_age_restricted_allowed_when_opted_in
(self)
tests/test_match_service.py:195
Methodtest_age_restricted_allowed_when_opted_in
(self)
tests/test_policy_engine.py:76
Methodtest_age_restricted_filtered_by_default
(self)
tests/test_match_service.py:187
Methodtest_age_restricted_filtered_by_default
(self)
tests/test_policy_engine.py:66
Methodtest_blocked_keyword_in_context_drops_ad
(self)
tests/test_policy_engine.py:89
Methodtest_blocked_keyword_substring_drops_ad
(self)
tests/test_policy_engine.py:102
Methodtest_blocked_keywords_removes_ad
Blocked keywords vs context_text: drop when intersect (token/substring).
tests/test_match_service.py:218
Methodtest_both_exclusions_when_provided
(self)
tests/test_targeting_engine.py:68
Methodtest_combined_constraints
(self)
tests/test_match_service.py:285
Functiontest_control_plane_has_admin_tools
Control Plane must have admin tools and NOT ads_match.
tests/test_data_plane_tools.py:53
Functiontest_data_plane_exposes_only_ads_match
Data Plane must expose exactly the tools in DATA_PLANE_ALLOWED_TOOLS.
tests/test_data_plane_tools.py:36
Functiontest_data_plane_has_no_forbidden_tools
No destructive / admin tool may be registered on the Data Plane.
tests/test_data_plane_tools.py:45
Methodtest_different_request_ids_produce_different_match_ids
(self)
tests/test_match_service.py:172
Methodtest_embedding_provider_receives_normalized_text
Whitespace should be collapsed.
tests/test_match_service.py:145
Methodtest_empty_constraints_returns_vector_filter
(self)
tests/test_targeting_engine.py:79
Methodtest_empty_hits_returns_empty_candidates
(self)
tests/test_match_service.py:151
Methodtest_exclude_ad_ids_adds_must_not
(self)
tests/test_targeting_engine.py:61
Methodtest_exclude_advertiser_adds_must_not
(self)
tests/test_match_service.py:277
Methodtest_exclude_advertiser_ids_adds_must_not
(self)
tests/test_targeting_engine.py:54
Methodtest_exclusions_must_be_enforced
(self)
tests/test_match_semantics.py:66
Methodtest_locale_exact_match
(self)
tests/test_match_semantics.py:46
Methodtest_locale_includes_global_fallback
(self)
tests/test_targeting_engine.py:20
Methodtest_match_id_is_deterministic
(self)
tests/test_match_service.py:165
Methodtest_negative_score_clamped
(self)
tests/test_match_service.py:312
Methodtest_no_blocked_keywords_in_context_passes
(self)
tests/test_policy_engine.py:110
Methodtest_no_constraints_produces_empty_filter
(self)
tests/test_match_service.py:260
Methodtest_no_locale_constraint_means_no_locale_filter
(self)
tests/test_targeting_engine.py:27
Methodtest_no_request_locale_means_no_filter
(self)
tests/test_match_semantics.py:57
Methodtest_placement_no_filter
(self)
tests/test_match_semantics.py:76
Methodtest_placement_passed_through
(self)
tests/test_match_service.py:131
Methodtest_policy_applied_post_retrieval
Policy filters hits after retrieval even when vector filter is permissive.
tests/test_match_service.py:242
Methodtest_request_id_is_uuid
(self)
tests/test_match_service.py:126
Methodtest_returns_candidates
(self)
tests/test_match_service.py:119
Methodtest_score_above_one_clamped
(self)
tests/test_match_service.py:306
Methodtest_sensitive_allowed_when_opted_in
(self)
tests/test_match_service.py:210
Methodtest_sensitive_allowed_when_opted_in
(self)
tests/test_policy_engine.py:53
Methodtest_sensitive_filtered_by_default
(self)
tests/test_match_service.py:203
Methodtest_sensitive_filtered_by_default
(self)
tests/test_policy_engine.py:43
Methodtest_targeting_engine_build_filter_called
(self)
tests/test_match_service.py:236
Methodtest_top_k_respected
(self)
tests/test_match_service.py:139
Methodtest_topics_adds_any_of_filter
(self)
tests/test_targeting_engine.py:36
Methodtest_topics_constraint_adds_must
(self)
tests/test_match_service.py:268
Methodtest_topics_intersection_any
(self)
tests/test_match_semantics.py:20
Methodtest_verticals_adds_any_of_filter
(self)
tests/test_targeting_engine.py:43
Methodtest_verticals_intersection_any
(self)
tests/test_match_semantics.py:34
Methodupsert_batch
(self, ads_with_embeddings: list[tuple[Ad, list[float]]])
src/ad_injector/adapters/qdrant_vector_store.py:187
Methodupsert_batch
(self, ads_with_embeddings)
tests/test_match_service.py:86
← previous101–155 of 155, ranked by callers