MCPcopy Create free account

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

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

↓ 10 callersFunctionguard_langchain_runnable
Guard a LangChain-style async Runnable via ``ainvoke``.
policy-engine/sdk/python/agent_control_specification/_adapters/langchain.py:23
↓ 10 callersFunctionguard_openai_agents_runner
Guard an OpenAI Agents SDK Runner-style async ``run`` method.
policy-engine/sdk/python/agent_control_specification/_adapters/openai.py:92
↓ 10 callersMethodhandle_message
Handle an MCP protocol message with governance. This is the main entry point for MCP messages. It parses the JSON-RPC message, applie
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/mcp_adapter.py:192
↓ 10 callersMethodhealth_check
Return adapter health status. Includes model-call counts, token usage, and cancellation metrics alongside the original health fields.
agent-governance-python/agent-os/src/agent_os/integrations/google_adk_adapter.py:1115
↓ 10 callersMethodinject_fault
Record a fault injection event.
agent-governance-python/agent-sre/src/agent_sre/chaos/engine.py:294
↓ 10 callersMethodinstall
Install a plugin from the registry. Steps: 1. Resolve manifest from registry. 2. Verify Ed25519 signature (if a trust
agent-governance-python/agent-mesh/src/agentmesh/marketplace/installer.py:87
↓ 10 callersMethodintercept
(self, request: ToolCallRequest)
agent-governance-python/agent-os/src/agent_os/integrations/base.py:899
↓ 10 callersMethodisBlocking
(minGrade?: string)
agent-governance-typescript/src/prompt-defense.ts:39
↓ 10 callersMethodis_alive
Check whether the underlying OS process is still running.
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/process_isolation.py:302
↓ 10 callersMethodlog
(self, agent_id: str, action: str, user_input: str, policy_result: str, response_length: int = 0)
agent-governance-python/agent-os/examples/governed-chatbot/chatbot.py:136
↓ 10 callersFunctionlogFlightRecord
logFlightRecord logs an entry to the flight recorder
agent-governance-python/agent-os/modules/iatp/sidecar/go/main.go:214
↓ 10 callersMethodmakeEvidenceCheck
( checkId: string, title: string, passed: boolean, message: string, observed: Record<strin
agent-governance-typescript/src/verify.ts:535
↓ 10 callersFunctionnormalizeMode
(mode: EnforcementMode = ENFORCE_MODE as EnforcementMode)
policy-engine/sdk/node/src/adapter-helpers.ts:196
↓ 10 callersMethodonError
* Register a callback for transport-level errors. * * Fires for: WebSocket errors (handshake, mid-stream), decrypt failures, * KNOCK protocol
agent-governance-typescript/src/encryption/mesh-client.ts:708
↓ 10 callersMethodon_event
Enqueue a governance event for async delivery. Non-blocking. If the queue is full, the oldest event is dropped (DROP_OLDEST policy: r
agent-governance-python/agent-os/src/agent_os/event_sink.py:231
↓ 10 callersMethodpackage
* Package an agent identity and optional policy rules into an OCI manifest.
agent-governance-typescript/src/oci-manifest.ts:74
↓ 10 callersMethodparse_directory
Parse .agents/ directory.
agent-governance-python/agent-os/src/agent_os/agents_compat.py:71
↓ 10 callersMethodpermissive
Permissive policy for development and testing. High limits with no blocked patterns. All tools allowed. No human approval required. U
agent-governance-python/agent-os/src/agent_os/integrations/templates.py:56
↓ 10 callersFunctionprint_success
Print a success message.
agent-governance-python/agent-mesh/examples/00-registration-hello-world/simulated_registration.py:45
↓ 10 callersMethodprocess_trust_event
Process a trust event with network propagation. Returns a dict of {agent_did: score_delta} for every affected agent.
agent-governance-python/agent-mesh/src/agentmesh/reward/trust_decay.py:175
↓ 10 callersMethodquery_logs
Query the audit logs with filters. Opens a new read-only connection (safe for concurrent access under WAL mode) and returns matching
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/flight_recorder.py:530
↓ 10 callersMethodrecordSuccess
Record a successful interaction with an agent.
agent-governance-typescript/src/trust.ts:85
↓ 10 callersMethodrecord_call
Record a tool call result.
agent-governance-python/agent-sre/src/agent_sre/slo/indicators.py:172
↓ 10 callersMethodrecord_success
Reward an agent for a successful action. Args: agent: The agent to reward. Its ``trust_score`` is modified in pla
agent-governance-python/agentmesh-integrations/template-agentmesh/template_agentmesh/trust.py:204
↓ 10 callersMethodregister
Register a workflow bundle. Raises ``BundleValidationError`` if validation fails.
agent-governance-python/agent-marketplace/src/agent_marketplace/workflow_bundle.py:56
↓ 10 callersMethodregister_agent
Register an agent for health monitoring
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/lifecycle.py:190
↓ 10 callersMethodregister_tool
Register a tool with the server.
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/mcp_adapter.py:586
↓ 10 callersMethodrelease
Release a slot.
agent-governance-python/agent-os/src/agent_os/integrations/base.py:988
↓ 10 callersFunctionrenderBrowserDashboard
( wsPort: number, sessionToken: string, nonce: string, extensionPath: string, )
agent-governance-typescript/agent-os-vscode/src/server/browserTemplate.ts:205
↓ 10 callersMethodresolve
Resolve a list of candidate decisions into a single winner. Args: candidates: One or more candidate decisions from matching rules
agent-governance-python/agent-os/src/agent_os/policies/conflict_resolution.py:155
↓ 10 callersFunctionresult
(decision=None, transformed_policy_target=None)
policy-engine/sdk/python/tests/test_real_packages.py:65
↓ 10 callersMethodrun
Run all (or filtered) scenarios. Args: agent_fn: The agent callable to benchmark. categories: Filter to specific cate
agent-governance-python/agent-sre/src/agent_sre/benchmarks/__init__.py:279
↓ 10 callersFunctionrunModel
( control: RunnableControl, request: JsonValue, execute: (request: JsonValue) => Promise<TOutput> | TOut
policy-engine/sdk/node/src/adapters.ts:81
↓ 10 callersMethodsendFrame
(frame: Record<string, unknown>)
agent-governance-typescript/src/encryption/mesh-client.ts:1084
↓ 10 callersMethodset_tool_policy
Set or update policy for a specific tool.
agent-governance-python/agentmesh-integrations/mcp-trust-proxy/mcp_trust_proxy/proxy.py:147
↓ 10 callersMethodsign
Sign a plugin manifest in place. Args: manifest: Manifest to sign. Returns: A copy of the manifest with the
agent-governance-python/agent-mesh/src/agentmesh/marketplace/signing.py:43
↓ 10 callersMethodslash
Log a penalty event (Public Preview: no penalties applied).
agent-governance-python/agent-hypervisor/src/hypervisor/liability/slashing.py:54
↓ 10 callersMethodstart
Mark task as working.
agent-governance-python/agentmesh-integrations/a2a-protocol/a2a_agentmesh/task.py:145
↓ 10 callersMethodstart_observing
Start the observer daemon in background mode. Args: poll_interval: How often to check for new signals (seconds)
agent-governance-python/agent-os/examples/self-evaluating/src/ghost_mode.py:334
↓ 10 callersMethodstop_observing
Stop the observer daemon.
agent-governance-python/agent-os/examples/self-evaluating/src/ghost_mode.py:352
↓ 10 callersMethodsubmit
Submit an escalation request for human review.
agent-governance-python/agent-os/src/agent_os/integrations/escalation.py:124
↓ 10 callersMethodsubscribe
Subscribe a handler to events matching a glob-style pattern. Args: pattern: Glob-style pattern (e.g., ``trust.*``, ``*``).
agent-governance-python/agent-mesh/src/agentmesh/events/bus.py:73
↓ 10 callersMethodsubscribe
(self, pattern: str, handler: EventHandler)
agent-governance-python/agent-mesh/src/agentmesh/events/bus.py:106
↓ 10 callersMethodsuccess
Create a successful handshake result.
agent-governance-python/agent-mesh/src/agentmesh/trust/handshake.py:111
↓ 10 callersMethodsuspend
Suspend this identity temporarily.
agent-governance-typescript/src/identity.ts:147
↓ 10 callersFunctiontoStringArray
(value)
agent-governance-antigravity-cli/assets/extensions/agt-global-policy/lib/policy.mjs:985
↓ 10 callersFunctiontoStringArray
(value)
agent-governance-copilot-cli/assets/extensions/agt-global-policy/lib/policy.mjs:946
↓ 10 callersMethodto_dict
Convert to dictionary for serialization.
agent-governance-python/agent-lightning/src/agent_lightning_gov/emitter.py:40
↓ 10 callersMethodvalidate
Validate an output against principles. Args: output: The text to validate context: Optional context
agent-governance-python/agent-os/modules/cmvk/src/cmvk/constitutional.py:712
↓ 10 callersMethodvalidate_manifest
Validate a capability manifest against policies. This is the main integration point that validates incoming agent manifests
agent-governance-python/agent-os/modules/iatp/iatp/policy_engine.py:142
↓ 10 callersMethodverify
Verify a signature against this agent's public key.
agent-governance-python/agentmesh-integrations/langgraph-trust/langgraph_trust/identity.py:42
↓ 10 callersMethodverify_chain
Verify full chain integrity: hash correctness and parent linkage.
agent-governance-python/agent-hypervisor/src/hypervisor/audit/delta.py:114
↓ 10 callersMethodverify_hash
Verify log integrity.
agent-governance-python/agent-os/modules/nexus/arbiter.py:50
↓ 10 callersMethodwrap_model_call
Governance gate around each model invocation. Performs the following checks **before** the model call: 1. Content-filter scan on inp
agent-governance-python/agent-os/src/agent_os/integrations/langchain_adapter.py:1089
↓ 10 callersFunctionwrapper
Create a SemanticKernelWrapper with test policy.
agent-governance-python/agent-os/tests/test_semantic_kernel_hooks.py:45
↓ 9 callersFunctionNewKillSwitchRegistry
NewKillSwitchRegistry creates an empty scoped kill switch registry.
agent-governance-golang/packages/agentmesh/kill_switch.go:183
↓ 9 callersMethodRun
Run starts the sidecar server
agent-governance-python/agent-os/modules/iatp/sidecar/go/main.go:233
↓ 9 callersMethod_agent
(self)
agent-governance-python/agent-mesh/tests/test_entra_agent_id.py:370
↓ 9 callersMethod_assert_has_health_check
(self, cls)
agent-governance-python/agent-os/tests/test_spec_adapter_contract_conformance.py:1081
↓ 9 callersFunction_build_runtime
( tmp_path: Path, verdicts: list[dict[str, Any]], *, approval_resolver=None, )
agent-governance-python/agt-policies/tests/scenarios/test_google_adk_adapter_scenarios.py:94
↓ 9 callersFunction_check_self_promotion
Detect issues that promote the author's own repos across other orgs. Distinguishes between thin-credibility spam and legitimate cross-ecosystem
scripts/contributor_check.py:743
↓ 9 callersMethod_classify_risk
Map composite score to a risk level. Thresholds (mirroring ``AnomalySeverity`` boundaries): * < 1.0 → LOW * < 2.0 → MEDIUM
agent-governance-python/agent-sre/src/agent_sre/anomaly/rogue_detector.py:445
↓ 9 callersFunction_contains_unresolved_variable
(value: str)
agent-governance-python/agent-os/src/agent_os/cli/mcp_scan.py:346
↓ 9 callersFunction_envelope
( *, agent_id: str, session_id: str = "session-1", intervention_point: str, tool_call_coun
agent-governance-python/agt-policies/src/agt/policies/snapshot.py:59
↓ 9 callersMethod_envelope_kwargs
(self)
agent-governance-python/agt-policies/src/agt/policies/snapshot.py:383
↓ 9 callersMethod_extract_content
Extract text content from various message types. Parameters ---------- message : Any A message that may be a stri
agent-governance-python/agent-os/src/agent_os/integrations/autogen_adapter.py:401
↓ 9 callersMethod_find
(self, report, vector_id: str)
agent-governance-python/agent-compliance/tests/test_prompt_defense.py:662
↓ 9 callersFunction_gate
()
agent-governance-python/agent-os/modules/caas/tests/test_unauth_gate.py:18
↓ 9 callersMethod_get_language
Detect language from file extension.
agent-governance-python/agent-os/src/agent_os/cli/policy_checker.py:259
↓ 9 callersFunction_kernel
(**policy_kwargs)
agent-governance-python/agent-os/tests/test_base_runtime_module_wiring.py:33
↓ 9 callersFunction_kernel
(runtime, *, approval_resolver=None)
agent-governance-python/agt-policies/tests/scenarios/test_google_adk_adapter_scenarios.py:126
↓ 9 callersMethod_key
Build a prefixed key for an agent.
agent-governance-python/agent-mesh/src/agentmesh/storage/redis_backend.py:68
↓ 9 callersFunction_make_agent
(**kwargs)
agent-governance-python/agent-discovery/tests/test_risk.py:9
↓ 9 callersFunction_make_chain
Helper to create a minimal ScopeChain.
agent-governance-python/agent-mesh/tests/test_delegation_depth.py:32
↓ 9 callersFunction_make_context
Create a mock SK function invocation context.
agent-governance-python/agent-os/tests/test_semantic_kernel_hooks.py:56
↓ 9 callersFunction_make_entry
(content: str, source: str = "test")
agent-governance-python/agent-os/tests/test_memory_guard.py:26
↓ 9 callersMethod_make_evaluator
(self, rules)
agent-governance-python/agent-os/tests/test_security_policy_enforcement.py:278
↓ 9 callersFunction_make_identity
(**kwargs)
agent-governance-python/agent-mesh/tests/test_coverage_boost.py:24
↓ 9 callersFunction_make_instrumentor
Return a ``GovernanceInstrumentor`` wired to mock OTel primitives.
agent-governance-python/agent-mesh/tests/test_otel_sdk.py:29
↓ 9 callersFunction_make_jwt
Build a fake JWT with the given payload (no real signature).
agent-governance-python/agent-mesh/tests/test_entra_agent_id.py:306
↓ 9 callersFunction_make_model_request
Create a mock LangChain ModelRequest.
agent-governance-python/agent-os/tests/test_langchain_middleware.py:54
↓ 9 callersFunction_make_policy
Build a duck-typed policy stand-in. PolicyEvaluator import will fail (agent-os-kernel not installed in this test env), so the provider runs wi
agent-governance-python/agent-sandbox/tests/test_hyperlight_sandbox.py:160
↓ 9 callersMethod_make_policy
(self, name, rules, scope="global", agents=None)
agent-governance-python/agent-mesh/tests/test_conflict_resolution.py:208
↓ 9 callersFunction_make_simple_doc
()
agent-governance-python/agent-os/tests/test_policy_language.py:30
↓ 9 callersFunction_make_slo
Create a simple SLO for testing.
agent-governance-python/agent-sre/tests/test_api.py:23
↓ 9 callersFunction_make_user
Create a mock GitHub user profile.
scripts/tests/test_contributor_check.py:38
↓ 9 callersMethod_matching_rules
(self, policy: PolicyDocument, field: str, value: str)
agent-governance-python/agent-os/tests/test_asi_starter_packs.py:279
↓ 9 callersFunction_noop_execute
()
policy-engine/sdk/python/tests/test_escalation.py:359
↓ 9 callersFunction_pop_common_adapter_kwargs
(kwargs: dict[str, Any])
policy-engine/sdk/python/agent_control_specification/_adapters/_shared.py:57
↓ 9 callersFunction_python_type_to_parameter_type
Convert Python type annotation to ParameterType. Args: python_type: Python type annotation Returns: Corresponding ParameterT
agent-governance-python/agent-os/modules/atr/atr/decorator.py:39
↓ 9 callersFunction_receipt
(step: int, decision: str = "allowed", reason: str | None = None)
agent-governance-python/agent-mesh/tests/test_step_receipt_to_audit_chain.py:67
↓ 9 callersMethod_record_audit
Record an audit entry and return it.
agent-governance-python/agent-os/src/agent_os/integrations/pydantic_ai_adapter.py:201
↓ 9 callersMethod_run_id_str
Convert run_id (UUID or str) to string.
agent-governance-python/agent-sre/src/agent_sre/integrations/langchain/callback.py:135
↓ 9 callersFunction_sign_registration
Create a valid sponsor signature for a registration request.
agent-governance-python/agent-mesh/tests/test_ca_security.py:38
↓ 9 callersFunction_simulate_query
Simulate on_query_start → on_query_end (or on_query_error).
agent-governance-python/agent-sre/tests/test_llamaindex.py:22
↓ 9 callersMethod_transition
Execute a validated state transition.
agent-governance-python/agent-mesh/src/agentmesh/lifecycle/manager.py:312
↓ 9 callersMethod_validate_checkpoint_metadata
Core stale-auth validation logic. Raises: PolicyViolationError: If fingerprint is missing or mismatched and ``aud
agent-governance-python/agent-os/src/agent_os/integrations/langgraph_adapter.py:517
↓ 9 callersMethod_verify_response
Verify handshake response with Ed25519 signature verification. Checks performed in order: 1. Challenge ID matches 2. Challeng
agent-governance-python/agent-mesh/src/agentmesh/trust/handshake.py:471
↓ 9 callersFunction_write
(tmp_path, name, content)
scripts/tests/test_check_lockfile_integrity.py:433
↓ 9 callersFunction_write_atr_tree
Materialise a miniature ATR rules/ directory at *root*.
examples/atr-import/test_import_atr.py:114
← previousnext →1,301–1,400 of 32,326, ranked by callers