Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/microsoft/agent-governance-toolkit
/ functions
Functions
32,326 in github.com/microsoft/agent-governance-toolkit
⨍
Functions
32,326
◇
Types & classes
6,875
↳
Endpoints
332
↓ 2 callers
Function
_assemble_litellm_chunks
(chunks: list[Any])
policy-engine/sdk/python/agent_control_specification/_adapters/litellm.py:715
↓ 2 callers
Function
_atomic_write_yaml
Write YAML to ``path`` atomically via tempfile + ``os.replace``. A torn write or crash leaves either the previous file intact or no file, nev
agent-governance-python/agent-marketplace/src/agent_marketplace/installer.py:533
↓ 2 callers
Method
_audit_log_tool_call
Log tool call to audit trail.
agent-governance-python/agent-mesh/src/agentmesh/cli/proxy.py:393
↓ 2 callers
Method
_audit_phi_access
Log PHI access to audit chain.
agent-governance-python/agent-mesh/examples/03-healthcare-hipaa/main.py:154
↓ 2 callers
Function
_authorize_dispute_participant
(dispute: dict, principal: AuthPrincipal)
agent-governance-python/agent-os/services/cloud-board/api/routes/arbiter.py:390
↓ 2 callers
Method
_auto_reconnect
Attempt to reconnect with exponential back-off.
agent-governance-python/agent-mesh/src/agentmesh/transport/websocket.py:241
↓ 2 callers
Function
_b64url
(data: dict)
agent-governance-python/agent-mesh/tests/test_entra_agent_id.py:311
↓ 2 callers
Function
_banner
(title: str)
scripts/governance_gate.py:176
↓ 2 callers
Function
_base64url_decode
Decode base64url string without padding per RFC 7515.
agent-governance-python/agent-mesh/src/agentmesh/identity/jwk.py:29
↓ 2 callers
Function
_base64url_encode
Encode bytes as base64url without padding per RFC 7515.
agent-governance-python/agent-mesh/src/agentmesh/identity/jwk.py:24
↓ 2 callers
Function
_baseline_key
Stable identifier for a finding used by the baseline file. Format: ``<relative-source-path>\t<target>``. Line numbers are intentionally exclu
scripts/docs/check_links.py:166
↓ 2 callers
Function
_body_bytes
(message: Mapping[str, Any])
policy-engine/sdk/python/agent_control_specification/_adapters/_shared.py:233
↓ 2 callers
Method
_build_hash_input
(self)
agent-governance-python/agent-hypervisor/src/hypervisor/audit/delta.py:43
↓ 2 callers
Method
_build_headers
Build request headers with trust metadata.
agent-governance-python/agent-mesh/src/agentmesh/integrations/flowise/__init__.py:132
↓ 2 callers
Function
_build_policy_rules
(sql_config: SQLPolicyConfig)
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/policy_engine.py:851
↓ 2 callers
Method
_build_prompt
Build the evaluation prompt.
agent-governance-python/agent-os/modules/cmvk/src/cmvk/constitutional.py:558
↓ 2 callers
Method
_build_report
( self, components: dict[str, ComponentHealth] )
agent-governance-python/agent-os/src/agent_os/integrations/health.py:172
↓ 2 callers
Method
_build_request
Build a Cedar authorization request from the AGT context dict. Converts AGT's ``tool_name`` (snake_case) → Cedar ``action`` (PascalCa
agent-governance-python/agentmesh-integrations/cedarling-agentmesh/cedarling_agentmesh/backend.py:184
↓ 2 callers
Method
_build_status
(self, usage: _AgentUsage)
agent-governance-python/agent-os/src/agent_os/integrations/token_budget.py:123
↓ 2 callers
Function
_calculate_compliance_stats
Calculate aggregated compliance statistics.
agent-governance-python/agent-os/services/cloud-board/api/routes/compliance.py:141
↓ 2 callers
Method
_calculate_initial_trust_score
Calculate initial trust score for a new agent. New agents start with a score of 500/1000 with balanced dimensions.
agent-governance-python/agent-mesh/src/agentmesh/core/identity/ca.py:352
↓ 2 callers
Method
_calculate_trend
Calculate score trend.
agent-governance-python/agent-mesh/src/agentmesh/reward/engine.py:361
↓ 2 callers
Function
_canonical_json
Serialize JSON deterministically for signing and verification.
agent-governance-python/agentmesh-integrations/langchain-agentmesh/langchain_agentmesh/trust.py:27
↓ 2 callers
Function
_capture_asgi_send
(messages: list[dict[str, Any]])
policy-engine/sdk/python/agent_control_specification/_adapters/_shared.py:204
↓ 2 callers
Method
_card_content_hash
Stable hash of the card's signable content + signature. Used as a cache key suffix so any mutation of the signed fields or the signat
agent-governance-python/agent-mesh/src/agentmesh/trust/cards.py:255
↓ 2 callers
Function
_carries_unrepresented_data
(mapping: Mapping[str, Any], known: frozenset[str])
policy-engine/sdk/python/agent_control_specification/_adapters/_sse.py:246
↓ 2 callers
Function
_categorize_tasks
Split history into successful (positive delta) and failed (negative delta) task lists.
agent-governance-python/agent-mesh/src/agentmesh/cli/trust_cli.py:128
↓ 2 callers
Function
_category_of
Return the ATR category for a single rule dict.
examples/atr-import/import_atr.py:100
↓ 2 callers
Method
_cb
(options)
agent-governance-python/agent-sre/tests/test_tracing.py:253
↓ 2 callers
Function
_cedar_action_list
(actions: tuple[str, ...])
examples/aegis-governance-profile/compile.py:324
↓ 2 callers
Function
_cedar_decide
Simulate Cedar's `default deny; forbid overrides permit` semantics against the specific shape compile.py emits. Supports: * permit / fo
examples/aegis-governance-profile/tests/test_compilation.py:392
↓ 2 callers
Function
_cedar_pattern_disjunction
( patterns: tuple[str, ...], context_field: str, indent: int )
examples/aegis-governance-profile/compile.py:328
↓ 2 callers
Method
_cedar_resource_matches
Check if a Cedar statement's resource constraint matches.
agent-governance-python/agent-rag-governance/src/agent_rag_governance/policy.py:195
↓ 2 callers
Function
_change_control_check
Approved change request must exist.
agent-governance-python/agent-compliance/src/agent_compliance/promotion.py:222
↓ 2 callers
Method
_check_code_injection
( self, content: str, source: str )
agent-governance-python/agent-os/src/agent_os/memory_guard.py:319
↓ 2 callers
Method
_check_content
Host-side fallback content scan (kept for callers that still invoke this method directly). The primary content gate runs through the A
agent-governance-python/agent-os/src/agent_os/integrations/a2a_adapter.py:285
↓ 2 callers
Method
_check_depth
Check nesting depth recursively.
agent-governance-python/agent-os/modules/atr/atr/tools/safe/json_parser.py:73
↓ 2 callers
Method
_check_injection_patterns
( self, content: str, source: str )
agent-governance-python/agent-os/src/agent_os/memory_guard.py:304
↓ 2 callers
Method
_check_input
Block on pattern matches and PII in input.
agent-governance-python/agent-os/src/agent_os/integrations/bedrock_adapter.py:304
↓ 2 callers
Method
_check_js_code_block
Check JavaScript code block for dangerous patterns.
agent-governance-python/agent-compliance/src/agent_compliance/security/scanner.py:751
↓ 2 callers
Method
_check_lists
Check collection against allow/deny lists.
agent-governance-python/agent-rag-governance/src/agent_rag_governance/policy.py:122
↓ 2 callers
Method
_check_locked
Caller must hold ``self._lock``. Pure check; no mutation.
agent-governance-python/agent-sre/src/agent_sre/cost/guard.py:208
↓ 2 callers
Method
_check_permission
Check if the agent has permission for an action.
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/mcp_adapter.py:474
↓ 2 callers
Method
_check_policy
Verify the call is allowed by trust policy.
agent-governance-python/agent-mesh/src/agentmesh/integrations/flowise/__init__.py:144
↓ 2 callers
Method
_check_policy
Check if syscall is allowed by policy. Returns: Tuple of (allowed, error_message). If allowed is True, error_mes
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/kernel_space.py:436
↓ 2 callers
Method
_check_shell_code_block
Check shell code block for dangerous patterns.
agent-governance-python/agent-compliance/src/agent_compliance/security/scanner.py:769
↓ 2 callers
Method
_check_size
Check input size.
agent-governance-python/agent-os/modules/atr/atr/tools/safe/json_parser.py:66
↓ 2 callers
Method
_check_special_characters
( self, content: str, source: str )
agent-governance-python/agent-os/src/agent_os/memory_guard.py:334
↓ 2 callers
Method
_check_timeout
Check whether the kernel has exceeded its configured timeout. Returns: Tuple of (within_limit: bool, reason: str).
agent-governance-python/agent-os/src/agent_os/integrations/google_adk_adapter.py:557
↓ 2 callers
Method
_check_tool_allowed
Check whether a tool is permitted by the active ADK policy. Args: tool_name: Name of the ADK tool to check. Returns:
agent-governance-python/agent-os/src/agent_os/integrations/google_adk_adapter.py:527
↓ 2 callers
Method
_check_tool_allowed
Check whether a tool is permitted by the active policy. Args: tool_name: Name of the tool to check. Returns:
agent-governance-python/agent-os/src/agent_os/integrations/smolagents_adapter.py:516
↓ 2 callers
Method
_check_unicode_manipulation
( self, content: str, source: str )
agent-governance-python/agent-os/src/agent_os/memory_guard.py:356
↓ 2 callers
Method
_cleanup_nonce_cache_locked
(self, now: datetime)
agent-governance-python/agent-os/src/agent_os/mcp_message_signer.py:274
↓ 2 callers
Method
_closeServer
Close a server instance and run cleanup callback.
agent-governance-typescript/agent-os-vscode/src/server/GovernanceServer.ts:275
↓ 2 callers
Function
_close_unstarted_awaitable
(awaitable: Awaitable[Any])
agent-governance-python/agt-policies/src/agt/policies/runtime.py:597
↓ 2 callers
Method
_compile_patterns
Pre-compile regex and glob patterns for performance.
agent-governance-python/agentmesh-integrations/langflow-agentmesh/src/langflow_agentmesh/policy.py:73
↓ 2 callers
Method
_compile_patterns
Pre-compile regex and glob patterns for performance.
agent-governance-python/agentmesh-integrations/pydantic-ai-governance/src/pydantic_ai_governance/policy.py:67
↓ 2 callers
Method
_complete_step
Complete an in-flight step span.
agent-governance-python/agent-hypervisor/src/hypervisor/observability/saga_span_exporter.py:260
↓ 2 callers
Function
_compute_checksum
Compute checksum for audit entry integrity.
agent-governance-python/agent-os/modules/cmvk/src/cmvk/audit.py:362
↓ 2 callers
Function
_compute_delay
Return the sleep duration before the next retry attempt. Without jitter, returns the classic exponential ``backoff_base * 2^(n-1)``. With ji
agent-governance-python/agent-os/src/agent_os/retry.py:18
↓ 2 callers
Method
_compute_handler_hash
Compute a SHA-256 content hash of a callable's source code. Returns an empty string if source is unavailable (e.g. built-in or C-exte
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/tool_registry.py:123
↓ 2 callers
Method
_compute_hash
Compute SHA-256 hash for an entry.
agent-governance-python/agentmesh-integrations/langflow-agentmesh/src/langflow_agentmesh/audit_logger.py:72
↓ 2 callers
Method
_compute_hash
(self, entry_data: dict, previous_hash: str)
agent-governance-python/agentmesh-integrations/openai-agents-trust/src/openai_agents_trust/audit.py:46
↓ 2 callers
Method
_compute_hash
Compute SHA-256 hash for a chain entry.
agent-governance-python/agentmesh-integrations/flowise-agentmesh/src/flowise_agentmesh/audit_node.py:51
↓ 2 callers
Method
_compute_signature
HMAC-SHA256 hex digest of ``content_hash`` using *secret_key*.
agent-governance-python/agent-mesh/src/agentmesh/governance/audit_backends.py:175
↓ 2 callers
Function
_condition_key
(condition: Any)
agent-governance-python/agt-policies/src/agt/manifest_resolution/merge.py:35
↓ 2 callers
Function
_condition_matches
(condition: object, sample: dict)
agent-governance-python/agt-policies/tests/test_manifest_resolution.py:172
↓ 2 callers
Function
_condition_unsatisfiable
(condition: Any)
agent-governance-python/agt-policies/src/agt/manifest_resolution/merge.py:225
↓ 2 callers
Function
_conditions_disjoint
(left: Any, right: Any)
agent-governance-python/agt-policies/src/agt/manifest_resolution/merge.py:244
↓ 2 callers
Method
_constant_module_name
(self, node: ast.expr)
agent-governance-python/agent-sandbox/src/agent_sandbox/code_scanner.py:180
↓ 2 callers
Method
_consume_budget
Atomically reserve one call slot from the agent's rate-limit budget. Returns False if the bucket is at or above ``max_tool_calls`` — callers
agent-governance-python/agent-os/src/agent_os/mcp_gateway.py:507
↓ 2 callers
Function
_contains_approval_key
Recursively detect any approval-flag key in ``value``.
agent-governance-python/agent-os/src/agent_os/stateless.py:84
↓ 2 callers
Function
_content_hash_governance
Tools declare a content_hash; the policy denies the call when the runtime-supplied hash differs from the manifest catalog entry. This defends
agent-governance-python/agt-policies/tests/scenarios/test_egress_content_hash_escalation_scenarios.py:175
↓ 2 callers
Method
_control
(self)
policy-engine/sdk/python/agent_control_specification/_adapters/litellm.py:344
↓ 2 callers
Method
_convert_entry
Convert a Flight Recorder entry to a Lightning span.
agent-governance-python/agent-lightning/src/agent_lightning_gov/emitter.py:109
↓ 2 callers
Function
_decode_json_body
(body: bytes, label: str)
policy-engine/sdk/python/agent_control_specification/_adapters/_shared.py:162
↓ 2 callers
Method
_decode_jwt_claims
Decode the payload section of a JWT without signature verification.
agent-governance-python/agent-mesh/src/agentmesh/identity/entra_agent_id.py:210
↓ 2 callers
Function
_decrypt
Decrypt with ChaCha20-Poly1305.
agent-governance-python/agent-mesh/src/agentmesh/encryption/ratchet.py:373
↓ 2 callers
Function
_default_output_name
(profile: Profile, suffix: str)
examples/aegis-governance-profile/compile.py:506
↓ 2 callers
Method
_default_record
Build a non-persisted default record for an unknown DID.
agent-governance-python/agent-mesh/packages/mcp-trust-server/src/mcp_trust_server/server.py:74
↓ 2 callers
Method
_deliver
Actually deliver a signal to its handler.
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/signals.py:204
↓ 2 callers
Method
_deny
(reason: str)
policy-engine/benchmarks/agentdojo/acs_agentdojo_bench/policy.py:121
↓ 2 callers
Function
_detection_result_to_response
Convert a ``DetectionResult`` dataclass to a Pydantic response.
agent-governance-python/agent-os/src/agent_os/server/app.py:85
↓ 2 callers
Method
_discover_server_did
Discover server DID from /.well-known/agent.json
agent-governance-python/agent-mesh/src/agentmesh/integrations/mcp/__init__.py:442
↓ 2 callers
Method
_dispatch
(self, event: Event)
agent-governance-python/agent-mesh/src/agentmesh/events/bus.py:170
↓ 2 callers
Method
_dockerfile_path
()
agent-governance-python/agent-sandbox/tests/test_docker_sandbox.py:943
↓ 2 callers
Function
_effect_applied
(result: Any, mode: EnforcementMode | str)
policy-engine/sdk/python/agent_control_specification/_adapters/openai.py:305
↓ 2 callers
Function
_egress_governance
Tools tagged with security_labels are treated as the allowlist; a host that knows nothing about a destination URL denies it.
agent-governance-python/agt-policies/tests/scenarios/test_egress_content_hash_escalation_scenarios.py:31
↓ 2 callers
Method
_emit
(self, signal: AgentSignal, agent_id: str)
agent-governance-python/agent-os/src/agent_os/context_budget.py:300
↓ 2 callers
Method
_emit_pep508_finding
( self, findings: list[SupplyChainFinding], dep_str: str, )
agent-governance-python/agent-compliance/src/agent_compliance/supply_chain.py:371
↓ 2 callers
Method
_emit_telemetry
Emit telemetry event to the stream.
agent-governance-python/agent-os/examples/self-evaluating/src/agent.py:394
↓ 2 callers
Method
_ensure_directory
Ensure a directory exists in the file system.
agent-governance-python/agent-os/modules/caas/src/caas/vfs/filesystem.py:79
↓ 2 callers
Method
_ensure_plugins
(self)
agent-governance-python/agent-compliance/src/agent_compliance/cli/agt.py:137
↓ 2 callers
Method
_ensure_session
Create a session if one doesn't exist.
agent-governance-python/agent-os/src/agent_os/integrations/agentshield_adapter.py:563
↓ 2 callers
Function
_error_budget_check
Remaining error budget above threshold.
agent-governance-python/agent-compliance/src/agent_compliance/promotion.py:185
↓ 2 callers
Function
_escalation_governance
Production-targeted deploys escalate to human approval per D5; the engine returns escalate and the host's approval resolver handles it from th
agent-governance-python/agt-policies/tests/scenarios/test_egress_content_hash_escalation_scenarios.py:99
↓ 2 callers
Function
_eval_and
(expr: str, request: dict[str, str])
examples/aegis-governance-profile/tests/test_compilation.py:464
↓ 2 callers
Method
_eval_condition
(self, condition: str, ctx: dict[str, Any])
agent-governance-python/agent-os/src/agent_os/policies/backends.py:479
↓ 2 callers
Function
_eval_or
(expr: str, request: dict[str, str])
examples/aegis-governance-profile/tests/test_compilation.py:459
↓ 2 callers
Method
_eval_rego_condition
Evaluate a single Rego condition line.
agent-governance-python/agent-mesh/src/agentmesh/governance/opa.py:332
← previous
next →
4,701–4,800 of 32,326, ranked by callers