MCPcopy Create free account

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

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

↓ 14 callersMethodacquire
Acquire a lock (Public Preview: always succeeds).
agent-governance-python/agent-hypervisor/src/hypervisor/session/intent_locks.py:56
↓ 14 callersMethodacquire
Attempt to acquire a rate limit slot. Args: blocking: If True, wait until a slot is available. timeout: Maximum time
agent-governance-python/agent-os/modules/atr/atr/policies.py:201
↓ 14 callersMethodactivate_escrow
Mark escrow as active (task in progress).
agent-governance-python/agent-os/modules/nexus/escrow.py:91
↓ 14 callersMethodafter_tool_callback
ADK after_tool_callback — called after each tool execution. Inspects tool output for blocked patterns and routes through the
agent-governance-python/agent-os/src/agent_os/integrations/google_adk_adapter.py:807
↓ 14 callersMethodclear
Clear entries from the DLQ. Args: topic: Optional topic filter (clears all if None) Returns
agent-governance-python/agent-os/modules/amb/amb_core/dlq.py:285
↓ 14 callersMethodcreate_counter
(self, *args, **kwargs)
agent-governance-python/agent-mesh/src/agentmesh/telemetry.py:218
↓ 14 callersMethodcreate_escrow
Create an escrow for a task. Args: provider_did: DID of the agent providing the service task_hash: S
agent-governance-python/agent-os/modules/nexus/client.py:275
↓ 14 callersMethoddetermine_severity
Map an anomaly score to a severity level.
agent-governance-python/agent-sre/src/agent_sre/anomaly/strategies.py:56
↓ 14 callersMethodevaluate
Evaluate all trust rules against the context. Rules across all loaded policies are sorted by priority (lower number = higher priority
agent-governance-python/agent-mesh/src/agentmesh/governance/policy_evaluator.py:52
↓ 14 callersMethodexecute_sandboxed
Run a function with import hooks and (optionally) sys.modules shadowing. Args: func: The function to execute. *args:
agent-governance-python/agent-os/src/agent_os/sandbox.py:782
↓ 14 callersMethodexecute_task
Execute a task by selecting and running the best agent. Args: task: Description of the task task_met
agent-governance-python/agent-os/examples/self-evaluating/src/agent_brokerage.py:384
↓ 14 callersMethodexecute_with_governance
Run *action* through the full governance pipeline. Steps: 1. Evaluate loaded policies. 2. Log the event to the audit
agent-governance-python/agent-mesh/src/agentmesh/client.py:132
↓ 14 callersFunctionfetch
(url, redirectsLeft = 5)
policy-engine/sdk/node/scripts/fetch-opa.mjs:46
↓ 14 callersMethodfind_pii_matches
Return all PII/CRI-like matches found in a string. Unlike :meth:`find_matches`, these patterns detect personally identifiable informa
agent-governance-python/agent-os/src/agent_os/credential_redactor.py:134
↓ 14 callersMethodfrom_eff_score
Derive ring level from effective reputation score.
agent-governance-python/agent-hypervisor/src/hypervisor/models.py:62
↓ 14 callersMethodfrom_native
( cls, manifest: Mapping[str, JsonValue] | str | bytes, annotator_dispatcher: Annotato
policy-engine/sdk/python/agent_control_specification/_orchestration.py:44
↓ 14 callersFunctiongate
* Map a verdict to a host gate outcome. Returns `undefined` to allow (also * for `warn`, which is non-blocking). Effects are applied separately by
policy-engine/sdk/node/src/integrations/ghcp.ts:197
↓ 14 callersMethodgenerate_key
Generate a fresh Fernet encryption key (URL-safe base64, 32 bytes). Falls back to :func:`os.urandom` if ``cryptography`` is unavailable
agent-governance-python/agent-os/src/agent_os/credential_vault.py:280
↓ 14 callersMethodget
Get value by key.
agent-governance-python/agent-mesh/src/agentmesh/storage/memory_provider.py:47
↓ 14 callersMethodgetState
()
agent-governance-typescript/agent-os-vscode/src/webviews/shared/vscode.ts:13
↓ 14 callersMethodget_audit_log
Get the agent's audit log. Returns: List of audit entries as dictionaries
agent-governance-python/agent-os/src/agent_os/base_agent.py:488
↓ 14 callersMethodget_score_value
Get the numeric trust score (0-1000) for an agent.
agent-governance-python/agent-mesh/src/agentmesh/services/reward_engine/__init__.py:46
↓ 14 callersFunctionget_trust_tier
Return the tier name for a given trust score. Args: score: Integer trust score in the range 0-1000. Returns: Tier name (e.g.
agent-governance-python/agent-marketplace/src/agent_marketplace/trust_tiers.py:97
↓ 14 callersFunctionhandler
(msg: Message)
agent-governance-python/agent-os/modules/amb/tests/test_bus.py:59
↓ 14 callersMethodinitiate_transfer
Initiate a secure data transfer through DMZ. Args: sender_did: DID of sending agent receiver_did: DI
agent-governance-python/agent-os/modules/nexus/dmz.py:188
↓ 14 callersMethodis_peer_trusted
Check whether a previously verified peer meets the trust threshold.
agent-governance-python/agent-mesh/src/agentmesh/trust/bridge.py:183
↓ 14 callersMethodis_stricter_than
Return True if this policy is more restrictive than other. Stricter means: lower limits, higher thresholds, more blocked patterns, fe
agent-governance-python/agent-os/src/agent_os/integrations/base.py:607
↓ 14 callersMethodis_tool_allowed
Check if a tool is allowed by policy. Supports wildcard patterns.
agent-governance-python/agentmesh-integrations/flowise-agentmesh/src/flowise_agentmesh/policy.py:28
↓ 14 callersMethodload
Load a dataset from a JSON file.
agent-governance-python/agent-os/examples/self-evaluating/src/evaluation_engineering.py:229
↓ 14 callersMethodlog
(self, action, query, result, policy=None, phi_category=None)
agent-governance-python/agent-os/tutorials/hipaa-compliant-agent/demo.py:105
↓ 14 callersFunctionmakeCodingControl
({ approvalResolver, annotatorDelay = async () => {}, policyOverride } = {})
policy-engine/sdk/node/test/coding_assistant_use_case.test.mjs:105
↓ 14 callersFunctionmake_flight_log
Create a flight recorder log with valid hash.
agent-governance-python/agent-os/modules/nexus/tests/test_arbiter.py:31
↓ 14 callersMethodmark_golden
Promote a successful trace to a golden reference. Args: trace: The captured Trace to use as golden reference. name: H
agent-governance-python/agent-sre/src/agent_sre/replay/golden_manager.py:29
↓ 14 callersMethodnormalizePath
(value: string)
agent-governance-typescript/src/discovery.ts:566
↓ 14 callersMethodpre_tool_call
( self, *, tool_name: str, args: dict[str, Any], call_id: str = "call-
agent-governance-python/agt-policies/src/agt/policies/snapshot.py:489
↓ 14 callersMethodprocess
Process a message and optionally produce output.
agent-governance-python/agent-os/modules/iatp/iatp/ipc_pipes.py:359
↓ 14 callersMethodput
(name: string, value: string, credType = 'secret')
agent-governance-typescript/src/credential-vault.ts:256
↓ 14 callersMethodrecord_check
Record a policy check result. Args: adapter: Adapter name (e.g. ``"langchain"``). latency_ms: Time taken for the chec
agent-governance-python/agent-os/src/agent_os/metrics.py:45
↓ 14 callersMethodregister
Register an AI Card in the catalog. Args: card: The AI Card to register. verify: Whether to verify the card signature
agent-governance-python/agent-mesh/src/agentmesh/integrations/ai_card/discovery.py:43
↓ 14 callersMethodreport
Generate a tracing report with all protocol spans and timeline.
agent-governance-python/agent-sre/src/agent_sre/tracing/__init__.py:680
↓ 14 callersFunctionrun_cli
Run the CLI with the given arguments and return the exit code.
agent-governance-python/agent-compliance/tests/test_integrity_cli_roundtrip.py:27
↓ 14 callersFunctionrun_scan
Run MCPSecurityScanner over already-known tool definitions.
agent-governance-python/agent-os/src/agent_os/cli/mcp_scan.py:1612
↓ 14 callersMethodscore_slo
Score a Langfuse trace with SLO health data. Creates multiple scores per SLO: - `slo.<name>.status`: Overall status (0=healthy, 1=war
agent-governance-python/agent-sre/src/agent_sre/integrations/langfuse/exporter.py:120
↓ 14 callersMethodslash_reputation
Slash an agent's reputation for misbehavior. When triggered, broadcasts to the network so all agents immediately blo
agent-governance-python/agent-os/modules/nexus/reputation.py:287
↓ 14 callersFunctionsse
Frame data events into an SSE byte stream the way a proxy emits them.
policy-engine/tests/conformance/streaming/generate.py:32
↓ 14 callersMethodstart_span
Start a new span, automatically parented to the current span.
agent-governance-python/agent-sre/src/agent_sre/replay/capture.py:256
↓ 14 callersMethodstart_trace
Start a new trace for an agent action. Creates a pending audit log entry and links it into the Merkle hash chain for tamper detection
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/flight_recorder.py:332
↓ 14 callersMethodstore_trust_score
Store or update a trust score for an agent. Args: agent_did: DID of the agent. score: Trust score data (arbitrary dic
agent-governance-python/agent-mesh/src/agentmesh/storage/file_trust_store.py:56
↓ 14 callersMethodtransition
Transition to a new state, enforcing valid transitions.
agent-governance-python/agent-hypervisor/src/hypervisor/saga/state_machine.py:83
↓ 14 callersFunctiontranslateTopology
(raw: unknown)
agent-governance-typescript/agent-os-vscode/src/services/translators.ts:141
↓ 14 callersMethodverify_assessment_chain
Walk every assessment and verify hash linkage. Returns ``(True, None)`` when the chain is intact, or ``(False, description)`` on the
agent-governance-python/agent-sre/src/agent_sre/anomaly/rogue_detector.py:418
↓ 13 callersMethodActivate
Activate is a convenience method to move to the active state.
agent-governance-golang/packages/agentmesh/lifecycle.go:121
↓ 13 callersMethodAddEvidence
AddEvidence appends evidence and updates the aggregate confidence and timestamps. Confidence is combined using a noisy-OR formula: combined = 1 - (
agent-governance-golang/packages/agentmesh/discovery.go:101
↓ 13 callersFunctionHeader
({ onSettingsClick }: HeaderProps)
agent-governance-python/agent-os/extensions/chrome/src/popup/components/Header.tsx:9
↓ 13 callersMethodLoadFromYAML
LoadFromYAML replaces the engine's rule set with the rules from a YAML file. Existing rules are discarded on success; on parse or I/O error the previo
agent-governance-golang/packages/agentmesh/policy.go:206
↓ 13 callersFunctionNewLifecycleManager
NewLifecycleManager creates a manager starting in the provisioning state.
agent-governance-golang/packages/agentmesh/lifecycle.go:56
↓ 13 callersFunction_approving_resolver
Return an approval_resolver that always approves and records the IP.
agent-governance-python/agent-os/tests/test_integrations.py:2284
↓ 13 callersFunction_create_identity
()
agent-governance-python/agent-mesh/tests/test_key_rotation.py:19
↓ 13 callersFunction_ctx
(kernel, agent_id="test-agent")
agent-governance-python/agent-os/tests/test_langgraph_adapter.py:57
↓ 13 callersMethod_detector
(self, sensitivity="balanced")
agent-governance-python/agent-os/tests/test_security_policy_enforcement.py:523
↓ 13 callersFunction_is_protected_path
Check whether *path* is a system directory that must not be mounted.
agent-governance-python/agent-sandbox/src/agent_sandbox/docker_provider/provider.py:219
↓ 13 callersFunction_kernel
(**policy_kw)
agent-governance-python/agent-os/tests/test_langgraph_adapter.py:52
↓ 13 callersMethod_kernel
( self, runtime, *, approval_resolver=None, allowed_tools=None,
agent-governance-python/agent-os/tests/test_integrations.py:3082
↓ 13 callersFunction_make_llm_context
Create a mock LLMCallHookContext.
agent-governance-python/agent-os/tests/test_crewai_hooks.py:103
↓ 13 callersFunction_make_manifest
( signer: PluginSigner, name: str = "test-plugin", artifact_url: Optional[str] = None, artifac
agent-governance-python/agent-marketplace/tests/test_artifact_fetch.py:101
↓ 13 callersFunction_ns_to_us
(ns: float)
agent-governance-python/agent-os/tests/test_benchmarks.py:52
↓ 13 callersFunction_simulate_chain
Simulate on_chain_start → on_chain_end (or on_chain_error).
agent-governance-python/agent-sre/tests/test_langchain_callback.py:65
↓ 13 callersFunction_tree_last
(icon: str, colour: str, label: str, detail: str)
examples/demos/maf_governance_demo.py:128
↓ 13 callersFunction_write
(path: Path, doc: dict)
agent-governance-python/agt-policies/tests/test_manifest_resolution.py:706
↓ 13 callersFunction_write_runtime_evidence
( tmp_path: Path, *, policy_body: str | None = None, include_policy: bool = True, include_
agent-governance-python/agent-compliance/tests/test_integrity_and_verify.py:40
↓ 13 callersMethodactivate
Activate a provisioned agent and issue initial credentials.
agent-governance-python/agent-mesh/src/agentmesh/lifecycle/manager.py:161
↓ 13 callersMethodadd
(self, signal: Signal)
agent-governance-python/agent-compliance/src/agent_compliance/cli/contributor_check.py:182
↓ 13 callersMethodadd
(self, scenario: BenchmarkScenario)
agent-governance-python/agent-sre/src/agent_sre/benchmarks/__init__.py:134
↓ 13 callersMethodadd_entry
Add an entry and update the Merkle tree incrementally.
agent-governance-python/agent-mesh/src/agentmesh/governance/audit.py:283
↓ 13 callersMethodadd_rule
Add an alerting rule. Args: name: Rule name condition: Function that evaluates alert condition
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/observability.py:343
↓ 13 callersMethodanalyzePolicies
* Analyze a set of policies for surface parity gaps.
agent-governance-typescript/src/surface-parity.ts:39
↓ 13 callersMethodas_filter
Create a governance filter for Semantic Kernel's native filter system. Returns a ``GovernanceFunctionFilter`` that can be registered with::
agent-governance-python/agent-os/src/agent_os/integrations/semantic_kernel_adapter.py:193
↓ 13 callersMethodbefore_run
Pre-run hook: scan prompt for governance violations. Routes the prompt through the AGT 5.0 ACS engine at the ``input`` intervention p
agent-governance-python/agent-os/src/agent_os/integrations/pydantic_ai_adapter.py:726
↓ 13 callersMethodcalculate_delay
Calculate delay before the given attempt. Args: attempt: The attempt number (1-indexed). Returns: Delay in s
agent-governance-python/agent-os/modules/atr/atr/policies.py:64
↓ 13 callersMethodcanonical_payload
RFC 8785 JCS canonical JSON; signature fields excluded (they cover this payload).
agent-governance-python/agentmesh-integrations/mcp-receipt-governed/mcp_receipt_governed/receipt.py:47
↓ 13 callersFunctioncheck
(condition: bool, message: str, violations: list[str])
policy-engine/scripts/lint_logging.py:104
↓ 13 callersMethodcheck
Return ``True`` if the agent is within its limit, ``False`` if exceeded. Records the current call timestamp regardless of the outcome so that
agent-governance-python/agent-rag-governance/src/agent_rag_governance/rate_limiter.py:41
↓ 13 callersMethodcheck_behavioral_drift
Check for behavioral drift. Returns a pass-through result when no verifier is configured.
agent-governance-python/agent-hypervisor/src/hypervisor/integrations/verification_adapter.py:85
↓ 13 callersMethodcheck_health
Run health check if configured. Returns: HealthCheckResult or None if no health check configured.
agent-governance-python/agent-os/modules/atr/atr/schema.py:462
↓ 13 callersFunctionclassify_intent
Classify the semantic intent of a tool call using keyword matching.
agent-governance-python/agentmesh-integrations/pydantic-ai-governance/src/pydantic_ai_governance/intent.py:55
↓ 13 callersMethodclear
Clear all offline storage.
agent-governance-python/agent-sre/src/agent_sre/integrations/langfuse/exporter.py:282
↓ 13 callersFunctioncompilePolicy
(raw)
agent-governance-antigravity-cli/assets/extensions/agt-global-policy/lib/policy.mjs:107
↓ 13 callersFunctioncompilePolicy
(raw)
agent-governance-copilot-cli/assets/extensions/agt-global-policy/lib/policy.mjs:106
↓ 13 callersFunctioncompute_fingerprints
Compute per-tool fingerprints over descriptions and input schemas.
agent-governance-python/agent-os/src/agent_os/cli/mcp_scan.py:1692
↓ 13 callersFunctioncreateMockMemento
Minimal mock Memento for workspace state.
agent-governance-typescript/agent-os-vscode/src/test/webviews/governanceStore.test.ts:9
↓ 13 callersFunctioncreateMockProviders
Providers that return fixed data.
agent-governance-typescript/agent-os-vscode/src/test/webviews/governanceStore.test.ts:19
↓ 13 callersFunctioncreate_signal_from_text
Helper: Create a text signal from a string.
agent-governance-python/agent-os/examples/self-evaluating/src/universal_signal_bus.py:567
↓ 13 callersFunctioncreate_test_client
Create a (NexusClient, private_key_bytes) pair with a real Ed25519 keypair.
agent-governance-python/agent-os/tests/nexus/test_client.py:20
↓ 13 callersFunctiondocker_config_from_policy
Extract sandbox-relevant fields from a policy into a config. Reads well-known policy attributes when present and merges them into *base*. Un
agent-governance-python/agent-sandbox/src/agent_sandbox/docker_provider/provider.py:257
↓ 13 callersMethodemit_skill_audit_event
Emit a centralized skill-aware governance audit payload. Emission happens in governance middleware/hooks (outside skill loading or ex
agent-governance-python/agent-os/src/agent_os/integrations/base.py:1464
↓ 13 callersFunctionescalateAt
(point)
policy-engine/sdk/node/test/escalation.test.mjs:41
↓ 13 callersFunctionescrow_request
( requester_did: str = REQUESTER_DID, provider_did: str = PROVIDER_DID, credits: int = 40, )
agent-governance-python/agent-os/tests/cloud_board/test_api_auth.py:69
↓ 13 callersMethodevaluate
Evaluate content scores against configured rules.
agent-governance-python/agent-os/src/agent_os/content_governance.py:115
↓ 13 callersMethodevaluate
(self, context: dict[str, Any])
agent-governance-python/agent-os/src/agent_os/policies/backends.py:650
↓ 13 callersMethodextract_context
Extract context from a document with structure-aware boosting and time-based decay. Now with Context scoring support:
agent-governance-python/agent-os/modules/caas/src/caas/storage/store.py:270
← previousnext →801–900 of 32,326, ranked by callers