MCPcopy Create free account

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

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

↓ 12 callersFunctioncompose_policies
Merge multiple policies using most-restrictive-wins semantics. - ``max_tokens``, ``max_tool_calls``, ``max_concurrent``, ``timeout_seconds``:
agent-governance-python/agent-os/src/agent_os/integrations/policy_compose.py:34
↓ 12 callersMethodcompute_fingerprint
Compute a stable fingerprint from merge keys.
agent-governance-python/agent-discovery/src/agent_discovery/models.py:115
↓ 12 callersMethodcompute_hash
Compute the SHA-256 hash of this entry's canonical fields. Returns: Hex-encoded SHA-256 digest.
agent-governance-python/agent-mesh/src/agentmesh/governance/audit.py:172
↓ 12 callersMethodcreate_attestation
Create a new attestation record (used by Control Plane). Args: agent_id: Agent identifier codebase_hash: SHA
agent-governance-python/agent-os/modules/iatp/iatp/attestation.py:156
↓ 12 callersMethodcreate_context
Create execution context for an agent. The policy is **deep-copied** so that the session is pinned to the policy that was active when
agent-governance-python/agent-os/src/agent_os/integrations/base.py:1278
↓ 12 callersFunctioncreate_signal_from_log
Helper: Create a log stream signal.
agent-governance-python/agent-os/examples/self-evaluating/src/universal_signal_bus.py:591
↓ 12 callersFunctiondecision
(decisionValue, extra = {})
policy-engine/sdk/node/test/coding_assistant_use_case.test.mjs:92
↓ 12 callersFunctiondiscover_policies
Discover governance policy files from action path up to root. Walks the directory tree from ``action_path`` upward to ``root``, collecting ``
agent-governance-python/agent-os/src/agent_os/policies/discovery.py:22
↓ 12 callersFunctionemitToDevTools
(event, data)
agent-governance-python/agent-os/extensions/chrome/injected.js:187
↓ 12 callersMethodenforce
Apply enforcement for one intervention-point result. In ``enforce`` mode a ``deny`` raises :class:`AgentControlBlocked`, and an ``esc
policy-engine/sdk/python/agent_control_specification/_orchestration.py:228
↓ 12 callersMethodevaluate
(self, request: dict[str, Any])
agent-governance-python/agentmesh-integrations/cedarling-agentmesh/cedarling_agentmesh/backend.py:133
↓ 12 callersMethodexport_slo_evaluation
Export an SLO evaluation as a Phoenix EVALUATOR span.
agent-governance-python/agent-sre/src/agent_sre/integrations/arize/exporter.py:100
↓ 12 callersFunctionfilterEntries
Mock filter implementation matching GovernanceHubScript
agent-governance-typescript/agent-os-vscode/src/test/webviews/auditFilter.test.ts:21
↓ 12 callersMethodfingerprint
Content hash for change detection.
agent-governance-python/agent-sre/src/agent_sre/integrations/mcp/__init__.py:55
↓ 12 callersMethodfromNative
( manifest: JsonValue | string, annotatorDispatcher?: AnnotatorDispatcher, policyDispatcher?: Poli
policy-engine/sdk/node/src/index.ts:277
↓ 12 callersMethodget
Get a message by ID. Args: message_id: Message ID Returns: Persisted message or
agent-governance-python/agent-os/modules/amb/amb_core/persistence.py:90
↓ 12 callersFunctiongetNestedValue
(obj: Record<string, unknown>, path: string)
agent-governance-typescript/src/policy.ts:151
↓ 12 callersFunctiongetSettings
()
agent-governance-python/agent-os/extensions/chrome/src/shared/storage.ts:17
↓ 12 callersMethodget_callable
Get the callable function for a tool. This returns the function object but does NOT execute it. The caller (Agent Runtime) is respons
agent-governance-python/agent-os/modules/atr/atr/registry.py:297
↓ 12 callersMethodget_usage
Return a snapshot of current usage for *agent_id*.
agent-governance-python/agent-mesh/src/agentmesh/governance/budget.py:137
↓ 12 callersFunctiongoverned_call
Execute a tool call through governance. Returns the mock result string on success, or None if blocked.
agent-governance-python/agent-os/examples/multi-agent-support/demo.py:168
↓ 12 callersMethodhandle_failure
Handle a failure in agent communication. This is the main entry point for failure recovery. It: 1. Diagnoses the failure usi
agent-governance-python/agent-os/modules/iatp/iatp/recovery.py:47
↓ 12 callersMethodinjectHeaders
( agentDid: string, headers: Record<string, string>, opts: InjectionOptions, )
agent-governance-typescript/src/credential-vault.ts:479
↓ 12 callersMethodinject_headers
( self, agent_did: str, headers: Mapping[str, str], *, action_class: s
agent-governance-python/agent-os/src/agent_os/credential_vault.py:562
↓ 12 callersMethodintercept
Check transparency requirements before allowing a tool call.
agent-governance-python/agent-os/src/agent_os/transparency.py:104
↓ 12 callersFunctionloadPolicy
({ defaultPolicyPath = new URL("../config/default-policy.json", import.meta.url), policyPath = process.env
agent-governance-claude-code/lib/policy.mjs:59
↓ 12 callersFunctionload_config
Load an MCP configuration from JSON or YAML. Args: path: Path to a JSON/YAML config file. Returns: Parsed config object.
agent-governance-python/agent-os/src/agent_os/cli/mcp_scan.py:303
↓ 12 callersFunctionload_runbooks_from_yaml
Load runbook definitions from a YAML file. Validates the document structure and rejects entries that would silently corrupt the registry — em
agent-governance-python/agent-sre/src/agent_sre/incidents/runbook_registry.py:70
↓ 12 callersMethodmatches
Check if this grant satisfies a requested capability. Uses simple startswith matching for scope checking.
agent-governance-python/agent-mesh/src/agentmesh/trust/capability.py:101
↓ 12 callersFunctionmockProviders
(overrides?: Record<string, unknown>)
agent-governance-typescript/agent-os-vscode/src/test/webviews/detailFetchersAudit.test.ts:21
↓ 12 callersMethodmute
Filter *result*, redacting sensitive content in-place. Accepts an ``ExecutionResult`` (from ``agent_os.stateless``) or any object wit
agent-governance-python/agent-os/src/agent_os/mute_agent.py:156
↓ 12 callersFunctionpipe
Execute a Face→Hands pipeline with kernel-level validation. 1. Face agent produces an ExecutionPlan from the task 2. Kernel validates plan ca
agent-governance-python/agent-os/src/agent_os/mute.py:249
↓ 12 callersFunctionpolicy_penalty
Calculate penalty from a list of policy violations. This is a simple helper for computing penalties outside of the full PolicyReward cla
agent-governance-python/agent-lightning/src/agent_lightning_gov/reward.py:44
↓ 12 callersMethodprocess
Evaluate an action against governance policy. Returns GovernanceResult with allowed=True (pass-through) or allowed=False (blocked wit
agent-governance-python/agentmesh-integrations/langflow-agentmesh/src/langflow_agentmesh/governance_component.py:101
↓ 12 callersMethodpublic_key
Raw Ed25519 public key bytes (32 bytes).
agent-governance-python/agent-mesh/src/agentmesh/identity/tee_keystore.py:46
↓ 12 callersMethodput_agent
(self, record: AgentRecord)
agent-governance-python/agent-mesh/src/agentmesh/registry/store.py:74
↓ 12 callersMethodquery
Query audit entries with optional filters.
agent-governance-python/agent-mesh/src/agentmesh/governance/audit.py:575
↓ 12 callersMethodread_all
Read all events from the stream.
agent-governance-python/agent-os/examples/self-evaluating/src/telemetry.py:61
↓ 12 callersMethodrecord
Record that *alert* was sent (update window timestamp). See :meth:`consume` for the atomic check-and-record alternative.
agent-governance-python/agent-sre/src/agent_sre/alerts/dedup.py:122
↓ 12 callersMethodrecord_call
Record a tool call. Args: tool_name: Name of the tool. latency_ms: Call latency in milliseconds. success:
agent-governance-python/agent-os/modules/atr/atr/metrics.py:147
↓ 12 callersMethodrecord_event
Record a task event for an agent. Returns False if agent not found.
agent-governance-python/agent-sre/src/agent_sre/fleet/__init__.py:257
↓ 12 callersMethodredact
Redact all PII from text.
agent-governance-python/agent-os/examples/legal-review/main.py:337
↓ 12 callersFunctionregister
(agent_id: str, session_id: str)
agent-governance-python/agent-sandbox/tests/test_azure_sandbox_integration.py:131
↓ 12 callersMethodregister_agent
Register an agent in the marketplace.
agent-governance-python/agent-os/examples/self-evaluating/src/agent_brokerage.py:240
↓ 12 callersFunctionrequest
( server: http.Server, method: string, path: string, body?: unknown, headers?: Record<string, string
agent-governance-python/agent-mesh/services/api/tests/api.test.ts:38
↓ 12 callersFunctionresolveBundledOpa
()
policy-engine/sdk/node/src/integrations/opa-binary.ts:41
↓ 12 callersMethodresolve_sigma
Resolve an agent's sigma. Returns 0.50 default when no scorer is configured.
agent-governance-python/agent-hypervisor/src/hypervisor/integrations/nexus_adapter.py:71
↓ 12 callersMethodrun
Evaluate an action against the loaded governance policy. Returns a dict with ``decision`` ("allow" | "deny" | "audit"), ``reason``, a
agent-governance-python/agentmesh-integrations/haystack-agentmesh/src/haystack_agentmesh/governance.py:96
↓ 12 callersMethodscore
Compute risk assessment for a discovered agent.
agent-governance-python/agent-discovery/src/agent_discovery/risk.py:37
↓ 12 callersMethodsearch
(query: str)
agent-governance-python/agent-os/tests/test_openai_agents_sdk_adapter.py:748
↓ 12 callersMethodsetVisible
(visible: boolean)
agent-governance-typescript/agent-os-vscode/src/webviews/sidebar/GovernanceStore.ts:114
↓ 12 callersMethodset_agent_context
Set the context data for an agent for ABAC evaluation. Args: agent_role: The agent role/ID context: Dictiona
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/policy_engine.py:409
↓ 12 callersMethodset_gauge
Set a gauge metric value.
agent-governance-python/agent-sre/src/agent_sre/integrations/prometheus/exporter.py:44
↓ 12 callersFunctionshow_result
(label: str, detail: str)
examples/maf-integration/03-healthcare/python/main.py:87
↓ 12 callersFunctionshow_result
(label: str, detail: str)
examples/maf-integration/01-loan-processing/python/main.py:91
↓ 12 callersFunctionshow_result
(label: str, detail: str)
examples/maf-integration/05-devops-deploy/python/main.py:87
↓ 12 callersFunctionshow_result
(label: str, detail: str)
examples/maf-integration/04-it-helpdesk/python/main.py:87
↓ 12 callersFunctionshow_result
(label: str, detail: str)
examples/maf-integration/02-customer-service/python/main.py:87
↓ 12 callersMethodstrict
Maximum security policy: deny all except allowlist. Suitable for high-risk environments where every action must be tightly controlled
agent-governance-python/agent-os/src/agent_os/integrations/templates.py:24
↓ 12 callersMethodsuspend
Suspend this sponsor (and all their agents should be suspended too). Args: reason: Optional human-readable reason for suspension.
agent-governance-python/agent-mesh/src/agentmesh/identity/sponsor.py:152
↓ 12 callersFunctiontimeAgo
(isoString: string)
agent-governance-typescript/agent-os-vscode/src/webviews/sidebar/timeUtils.ts:11
↓ 12 callersMethodtoSnakeCase
(str: string)
agent-governance-python/agent-os/extensions/copilot/src/agentGenerator.ts:777
↓ 12 callersMethodtry_check
Like check(), but returns False instead of raising.
agent-governance-python/agent-hypervisor/src/hypervisor/security/rate_limiter.py:157
↓ 12 callersMethodvalidate
Run health check on the inactive environment. Args: health_check_fn: A callable that returns True if the environment is healthy.
agent-governance-python/agent-sre/src/agent_sre/delivery/blue_green.py:161
↓ 12 callersMethodvalidate_action
Deterministic policy check against all registered policies. Args: action: Dict with at least ``tool`` (str) and ``arguments`` (di
agent-governance-python/agent-os/src/agent_os/trust_root.py:99
↓ 12 callersMethodverify_handoff
Verify a handoff from source agent to target agent. Checks: 1. Source agent meets trust threshold 2. Target agent me
agent-governance-python/agentmesh-integrations/openai-agents-agentmesh/openai_agents_agentmesh/trust.py:230
↓ 12 callersMethodverify_integrity
Always valid.
agent-governance-python/agent-mesh/src/agentmesh/governance/audit.py:604
↓ 12 callersFunctionverify_signature
Verify the Ed25519 signature of a plugin manifest. Args: manifest: The manifest to verify (must include a ``signature``). public_
agent-governance-python/agent-mesh/src/agentmesh/marketplace/signing.py:59
↓ 12 callersMethodwrap
Wrap an Anthropic client with governance. .. deprecated:: Use :meth:`as_message_hook` instead for a non-invasive inte
agent-governance-python/agent-os/src/agent_os/integrations/anthropic_adapter.py:240
↓ 12 callersMethodwrap
Wrap an OpenAI Assistant with governance. This is the primary wrapping method, consistent with all other adapters. OpenAI Assistants
agent-governance-python/agent-os/src/agent_os/integrations/openai_adapter.py:262
↓ 11 callersMethodSetRingPermissions
SetRingPermissions replaces the allowed actions for a given ring.
agent-governance-golang/packages/agentmesh/rings.go:72
↓ 11 callersMethodTransition
Transition moves the agent to a new state if the transition is valid.
agent-governance-golang/packages/agentmesh/lifecycle.go:80
↓ 11 callersFunction_banner
(title: str)
examples/openai-agents-governed/openai_agents_governance_demo.py:175
↓ 11 callersFunction_format_datetime
Format a datetime for display, handling None.
agent-governance-python/agent-mesh/src/agentmesh/cli/trust_cli.py:48
↓ 11 callersFunction_good_claims
(now: int | None = None)
agent-governance-python/agent-mesh/tests/test_entra_verifier.py:58
↓ 11 callersFunction_handle_error
Centralized error handler.
agent-governance-python/agent-compliance/src/agent_compliance/cli/agt.py:495
↓ 11 callersMethod_kernel
(self, **policy_kw)
agent-governance-python/agent-os/tests/test_drift_detection.py:86
↓ 11 callersFunction_make_agent_context
Create a mock AgentContext.
agent-governance-python/agent-os/tests/test_maf_adapter.py:36
↓ 11 callersMethod_make_callback
(self, score: int = 600, min_score: int = 500)
agent-governance-python/agent-mesh/tests/test_langchain_integration.py:66
↓ 11 callersMethod_make_collector
(self)
agent-governance-python/agent-mesh/tests/test_coverage_boost.py:999
↓ 11 callersMethod_make_crew
Create a mock CrewAI crew.
agent-governance-python/agent-os/tests/test_crewai_tool_interception.py:36
↓ 11 callersMethod_make_engine
(self)
agent-governance-python/agent-os/tests/test_security_hardening.py:249
↓ 11 callersMethod_make_entry
(self, **kwargs)
agent-governance-python/agent-mesh/tests/test_stdout_audit.py:103
↓ 11 callersFunction_make_function_context
Create a mock FunctionInvocationContext.
agent-governance-python/agent-os/tests/test_maf_adapter.py:61
↓ 11 callersFunction_make_gateway
Create an MCPGateway with a default policy.
agent-governance-python/agent-os/tests/test_spec_mcp_gateway_conformance.py:94
↓ 11 callersFunction_make_link
Helper to create a valid DelegationLink.
agent-governance-python/agent-mesh/tests/test_delegation_depth.py:14
↓ 11 callersFunction_make_middleware
Create an AgentTrustMiddleware wrapping a dummy get_response.
agent-governance-python/agent-mesh/tests/test_django_middleware.py:73
↓ 11 callersFunction_make_mock_chain
Create a mock LangChain chain/agent.
agent-governance-python/agent-os/tests/test_deep_integrations.py:53
↓ 11 callersFunction_make_npm_lock
(*pkgs: tuple[str, str, str])
scripts/tests/test_check_lockfile_integrity.py:33
↓ 11 callersFunction_make_policy
( rules: list[TrustRule] | None = None, defaults: TrustDefaults | None = None, )
agent-governance-python/agent-mesh/tests/test_trust_policy.py:26
↓ 11 callersMethod_make_raw_provider
(self)
agent-governance-python/agent-sandbox/tests/test_docker_sandbox.py:817
↓ 11 callersFunction_make_step
Create a mock smolagents step.
agent-governance-python/agent-os/tests/test_smolagents_hooks.py:54
↓ 11 callersFunction_make_tracer
Return a MeshTracer backed by an in-memory span exporter.
agent-governance-python/agent-mesh/tests/test_otel_tracing.py:22
↓ 11 callersMethod_matching_rules
Return rules whose condition matches the given field/value pair.
agent-governance-python/agent-os/tests/test_asi_starter_packs.py:178
↓ 11 callersFunction_print_table
Print a formatted results table.
agent-governance-python/agent-os/tests/test_benchmarks.py:60
↓ 11 callersMethod_raise_violation
Create, record, and surface a PolicyViolationError. Appends the error to the violations list and calls on_violation. Args:
agent-governance-python/agent-os/src/agent_os/integrations/smolagents_adapter.py:582
↓ 11 callersMethod_record_call
Record call for audit.
agent-governance-python/agent-mesh/src/agentmesh/integrations/mcp/__init__.py:361
↓ 11 callersFunction_sanitize_env_vars
Remove dangerous env vars that could escape sandbox hardening.
agent-governance-python/agent-sandbox/src/agent_sandbox/docker_provider/provider.py:202
↓ 11 callersFunction_score_to_grade
Map a 0-100 score to a letter grade. Scans ``GRADE_THRESHOLD_LIST`` top-down (highest threshold first) and returns the first letter whose thr
agent-governance-python/agent-compliance/src/agent_compliance/prompt_defense.py:51
↓ 11 callersFunction_serve_bytes
Start a local HTTP server serving *data* on GET /. Returns (server, url).
agent-governance-python/agent-marketplace/tests/test_artifact_fetch.py:75
← previousnext →1,001–1,100 of 32,326, ranked by callers