MCPcopy Create free account

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

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

↓ 3 callersFunctiontrust_router
General-purpose trust router mapping verdict values to node names. Example:: graph.add_conditional_edges( "trust_check",
agent-governance-python/agentmesh-integrations/langgraph-trust/langgraph_trust/edges.py:44
↓ 3 callersFunctiontrust_verified_tool
Wrap a LangChain tool with trust verification. Returns a callable that checks the agent's trust score before delegating to the original tool'
agent-governance-python/agent-mesh/src/agentmesh/integrations/langchain/tools.py:50
↓ 3 callersMethoduninstall
Remove an installed plugin. Args: name: Plugin name. Raises: MarketplaceError: If the plugin is not installe
agent-governance-python/agent-mesh/src/agentmesh/marketplace/installer.py:173
↓ 3 callersMethodunpackAICard
* Extract an AI Card from an OCI manifest's layers.
agent-governance-typescript/src/oci-manifest.ts:124
↓ 3 callersMethodunregister
Remove a plugin from the registry. Args: name: Plugin name. version: Specific version to remove. If ``None``, removes
agent-governance-python/agent-mesh/src/agentmesh/marketplace/registry.py:64
↓ 3 callersMethodunregister_agent
Remove an agent from the process registry.
agent-governance-python/agent-hypervisor/src/hypervisor/security/kill_switch.py:105
↓ 3 callersMethodunsubscribe
Remove a handler from all subscriptions.
agent-governance-python/agent-mesh/src/agentmesh/events/bus.py:82
↓ 3 callersMethodunsubscribe
Unsubscribe from a topic. Args: subscription_id: Subscription ID to unsubscribe
agent-governance-python/agent-os/modules/amb/amb_core/bus.py:306
↓ 3 callersMethodunwrap
Restore original methods on a governed AutoGen agent. Removes all monkey-patches applied by :meth:`govern` and clears the agent from
agent-governance-python/agent-os/src/agent_os/integrations/autogen_adapter.py:1122
↓ 3 callersFunctionupdate_data
Thread-safe update of the shared data store.
agent-governance-python/agent-mesh/examples/trust-dashboard/dashboard.py:63
↓ 3 callersMethodupdate_resource_usage
Update the resource usage for an agent
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/lifecycle.py:2036
↓ 3 callersMethodupdate_ring
Update an agent's rate limit when their ring changes.
agent-governance-python/agent-hypervisor/src/hypervisor/security/rate_limiter.py:170
↓ 3 callersMethodupdate_status
Update message status. Args: message_id: Message ID status: New status error: Optional e
agent-governance-python/agent-os/modules/amb/amb_core/persistence.py:103
↓ 3 callersMethodupdate_turn_response
Update the AI response for a specific turn. Useful when you add a turn with just the user message and want to update
agent-governance-python/agent-os/modules/caas/src/caas/conversation.py:105
↓ 3 callersMethodvalidate
Validate the dependency graph. Returns a list of validation errors, or empty list if valid.
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/lifecycle.py:1692
↓ 3 callersMethodvalidate
Validate that a string contains none of the blocked keywords. Args: value: The text to scan (case-insensitive). metad
agent-governance-python/agent-os/src/agent_os/integrations/guardrails_adapter.py:261
↓ 3 callersMethodvalidate
Validate the workflow definition. Ensures all transitions point to valid steps.
agent-governance-python/agent-os/examples/self-evaluating/src/orchestrator.py:143
↓ 3 callersMethodvalidate
(self, plan: Dict[str, Any])
agent-governance-python/agent-os/examples/self-evaluating/src/constraint_engine.py:153
↓ 3 callersMethodvalidate
(self, plan: Dict[str, Any])
agent-governance-python/agent-os/examples/self-evaluating/src/constraint_engine.py:237
↓ 3 callersMethodvalidate
Validate the spec and return a list of errors.
agent-governance-python/agent-sre/src/agent_sre/delivery/gitops.py:101
↓ 3 callersMethodvalidateAgainstPolicy
* Validate code against a policy
agent-governance-python/agent-os/extensions/copilot/src/policyLibrary.ts:154
↓ 3 callersFunctionvalidateResourceName
(value: string, label: string)
agent-governance-typescript/src/sandbox.ts:119
↓ 3 callersMethodvalidate_challenge
Check if a challenge ID is valid and has not expired.
agent-governance-python/agent-mesh/src/agentmesh/trust/handshake.py:580
↓ 3 callersMethodvalidate_input
Validate agent input through Agent Shield Stage 1. Stage 1 screens the raw user message for jailbreak attempts, prompt injection, and
agent-governance-python/agent-os/src/agent_os/integrations/agentshield_adapter.py:608
↓ 3 callersMethodvalidate_supervisor
Verify a supervisor agent meets trust requirements. A supervisor at any level must declare a ``name`` and ``level``. Level-0 supervis
agent-governance-python/agent-os/src/agent_os/trust_root.py:142
↓ 3 callersMethodvalidate_tool_result
(self, tool_name: str, result: Any)
agent-governance-python/agent-os/tests/test_agentshield_adapter.py:366
↓ 3 callersFunctionvaluesEqual
(a, b interface{})
agent-governance-golang/packages/agentmesh/policy.go:394
↓ 3 callersMethodverify
()
agent-governance-copilot-cli/test/policy-engine.test.mjs:183
↓ 3 callersMethodverify
Verify signature (simulated)
agent-governance-python/agent-os/examples/grid-balancing/demo.py:62
↓ 3 callersMethodverifyIntegrity
* Verify integrity of all stored entries. * Returns false if any entry has been tampered with.
agent-governance-typescript/src/context-poisoning.ts:196
↓ 3 callersFunctionverify_batch
Verify multiple output pairs. Pure function that processes pairs in sequence. Args: outputs_a: Sequence of outputs from source
agent-governance-python/agent-os/modules/cmvk/src/cmvk/verification.py:903
↓ 3 callersMethodverify_chain
Verify the integrity of the full hash chain. Returns ``True`` if every entry's ``chain_hash`` matches its recomputed value and the ``
agent-governance-python/agentmesh-integrations/haystack-agentmesh/src/haystack_agentmesh/audit.py:113
↓ 3 callersMethodverify_connection
Verify a connection between two flow nodes.
agent-governance-python/agent-mesh/src/agentmesh/integrations/langflow/__init__.py:243
↓ 3 callersMethodverify_crew_trust
Verify all agents in crew meet trust requirements. Returns: Dictionary with per-agent trust status and overall result.
agent-governance-python/agent-mesh/src/agentmesh/integrations/crewai/crew.py:58
↓ 3 callersFunctionverify_distributions
Calculate drift between two probability distributions. Uses KL divergence and other statistical measures to compare distributions. Args
agent-governance-python/agent-os/modules/cmvk/src/cmvk/verification.py:600
↓ 3 callersMethodverify_peer
Verify a peer agent before IATP handshake. This is the core viral mechanism - unverified peers get directed to regis
agent-governance-python/agent-os/modules/nexus/registry.py:224
↓ 3 callersMethodverify_proof
Verify a Merkle inclusion proof.
agent-governance-python/agent-mesh/src/agentmesh/governance/audit.py:425
↓ 3 callersFunctionverify_provenance
Verify a provenance attestation against an artifact. Checks: 1. Artifact SHA-256 matches the attestation subject digest. 2. If a Sigstore
agent-governance-python/agent-mesh/src/agentmesh/marketplace/sigstore_provenance.py:321
↓ 3 callersMethodverify_stage
Verify trust for a pipeline stage.
agent-governance-python/agent-mesh/src/agentmesh/integrations/haystack/__init__.py:344
↓ 3 callersMethodversion
Convenience property for tool version.
agent-governance-python/agent-os/modules/atr/atr/schema.py:158
↓ 3 callersFunctionwaitForElement
(selector: string, timeout = 5000)
agent-governance-python/agent-os/extensions/chrome/src/content/aws.ts:484
↓ 3 callersFunctionwaitForElement
(selector: string, timeout = 10000)
agent-governance-python/agent-os/extensions/chrome/src/content/jira.ts:426
↓ 3 callersMethodwait_for_decision
Block until a decision is made or timeout expires. Returns: The final decision, or ``PENDING`` if timeout was reached.
agent-governance-python/agent-os/src/agent_os/integrations/escalation.py:200
↓ 3 callersMethodwarm_cache
Pre-warm the JWKS cache for known partners. Per ADR-0003 200ms handshake SLA: cold-cache fetch is an HTTPS round-trip; pre-warming br
agent-governance-python/agent-mesh/src/agentmesh/identity/external_jwks.py:186
↓ 3 callersFunctionwatch_and_recompile
Poll the ATR source tree and recompile on any mtime change. Stdlib-only polling avoids adding a watchdog dependency. ``iterations`` bounds th
examples/atr-import/import_atr.py:258
↓ 3 callersFunctionwrapAnthropicClient
( control: RunnableControl, client: TClient, defaultOptions: AdapterOptions = {}, )
policy-engine/sdk/node/src/adapters.ts:463
↓ 3 callersFunctionwriteHookOutput
(payload)
agent-governance-claude-code/hooks/common.mjs:18
↓ 3 callersMethodwrite_batch
Serialise all entries and write them under a single lock. All lines are serialised before the lock is acquired, then written in a sin
agent-governance-python/agent-mesh/src/agentmesh/governance/audit_backends.py:488
↓ 3 callersFunctionwrite_metric
(writer: Any, name: str, values: Iterable[bool])
policy-engine/benchmarks/agentdojo/acs_agentdojo_bench/runner.py:243
↓ 3 callersMethodzadd
Add member to sorted set with score.
agent-governance-python/agent-mesh/src/agentmesh/storage/provider.py:153
↓ 2 callersMethodActivate
Activate marks the kill switch active and records the event.
agent-governance-golang/packages/agentmesh/kill_switch.go:124
↓ 2 callersMethodCanTransition
CanTransition reports whether a transition to the given state is allowed.
agent-governance-golang/packages/agentmesh/lifecycle.go:101
↓ 2 callersMethodClear
Clear marks the kill switch inactive and records the event.
agent-governance-golang/packages/agentmesh/kill_switch.go:139
↓ 2 callersMethodClear
Clear marks the given scope allowed again and records the event in registry history.
agent-governance-golang/packages/agentmesh/kill_switch.go:216
↓ 2 callersMethodClone
Clone returns a value-copy of the entry. Used at the AuditLogger API boundary so callers cannot mutate the in-store record (and thereby break the hash
agent-governance-golang/packages/agentmesh/audit.go:32
↓ 2 callersMethodDelete
Delete removes a credential. Returns true if it existed.
agent-governance-golang/packages/agentmesh/credential_vault.go:279
↓ 2 callersMethodDestroySession
DestroySession force-removes the container for the given session.
agent-governance-golang/packages/agentmesh/sandbox.go:313
↓ 2 callersMethodEvents
Events returns a copy of the transition history.
agent-governance-golang/packages/agentmesh/lifecycle.go:71
↓ 2 callersMethodExportJSON
ExportJSON serialises all audit entries to a JSON string.
agent-governance-golang/packages/agentmesh/audit.go:181
↓ 2 callersFunctionExtractSQLFacets
ExtractSQLFacets is the built-in SQL extractor. Reads sub["query"] and returns {verb, target, tables, functions} as flat strings.
agent-governance-golang/packages/agentmesh/protocol_facets.go:220
↓ 2 callersFunctionGovernOperation
GovernOperation executes a single operation behind the standard governance stack.
agent-governance-golang/packages/agentmesh/middleware.go:451
↓ 2 callersMethodInjectEnv
InjectEnv renders placeholders in a subprocess environment map.
agent-governance-golang/packages/agentmesh/credential_vault.go:600
↓ 2 callersMethodListHandles
ListHandles returns all credential handle names.
agent-governance-golang/packages/agentmesh/credential_vault.go:296
↓ 2 callersMethodLoadCedar
LoadCedar registers a Cedar backend with the policy engine.
agent-governance-golang/packages/agentmesh/policy.go:78
↓ 2 callersFunctionNewCredentialInjector
NewCredentialInjector constructs an injector backed by the given vault.
agent-governance-golang/packages/agentmesh/credential_vault.go:577
↓ 2 callersFunctionNewKillSwitch
NewKillSwitch creates an inactive kill switch.
agent-governance-golang/packages/agentmesh/kill_switch.go:119
↓ 2 callersMethodPlaceholder
Placeholder returns the {{cred:NAME}} placeholder for this handle.
agent-governance-golang/packages/agentmesh/credential_vault.go:98
↓ 2 callersMethodScanAll
ScanAll scans every tool in the slice and returns per-tool results.
agent-governance-golang/packages/agentmesh/mcp.go:77
↓ 2 callersMethodScanConfigPaths
ScanConfigPaths scans directories for agent configs, containers, and dependency markers.
agent-governance-golang/packages/agentmesh/discovery.go:397
↓ 2 callersMethodScanProcesses
ScanProcesses returns merged discovered agents from caller-supplied process metadata.
agent-governance-golang/packages/agentmesh/discovery.go:333
↓ 2 callersFunctionWithTrustConfig
WithTrustConfig overrides the default trust configuration.
agent-governance-golang/packages/agentmesh/types.go:108
↓ 2 callersMethodWroteHeader
()
agent-governance-golang/packages/agentmesh/middleware.go:505
↓ 2 callersMethod__init__
(self)
policy-engine/sdk/python/agent_control_specification/_adapters/litellm.py:534
↓ 2 callersMethod__init__
(self, agent_did: str, trust_bridge: TrustBridge)
agent-governance-python/agent-mesh/src/agentmesh/trust/bridge.py:374
↓ 2 callersMethod__init__
( self, agent_did: str, role_arn: Optional[str] = None, *, metadata_ur
agent-governance-python/agent-mesh/src/agentmesh/identity/managed_identity.py:172
↓ 2 callersMethod__init__
(self, identity: AgentIdentity)
agent-governance-python/agent-mesh/examples/02-customer-service/main.py:50
↓ 2 callersMethod__init__
(self)
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/constraint_graphs.py:117
↓ 2 callersMethod__init__
( self, policy: PolicyConfig | None = None, on_violation: Callable[[PolicyViolationErr
agent-governance-python/agent-os/src/agent_os/integrations/google_adk_adapter.py:201
↓ 2 callersMethod__init__
( self, chunk_index: int, pattern_matched: str, category: str = "injection" )
agent-governance-python/agent-rag-governance/src/agent_rag_governance/exceptions.py:73
↓ 2 callersFunction_acs_tool_call
(name: str, args: JsonValue, call_id: str | None)
policy-engine/sdk/python/agent_control_specification/_adapters/litellm.py:695
↓ 2 callersFunction_add
(p: Path)
agent-governance-python/agent-marketplace/src/agent_marketplace/batch.py:191
↓ 2 callersMethod_add_from_dict
(self, d: dict[str, str])
agent-governance-python/agent-os/src/agent_os/egress_policy.py:154
↓ 2 callersMethod_add_rate_limit_headers
Attach rate limit headers to the response.
agent-governance-python/agent-mesh/src/agentmesh/services/rate_limit_middleware.py:72
↓ 2 callersMethod_add_verification_footer
Add AgentMesh verification footer to tool output.
agent-governance-python/agent-mesh/src/agentmesh/cli/proxy.py:364
↓ 2 callersMethod_add_violation
(self, node: ast.AST, pattern: str, message: str)
agent-governance-python/agent-sandbox/src/agent_sandbox/code_scanner.py:185
↓ 2 callersFunction_agent_did_for_token
(token: str)
agent-governance-python/agent-os/services/cloud-board/api/auth.py:191
↓ 2 callersFunction_agent_msg
(agent: str, msg: str)
examples/openai-agents-governed/openai_agents_governance_demo.py:199
↓ 2 callersFunction_all_values_in
(values: list[Any], excluded: list[Any])
agent-governance-python/agt-policies/src/agt/manifest_resolution/merge.py:148
↓ 2 callersMethod_analyze_content_factors
Analyze content to identify important factors.
agent-governance-python/agent-os/modules/caas/src/caas/tuning/tuner.py:202
↓ 2 callersMethod_analyze_section_patterns
Analyze common section patterns across documents.
agent-governance-python/agent-os/modules/caas/src/caas/tuning/tuner.py:274
↓ 2 callersFunction_api
(path: str, params: dict[str, str] | None = None)
scripts/credential_audit.py:62
↓ 2 callersFunction_api
(path: str, params: dict[str, str] | None = None)
agent-governance-python/agent-compliance/src/agent_compliance/cli/credential_audit.py:83
↓ 2 callersMethod_append_line
Append a single JSON line to the file.
agent-governance-python/agent-mesh/src/agentmesh/governance/audit_backends.py:295
↓ 2 callersMethod_apply_recovery
Apply time-based score recovery toward neutral (0.7).
agent-governance-python/agent-os/src/agent_os/task_outcome.py:141
↓ 2 callersMethod_apply_resolution
Apply the resolution to escrow and reputation.
agent-governance-python/agent-os/services/cloud-board/workers/dispute_resolver.py:190
↓ 2 callersFunction_approval_error_result
( raw_result: InterventionPointResult, snapshot: Mapping[str, Any], exc: Exception, )
agent-governance-python/agt-policies/src/agt/policies/runtime.py:521
↓ 2 callersFunction_approval_required_policy
()
agent-governance-python/agent-os/tests/test_v5_bridge.py:41
↓ 2 callersFunction_approval_resolver_failed_result
(result: InterventionPointResult)
policy-engine/sdk/python/agent_control_specification/_orchestration.py:407
↓ 2 callersFunction_approval_timeout_result
( raw_result: InterventionPointResult, snapshot: Mapping[str, Any], on_timeout: str, )
agent-governance-python/agt-policies/src/agt/policies/runtime.py:488
↓ 2 callersFunction_arguments_snapshot
(arguments: Any)
policy-engine/sdk/python/agent_control_specification/_adapters/semantic_kernel.py:168
← previousnext →4,601–4,700 of 32,326, ranked by callers