MCPcopy Create free account

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

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

↓ 1 callersFunction_set_relative_json_path
(root: JsonValue, path: str, value: JsonValue)
policy-engine/sdk/python/agent_control_specification/_orchestration.py:506
↓ 1 callersFunction_set_relative_json_path
(root: JsonValue, path: str, value: JsonValue)
policy-engine/sdk/python/agent_control_specification/_adapters/openai.py:368
↓ 1 callersFunction_set_tool_call_args
(call: Any, args: JsonValue)
policy-engine/sdk/python/agent_control_specification/_adapters/litellm.py:690
↓ 1 callersMethod_setup_callbacks
Set up internal callbacks between components
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/lifecycle.py:2771
↓ 1 callersMethod_setup_default_mappings
Set up default action-to-control mappings.
agent-governance-python/agent-mesh/src/agentmesh/governance/compliance.py:316
↓ 1 callersMethod_setup_default_policies
Setup default security policies for IATP.
agent-governance-python/agent-os/modules/iatp/iatp/policy_engine.py:97
↓ 1 callersFunction_setup_governance
Set up all governance layers for the demo.
examples/smolagents-governed/smolagents_governance_demo.py:282
↓ 1 callersMethod_setup_hooks
Set up hooks to capture violations. Sets ``self._hooks_wired = True`` only when the kernel actually accepted the callback registratio
agent-governance-python/agent-lightning/src/agent_lightning_gov/environment.py:127
↓ 1 callersMethod_setup_kernel_hooks
Set up kernel hooks to capture violations and signals.
agent-governance-python/agent-lightning/src/agent_lightning_gov/runner.py:179
↓ 1 callersMethod_setup_otel
Configure OTel SDK to export to OpenLit's OTLP endpoint.
agent-governance-python/agent-sre/src/agent_sre/integrations/openlit.py:59
↓ 1 callersMethod_setup_routes
Setup FastAPI routes.
agent-governance-python/agent-os/modules/iatp/iatp/sidecar/__init__.py:92
↓ 1 callersFunction_severity_of
(atr_rule: dict[str, Any])
examples/atr-import/import_atr.py:106
↓ 1 callersMethod_shadow_sys_modules
Replace blocked entries in ``sys.modules`` with trap proxies. Closes the ``sys.modules['os'].system(...)`` escape that the import hoo
agent-governance-python/agent-os/src/agent_os/sandbox.py:760
↓ 1 callersMethod_share_lineage
Return True if the two namespaces share a parent–child lineage.
agent-governance-python/agent-mesh/src/agentmesh/identity/namespace_manager.py:143
↓ 1 callersFunction_shell_action_and_context
( command: Any, *, api: str, shell: bool, context: Optional[dict], )
agent-governance-python/agentmesh-integrations/openshell-skill/openshell_agentmesh/skill.py:258
↓ 1 callersMethod_sign_escrow
Return Ed25519 signature over the escrow message.
agent-governance-python/agent-os/modules/nexus/client.py:481
↓ 1 callersMethod_sign_escrow
Generate Nexus signature for escrow.
agent-governance-python/agent-os/modules/nexus/escrow.py:313
↓ 1 callersMethod_sign_manifest
Return Ed25519 signature over the manifest hash for registration/update.
agent-governance-python/agent-os/modules/nexus/client.py:461
↓ 1 callersMethod_sign_resolution
Generate Arbiter signature for resolution.
agent-governance-python/agent-os/modules/nexus/arbiter.py:356
↓ 1 callersMethod_sign_with_cosign
Attempt to sign the attestation with cosign. Returns the Sigstore bundle dict, or None if cosign is unavailable.
agent-governance-python/agent-mesh/src/agentmesh/marketplace/sigstore_provenance.py:237
↓ 1 callersMethod_signature_header
()
agent-governance-python/agent-mesh/src/agentmesh/integrations/django_middleware/middleware.py:66
↓ 1 callersFunction_similarity
Return SequenceMatcher ratio between two strings.
agent-governance-python/agent-compliance/src/agent_compliance/supply_chain.py:178
↓ 1 callersMethod_simulate
()
agent-governance-typescript/agent-os-vscode/src/webviews/workflowDesigner/WorkflowDesignerPanel.ts:776
↓ 1 callersMethod_simulate_execution
Generate a simulated execution result
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/shadow_mode.py:149
↓ 1 callersMethod_simulate_step
Simulate a single attack step against the experiment's defences.
agent-governance-python/agent-sre/src/agent_sre/chaos/adversarial.py:104
↓ 1 callersFunction_single_handshake
Run one handshake and return elapsed time in seconds.
agent-governance-python/agent-mesh/tests/test_load.py:37
↓ 1 callersMethod_skipOnboarding
()
agent-governance-typescript/agent-os-vscode/src/webviews/onboarding/OnboardingPanel.ts:206
↓ 1 callersMethod_slash_reputation
Slash agent reputation.
agent-governance-python/agent-os/modules/mcp-kernel-server/src/mcp_kernel_server/tools.py:1034
↓ 1 callersMethod_sleep
(ms: number)
agent-governance-typescript/agent-os-vscode/src/services/sreServer.ts:226
↓ 1 callersFunction_slugify_heading
Approximate GitHub/MkDocs heading-to-anchor slugification. Lower-cases, strips Markdown formatting, replaces spaces with hyphens, drops chara
scripts/docs/check_links.py:92
↓ 1 callersFunction_snapshot_for_point
(point: str, manifest: dict[str, Any])
policy-engine/generator/acs_generator/init_flow.py:385
↓ 1 callersFunction_snapshot_to_acs
Translate an AGT snapshot dict to the ACS evaluate_intervention_point input. ACS expects the snapshot at the top level. AGT snapshots already
agent-governance-python/agt-policies/src/agt/policies/runtime.py:185
↓ 1 callersMethod_spawn_multiprocessing
( self, agent_id: str, target: Callable, args: tuple, kwargs: Optional
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/process_isolation.py:653
↓ 1 callersMethod_spawn_subprocess
( self, agent_id: str, target: Callable, args: tuple, kwargs: Optional
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/process_isolation.py:677
↓ 1 callersFunction_splice_nested_policy_target
( result: InterventionPointResult, fallback: JsonValue, transformed: JsonValue, )
policy-engine/sdk/python/agent_control_specification/_orchestration.py:461
↓ 1 callersMethod_split_sections
Split content into sections.
agent-governance-python/agent-os/examples/legal-review/main.py:406
↓ 1 callersFunction_sse_message_from_stream
Read a Streamable HTTP SSE response until the matching JSON-RPC id.
agent-governance-python/agent-os/src/agent_os/cli/mcp_scan.py:1110
↓ 1 callersMethod_startIsolatedTimer
(key: DataSourceKey)
agent-governance-typescript/agent-os-vscode/src/webviews/sidebar/GovernanceStore.ts:219
↓ 1 callersMethod_start_agent
Start a single agent
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/lifecycle.py:2927
↓ 1 callersMethod_start_election
Start a leader election
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/lifecycle.py:1378
↓ 1 callersMethod_static_analysis
Perform basic static analysis.
agent-governance-python/agent-os/modules/mcp-kernel-server/src/mcp_kernel_server/tools.py:1160
↓ 1 callersFunction_step_shell
(lines: list[str], step_start: int, step_end: int, run_start: int, run_end: int)
scripts/extract_workflow_shell.py:58
↓ 1 callersFunction_stock_redact_governance
Policy expressed as a custom Rego rule that delegates to the agt.redact stock library to compute a transform verdict. This is the realistic us
agent-governance-python/agt-policies/tests/scenarios/test_pii_redaction_transform_scenarios.py:90
↓ 1 callersFunction_stream_replacement_chunk
(response: Any, template: Any)
policy-engine/sdk/python/agent_control_specification/_adapters/litellm.py:755
↓ 1 callersFunction_streamable_http_request
( url: str, *, payload: dict[str, Any], headers: Mapping[str, str], timeout: float, ex
agent-governance-python/agent-os/src/agent_os/cli/mcp_scan.py:1152
↓ 1 callersFunction_streaming_tool_call
(index: int, call: Any)
policy-engine/sdk/python/agent_control_specification/_adapters/_sse.py:208
↓ 1 callersMethod_string_drift
Calculate drift between strings using character-level comparison.
agent-governance-python/agent-os/modules/cmvk/src/cmvk/benchmarks.py:335
↓ 1 callersFunction_strip_approval_keys
Recursively strip approval keys from ``value`` (dict / list). Returns a deep copy of ``value`` with every NFKC-case-folded ``approved`` key r
agent-governance-python/agent-os/modules/mcp-kernel-server/src/mcp_kernel_server/tools.py:50
↓ 1 callersFunction_strip_approval_keys
Return a deep copy with every approval-flag key removed at every depth (defense against case / NFKC-confusable / nested bypasses).
agent-governance-python/agent-os/src/agent_os/stateless.py:97
↓ 1 callersFunction_strip_fenced_code_blocks
Remove fenced code blocks so their content can't be mistaken for headings. A code fence may contain text that looks like a ``##`` heading or a
agent-governance-python/agent-compliance/src/agent_compliance/governance/attestation_validator.py:46
↓ 1 callersFunction_structural_drift
Calculate structural drift between two texts. Analyzes structure like line count, indentation, code patterns. Pure function - no side ef
agent-governance-python/agent-os/modules/cmvk/src/cmvk/verification.py:747
↓ 1 callersFunction_subject_ref
Resolve a subject reference using the narrowest stable fallback chain. Prefer the direct audit resource first, then `target_did`, then an explici
agent-governance-python/agentmesh-integrations/audit-accountability-export/audit_accountability_export/export.py:134
↓ 1 callersMethod_submit_rollout
Submit rollout to store.
agent-governance-python/agent-lightning/src/agent_lightning_gov/runner.py:353
↓ 1 callersFunction_substitute
Return a copy of ``payload`` with placeholders replaced by values. Only placeholder names present in ``resolved`` are substituted; any other
agent-governance-python/agent-os/src/agent_os/credential_vault.py:753
↓ 1 callersMethod_suggest_actions
(self, incident: Incident)
agent-governance-python/agent-sre/src/agent_sre/incidents/postmortem.py:272
↓ 1 callersMethod_suggest_lessons
(self, incident: Incident)
agent-governance-python/agent-sre/src/agent_sre/incidents/postmortem.py:309
↓ 1 callersMethod_surface_observation
Surface an observation to the user. This is called when confidence exceeds threshold. In a real system, this might s
agent-governance-python/agent-os/examples/self-evaluating/src/ghost_mode.py:618
↓ 1 callersMethod_sync_loop
Main sync loop.
agent-governance-python/agent-os/services/cloud-board/workers/reputation_sync.py:57
↓ 1 callersMethod_sync_reputation_scores
Recalculate and sync reputation scores.
agent-governance-python/agent-os/services/cloud-board/workers/reputation_sync.py:78
↓ 1 callersMethod_sync_rollout
Sync an existing rollout — check if advance or rollback needed.
agent-governance-python/agent-sre/src/agent_sre/k8s/__init__.py:468
↓ 1 callersFunction_synthetic_input
(point_name: str, config: dict[str, Any])
policy-engine/generator/acs_generator/validation.py:135
↓ 1 callersMethod_syscall_to_tool_name
Map syscall type to a tool name for policy engine.
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/kernel_space.py:492
↓ 1 callersMethod_testPolicy
(content: string)
agent-governance-typescript/agent-os-vscode/src/webviews/policyEditor/PolicyEditorPanel.ts:477
↓ 1 callersFunction_test_name_from_unique_id
Extract a readable dbt test name from a dbt unique_id.
examples/data-quality-aware-governance/adapters/dbt/dbt_adapter.py:90
↓ 1 callersMethod_test_scenario_with_baseline
Test a failure scenario against the new model with baseline instructions only. Args: query: The original query t
agent-governance-python/agent-os/examples/self-evaluating/src/model_upgrade.py:132
↓ 1 callersFunction_threat_to_dict
(threat: MCPThreat)
agent-governance-python/agent-os/src/agent_os/cli/mcp_scan.py:1757
↓ 1 callersFunction_tier_for_score
(score: int)
agent-governance-python/agent-mesh/examples/trust-dashboard/dashboard.py:49
↓ 1 callersMethod_time_from_audit
Extract timestamp from audit entries.
agent-governance-python/agent-mesh/src/agentmesh/governance/decision_bom.py:592
↓ 1 callersMethod_timeout_loop
Check for timed-out disputes.
agent-governance-python/agent-os/services/cloud-board/workers/dispute_resolver.py:93
↓ 1 callersFunction_timestamp
(value: Any)
agent-governance-python/agentmesh-integrations/audit-accountability-export/audit_accountability_export/export.py:144
↓ 1 callersMethod_toCamelCase
(str: string, fallback = 'step')
agent-governance-typescript/agent-os-vscode/src/webviews/workflowDesigner/WorkflowDesignerPanel.ts:645
↓ 1 callersFunction_to_bash_path
(path: Path)
tests/ci/test_no_stubs.py:117
↓ 1 callersMethod_to_body
Normalise an Anthropic payload to a JSON-serialisable body.
agent-governance-python/agent-os/src/agent_os/integrations/anthropic_adapter.py:211
↓ 1 callersMethod_to_body
Normalise an AutoGen payload to a JSON-serialisable body. v4 callers passed dicts like ``{"recipient": ..., "message": ...}`` to :met
agent-governance-python/agent-os/src/agent_os/integrations/autogen_adapter.py:588
↓ 1 callersFunction_to_yaml
Minimal YAML serializer (no external dependency).
agent-governance-python/agent-hypervisor/src/hypervisor/cli/formatters.py:59
↓ 1 callersFunction_tool_call_args
(call: Any)
policy-engine/sdk/python/agent_control_specification/_adapters/litellm.py:679
↓ 1 callersFunction_tool_call_id
(call: Any)
policy-engine/sdk/python/agent_control_specification/_adapters/litellm.py:668
↓ 1 callersFunction_tool_call_name
(call: Any)
policy-engine/sdk/python/agent_control_specification/_adapters/litellm.py:673
↓ 1 callersFunction_tool_entries
(value: Any)
policy-engine/generator/acs_generator/init_flow.py:309
↓ 1 callersFunction_tool_inventory
(args: argparse.Namespace)
policy-engine/generator/acs_generator/cli.py:70
↓ 1 callersFunction_tool_message_call_id
(message: Any)
policy-engine/sdk/python/agent_control_specification/_adapters/litellm.py:628
↓ 1 callersFunction_tool_name
(tool: Any)
policy-engine/generator/acs_generator/plan.py:67
↓ 1 callersFunction_tool_to_cedar_action
(tool_name: str)
agent-governance-python/agentmesh-integrations/cedarling-agentmesh/cedarling_agentmesh/backend.py:43
↓ 1 callersFunction_toolchain_steps
(toolchain: str, actions: dict[str, str])
scripts/ci/generate_workflows.py:112
↓ 1 callersMethod_trackLatency
(ms: number)
agent-governance-typescript/agent-os-vscode/src/services/liveClient.ts:176
↓ 1 callersMethod_trackLatency
(key: DataSourceKey, elapsed: number)
agent-governance-typescript/agent-os-vscode/src/webviews/sidebar/GovernanceStore.ts:198
↓ 1 callersFunction_trailing_tool_messages
(messages: list[Any])
policy-engine/sdk/python/agent_control_specification/_adapters/litellm.py:633
↓ 1 callersMethod_transform_input
Transform input for a worker (Transformer Middleware). This is the "secret sauce" that manages data flow.
agent-governance-python/agent-os/examples/self-evaluating/src/orchestrator.py:195
↓ 1 callersMethod_transform_output
Transform output from a worker (Transformer Middleware).
agent-governance-python/agent-os/examples/self-evaluating/src/orchestrator.py:206
↓ 1 callersFunction_tree_signature
Return a deterministic mtime signature for the ATR source tree.
examples/atr-import/import_atr.py:247
↓ 1 callersMethod_trigger_callbacks
Trigger callbacks for an event
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/lifecycle.py:1465
↓ 1 callersMethod_trigger_revocation
Trigger automatic credential revocation.
agent-governance-python/agent-mesh/src/agentmesh/reward/engine.py:306
↓ 1 callersMethod_trigger_state_change
Trigger callbacks for state change
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/lifecycle.py:876
↓ 1 callersFunction_trust_level
Map numeric score to trust level label.
agent-governance-python/agent-mesh/packages/mcp-trust-server/src/mcp_trust_server/server.py:50
↓ 1 callersMethod_trusted_proxies
Return list of trusted proxy IPs/CIDRs. When set, DID headers are only trusted from these source IPs. Empty list (default) means trus
agent-governance-python/agent-mesh/src/agentmesh/integrations/django_middleware/middleware.py:74
↓ 1 callersFunction_trusted_user_override
Return True only when the caller-supplied ``X-User-Override`` header can be trusted to satisfy a "requires user confirmation" warning. Histor
agent-governance-python/agent-os/modules/iatp/iatp/main.py:93
↓ 1 callersFunction_trusted_user_override
Return True only when ``X-User-Override`` matches the secret server-side ``IATP_TRUSTED_USER_OVERRIDE_TOKEN``. Mirrors the hardening applied
agent-governance-python/agent-os/modules/iatp/iatp/sidecar/__init__.py:37
↓ 1 callersFunction_try_import_fernet
()
agent-governance-python/agent-os/src/agent_os/credential_vault.py:220
↓ 1 callersFunction_ts
()
agent-governance-python/agent-os/examples/crewai-governance/demo.py:88
↓ 1 callersMethod_unanimous_consensus
Require all models to agree.
agent-governance-python/agent-os/modules/cmvk/src/cmvk/benchmarks.py:235
← previousnext →7,401–7,500 of 32,326, ranked by callers