MCPcopy Create free account

hub / github.com/microsoft/agent-governance-toolkit / functions

Functions32,326 in github.com/microsoft/agent-governance-toolkit

↓ 7 callersMethod_build_cedar_context
Build a context dict for PolicyEvaluator/CedarBackend. Constructs the principal/action/resource triple that Cedar and OPA backends ex
agent-governance-python/agent-os/src/agent_os/integrations/base.py:1159
↓ 7 callersMethod_build_chain
Build: A → B → C
agent-governance-python/agent-os/modules/emk/tests/test_causal.py:103
↓ 7 callersFunction_build_runtime
( tmp_path: Path, verdicts: list[dict[str, Any]], *, approval_resolver=None, )
agent-governance-python/agt-policies/tests/scenarios/test_gemini_adapter_scenarios.py:90
↓ 7 callersMethod_build_text
Flatten action + params into a single searchable string. Walks both keys and values recursively. Previously this only iterated `param
agent-governance-python/agent-os/src/agent_os/semantic_policy.py:396
↓ 7 callersFunction_call_litellm
(raw_sse: bytes, runtime: QueueRuntime, *, path="/v1/chat/completions")
policy-engine/sdk/python/tests/test_streaming_adapter_hardening.py:118
↓ 7 callersFunction_chain_with_expiring_link
Build a 2-link chain where the second link has the given expiry.
agent-governance-python/agent-mesh/tests/test_expired_certs.py:31
↓ 7 callersMethod_check_length
Check text length.
agent-governance-python/agent-os/modules/atr/atr/tools/safe/text_tool.py:67
↓ 7 callersFunction_check_optional
Return True if *module_name* is importable.
agent-governance-python/agent-os/src/agent_os/__init__.py:67
↓ 7 callersMethod_check_stopped
(self)
agent-governance-python/agent-os/src/agent_os/integrations/llamaindex_adapter.py:231
↓ 7 callersMethod_detect_runtime
Auto-detect the strongest available OCI runtime.
agent-governance-python/agent-sandbox/src/agent_sandbox/docker_provider/provider.py:447
↓ 7 callersFunction_discover_provider
Discover an advanced provider via entry_points.
agent-governance-python/agent-mesh/src/agentmesh/providers.py:37
↓ 7 callersMethod_emit
( self, event_type: str, environment: Environment, details: dict[str, Any] | N
agent-governance-python/agent-sre/src/agent_sre/delivery/blue_green.py:101
↓ 7 callersMethod_enforce_budget
Block the call when the v4 tool-call/token budget is spent. A governed ``query``/``chat`` is a budgeted operation, so
agent-governance-python/agent-os/src/agent_os/integrations/llamaindex_adapter.py:280
↓ 7 callersMethod_execute
Execute an action through the kernel with policy checks. This is the primary method for agents to perform actions. All actions are:
agent-governance-python/agent-os/src/agent_os/base_agent.py:431
↓ 7 callersMethod_extract_agent_name
Best-effort agent name extraction.
agent-governance-python/agent-os/src/agent_os/integrations/google_adk_adapter.py:1262
↓ 7 callersFunction_find_line
Return 1-based line number of first match, or 0.
agent-governance-python/agent-os/src/agent_os/security_skills.py:60
↓ 7 callersMethod_flush_buffer
Flush pending writes to database.
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/flight_recorder.py:206
↓ 7 callersMethod_freeze_mapping
Recursively convert nested mappings/lists to hashable tuples.
agent-governance-python/agent-os/src/agent_os/integrations/base.py:224
↓ 7 callersFunction_full_pass_context
Return a context dict that satisfies every built-in gate.
agent-governance-python/agent-compliance/tests/test_promotion.py:37
↓ 7 callersFunction_get_cost_guard
()
agent-governance-python/agent-sre/src/agent_sre/api/server.py:180
↓ 7 callersFunction_get_dashboard
()
agent-governance-python/agent-sre/src/agent_sre/api/server.py:175
↓ 7 callersFunction_get_demo_peers
Return demo peer data for display when no live data is available.
agent-governance-python/agent-mesh/src/agentmesh/cli/trust_cli.py:55
↓ 7 callersFunction_get_incident_detector
()
agent-governance-python/agent-sre/src/agent_sre/api/server.py:185
↓ 7 callersFunction_git
(cwd: Path, *args: str)
tests/ci/test_no_stubs.py:107
↓ 7 callersFunction_headers
( did: str = "did:mesh:abc123", public_key: str = "", capabilities: str = "read,write", )
agent-governance-python/agent-mesh/tests/test_http_middleware.py:31
↓ 7 callersFunction_infer_anomaly_type
Best-effort mapping from metric name to anomaly type.
agent-governance-python/agent-sre/src/agent_sre/anomaly/detector.py:355
↓ 7 callersMethod_inject_fingerprint
Add the authorization fingerprint to checkpoint metadata.
agent-governance-python/agent-os/src/agent_os/integrations/langgraph_adapter.py:485
↓ 7 callersFunction_is_established
Return True if the account shows strong organic credibility.
scripts/contributor_check.py:1037
↓ 7 callersMethod_is_module_enabled
Return whether a runtime module section is enabled.
agent-governance-python/agent-os/src/agent_os/integrations/base.py:1043
↓ 7 callersFunction_is_valid_did
Validate that a string matches the expected did:key format.
agent-governance-python/agentmesh-integrations/agentmesh-avp/agentmesh_avp/provider.py:25
↓ 7 callersMethod_kernel
Helper: return a LangChainKernel (concrete subclass) with given policy.
agent-governance-python/agent-os/tests/test_integrations.py:705
↓ 7 callersFunction_legacy_binding
()
agent-governance-python/agt-policies/tests/test_manifest_resolution.py:710
↓ 7 callersMethod_make_client
(self, trust_score=0.5, **policy_kwargs)
agent-governance-python/agent-mesh/tests/test_integrations.py:161
↓ 7 callersFunction_make_crewai_agent
Create a mock CrewAI agent with optional tools and memory.
agent-governance-python/agent-os/tests/test_deep_integrations.py:78
↓ 7 callersFunction_make_crewai_crew
Create a mock CrewAI crew.
agent-governance-python/agent-os/tests/test_deep_integrations.py:91
↓ 7 callersFunction_make_gemini_model
Return a mock ``GenerativeModel`` that responds with ``response``.
agent-governance-python/agt-policies/tests/scenarios/test_gemini_adapter_scenarios.py:105
↓ 7 callersFunction_make_manager
()
agent-governance-python/agent-mesh/tests/test_secure_channel.py:12
↓ 7 callersFunction_make_mock_tool
Create a mock LangChain-style tool with _run and _arun.
agent-governance-python/agent-os/tests/test_deep_integrations.py:35
↓ 7 callersMethod_make_receipt
(self, status=EscrowStatus.PENDING, expires_delta_hours=1)
agent-governance-python/agent-os/modules/nexus/tests/test_schemas.py:257
↓ 7 callersMethod_make_registry
(self)
agent-governance-python/agent-os/tests/test_security_hardening.py:140
↓ 7 callersFunction_make_urlopen
Return a fake urlopen that walks through `side_effects` on each call. Each side effect is either an Exception (raised) or a dict (wrapped int
agent-governance-python/agent-compliance/tests/test_cli_api_retry.py:63
↓ 7 callersMethod_map_llama_verdict
Map LlamaFirewall string verdict to FirewallVerdict.
agent-governance-python/agent-os/src/agent_os/integrations/llamafirewall.py:312
↓ 7 callersFunction_mock_response
Create a mock that works as a context manager returning JSON data.
agent-governance-python/agent-mesh/tests/test_entra_graph.py:26
↓ 7 callersMethod_pre
Evaluate the AGT input intervention point and apply transforms.
agent-governance-python/agent-os/src/agent_os/integrations/llamaindex_adapter.py:237
↓ 7 callersMethod_record_event
Append a timestamped audit event to the internal log. Args: event_type: Short label (e.g. ``"agent_start"``, ``"tool_end"``).
agent-governance-python/agent-os/src/agent_os/integrations/openai_agents_sdk.py:228
↓ 7 callersFunction_redact
Redact a sensitive value for safe logging. Replaces sensitive data with a stable hash-based identifier. The original data never appears in ou
agent-governance-python/agent-os/examples/healthcare-hipaa/main.py:38
↓ 7 callersMethod_register
Register an agent through the public API; returns (sk, did).
agent-governance-python/agent-mesh/tests/test_registration_auth.py:249
↓ 7 callersFunction_require
(raw: dict[str, Any], key: str, source: str, expected_type: type)
examples/aegis-governance-profile/compile.py:235
↓ 7 callersFunction_require_opa
(monkeypatch: pytest.MonkeyPatch)
agent-governance-python/agt-policies/tests/test_e2e_entry_paths.py:31
↓ 7 callersMethod_save
Save intent with optional optimistic concurrency check.
agent-governance-python/agent-os/src/agent_os/intent.py:422
↓ 7 callersFunction_seed
Deterministic but fresh-looking data on each run.
agent-governance-python/agent-hypervisor/examples/dashboard/app.py:127
↓ 7 callersFunction_semver_tuple
Convert a version string to a comparable tuple. Defensive against versions that slipped past :func:`PluginManifest.validate_version` — for ex
agent-governance-python/agent-marketplace/src/agent_marketplace/registry.py:246
↓ 7 callersFunction_setup_installer
(tmp_path)
agent-governance-python/agent-marketplace/tests/test_installer_atomic_and_verify.py:42
↓ 7 callersFunction_short
(text: str, limit: int = 200)
examples/quickstart/aca_sandbox_test.py:174
↓ 7 callersMethod_sign_peer
Compute HMAC over peer's critical fields. See class docstring on `_peer_hmac_key` — this HMAC is an in-process integrity check, not p
agent-governance-python/agent-mesh/src/agentmesh/trust/bridge.py:123
↓ 7 callersMethod_signed_card
(self)
agent-governance-python/agent-mesh/tests/test_coverage_boost.py:132
↓ 7 callersFunction_signed_plugin
(signer: PluginSigner, name: str = "my-plugin")
agent-governance-python/agent-marketplace/tests/test_installer_atomic_and_verify.py:31
↓ 7 callersFunction_simulate_llm_call
Simulate on_llm_start → on_llm_end (or on_llm_error).
agent-governance-python/agent-sre/tests/test_llamaindex.py:35
↓ 7 callersFunction_streaming_app
(raw_sse: bytes, *, status=200, headers=None)
policy-engine/sdk/python/tests/test_streaming_adapter_hardening.py:98
↓ 7 callersFunction_string_or_none
(value: Any)
policy-engine/sdk/python/agent_control_specification/_adapters/_shared.py:115
↓ 7 callersFunction_ts
(offset_seconds: int = 0)
docs/demos/conversation-guardian-demo.py:116
↓ 7 callersFunction_unique_ns
()
agent-governance-python/agent-os/modules/observability/tests/test_server.py:22
↓ 7 callersFunction_unpack_exec_result
Normalize an :meth:`SandboxClient.exec` response. The 0.1.0b1 SDK returns a typed result object whose example usage is ``out.stdout`` / ``out
agent-governance-python/agent-sandbox/src/agent_sandbox/aca_sandbox_provider/aca_sandbox_provider.py:168
↓ 7 callersFunction_version_in_range
Check if version is within [min_v, max_v] inclusive.
agent-governance-python/agent-os/src/agent_os/integrations/compat.py:73
↓ 7 callersFunction_write_pyproject
(tmp_path, content: str)
scripts/tests/test_check_dependency_confusion.py:16
↓ 7 callersMethodacquire_key
Generate or return a cached in-memory Ed25519 key.
agent-governance-python/agent-mesh/src/agentmesh/identity/tee_keystore.py:184
↓ 7 callersMethodadd_agent_trace
Register a trace for an agent.
agent-governance-python/agent-sre/src/agent_sre/replay/distributed.py:114
↓ 7 callersMethodadd_cold_context
Add context labelled as *cold*.
agent-governance-python/agent-os/modules/caas/src/caas/triad.py:73
↓ 7 callersMethodadd_feedback
Add evaluation feedback to a run. Args: run_id: Run ID to attach feedback to key: Feedback key (e.g. "correctness", "
agent-governance-python/agent-sre/src/agent_sre/integrations/langsmith/exporter.py:163
↓ 7 callersMethodadvance
Advance a rollout to the next step.
agent-governance-python/agent-sre/src/agent_sre/k8s/__init__.py:504
↓ 7 callersMethodafter_tool_call
Post-execution governance check for a tool call. Inspects tool output for blocked patterns via the AGT ``output`` interventi
agent-governance-python/agent-os/src/agent_os/integrations/smolagents_adapter.py:748
↓ 7 callersMethodanalyze_manifest_dict
Analyze a manifest provided as a dictionary.
agent-governance-python/agent-hypervisor/src/hypervisor/integrations/iatp_adapter.py:104
↓ 7 callersMethodapply_event
Apply a reputation event to update the score. Args: event: The reputation event to apply
agent-governance-python/agent-os/modules/iatp/iatp/models/__init__.py:406
↓ 7 callersMethodapprove
(self, request_id: str, approver: str = "")
agent-governance-python/agent-os/src/agent_os/integrations/escalation.py:166
↓ 7 callersFunctionassertObject
(value: unknown, label: string)
policy-engine/sdk/node/src/adapter-helpers.ts:243
↓ 7 callersFunctionblocked
(text)
agent-governance-python/agent-os/tutorials/hipaa-compliant-agent/demo.py:58
↓ 7 callersFunctionbuildModeTooltip
* Build a tooltip string for the governance mode status bar item. * * @param mode - The active governance mode. * @param activePolicies - Number of
agent-governance-typescript/agent-os-vscode/src/governanceStatusBarTypes.ts:84
↓ 7 callersMethodbuild_graph
Build an execution graph from a trace.
agent-governance-python/agent-sre/src/agent_sre/replay/visualization.py:128
↓ 7 callersMethodbuild_system_prompt
Build a system prompt with prioritized context.
agent-governance-python/agent-os/examples/self-evaluating/src/prioritization.py:76
↓ 7 callersMethodbuilder_for
Return the :class:`SnapshotBuilder` bound to ``ctx``. The builder is created on first access and reused across intervention points. H
agent-governance-python/agent-os/src/agent_os/integrations/_v5_runtime_bridge.py:169
↓ 7 callersMethodcanonical_payload
RFC 8785 JCS canonical JSON (signature fields excluded). Includes a per-receipt nonce to prevent replay attacks: even if two receipts
examples/pipeline-governance/demo.py:75
↓ 7 callersMethodcanonical_payload
Return the deterministic JSON string that was signed.
agent-governance-python/agentmesh-integrations/structural-authz-agentmesh/structural_authz_agentmesh/trust.py:98
↓ 7 callersMethodcanonical_payload
(self)
agent-governance-python/agentmesh-integrations/structural-authz-agentmesh/structural_authz_agentmesh/trust.py:239
↓ 7 callersFunctioncheck
(control: AgentControl, point: InterventionPoint, snapshot: dict, label: str)
policy-engine/examples/from_agentshield/policies/sql-protect-with-delegate/app/run_demo.py:41
↓ 7 callersMethodcheck
(self, context: dict)
agent-governance-python/agent-mesh/src/agentmesh/governance/advisory.py:114
↓ 7 callersMethodcheck_sandbox
Return whether *module_name* is permitted under the sandbox policy. This is a **policy predicate** — it answers "is this module on the
agent-governance-python/agent-marketplace/src/agent_marketplace/installer.py:433
↓ 7 callersMethodcheck_tool
Check if a tool is allowed by policy.
agent-governance-python/agentmesh-integrations/langflow-agentmesh/src/langflow_agentmesh/policy.py:100
↓ 7 callersMethodcheck_trust_threshold
Check if an agent meets the trust threshold. Returns: Tuple of (meets_threshold, trust_score)
agent-governance-python/agent-os/modules/nexus/reputation.py:340
↓ 7 callersMethodcheck_typosquatting
Check if package name is suspiciously similar to a popular package.
agent-governance-python/agent-compliance/src/agent_compliance/supply_chain.py:665
↓ 7 callersMethodclear
Remove all extractors. Primarily for tests.
agent-governance-typescript/src/protocol-facets.ts:83
↓ 7 callersFunctioncompile_to_cedar
Compile a profile to a Cedar policy string. The output is deterministic and ordered to match the source profile.
examples/aegis-governance-profile/compile.py:335
↓ 7 callersFunctioncompile_to_rego
Compile a profile to a Rego policy string. Output is deterministic and ordered to match the source profile.
examples/aegis-governance-profile/compile.py:412
↓ 7 callersMethodcompute_key
Compute a cache key for content. Args: content: The content to hash metadata: Optional metadata to i
agent-governance-python/agent-os/modules/caas/src/caas/caching.py:589
↓ 7 callersFunctioncompute_report_data_hash_hex
Compute ADR 0010 canonical report-data binding as lowercase hex.
agent-governance-python/agent-mesh/src/agentmesh/identity/attestation.py:88
↓ 7 callersMethodcoverage_pct
Percentage of controls covered.
agent-governance-python/agent-compliance/src/agent_compliance/verify.py:200
↓ 7 callersMethodcreate_histogram
(self, *args, **kwargs)
agent-governance-python/agent-mesh/src/agentmesh/telemetry.py:221
↓ 7 callersMethodcreate_replay_session
Create a new replay session for an agent. Args: agent_id: Agent identifier start_time: Start of repl
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/time_travel_debugger.py:302
↓ 7 callersMethodcreate_session
( self, agent_id: str, policy: Any | None = None, config: SandboxConfig | None
agent-governance-python/agent-sandbox/src/agent_sandbox/hyperlight_provider/provider.py:355
↓ 7 callersMethoddeprecate
Mark a plugin version as deprecated. Args: name: Plugin name. version: Plugin version. reason: Human-read
agent-governance-python/agent-mesh/src/agentmesh/marketplace/lifecycle.py:170
↓ 7 callersFunctionderiveHub
(state: SidebarState)
agent-governance-typescript/agent-os-vscode/src/webviews/sidebar/dataAggregator.ts:140
← previousnext →1,801–1,900 of 32,326, ranked by callers