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
↓ 11 callers
Function
_simulate_retriever_call
Simulate on_retriever_start → on_retriever_end (or on_retriever_error).
agent-governance-python/agent-sre/tests/test_llamaindex.py:54
↓ 11 callers
Function
_tree_last
(icon: str, colour: str, label: str, detail: str)
examples/smolagents-governed/smolagents_governance_demo.py:137
↓ 11 callers
Function
_validate_resource_name
Validate *value* is safe to interpolate into a Docker resource name. Raises ``ValueError`` if *value* contains characters that could cause na
agent-governance-python/agent-sandbox/src/agent_sandbox/docker_provider/provider.py:153
↓ 11 callers
Method
add_case
Add a test case to the golden dataset. This is the primary way engineers "write code" in Eval-DD.
agent-governance-python/agent-os/examples/self-evaluating/src/evaluation_engineering.py:184
↓ 11 callers
Method
add_constraint
Add a constraint edge and re-sort by descending priority.
agent-governance-python/agent-os/src/agent_os/constraint_graph.py:113
↓ 11 callers
Method
add_signal
Add a signal and update score.
agent-governance-python/agent-mesh/src/agentmesh/reward/scoring.py:78
↓ 11 callers
Method
analyzeCode
* Analyze code for policy violations
agent-governance-typescript/agent-os-vscode/src/policyEngine.ts:316
↓ 11 callers
Method
as_message_hook
Create a ``GovernanceMessageHook`` for non-invasive integration. The hook governs ``messages.create()`` calls without wrapping or pro
agent-governance-python/agent-os/src/agent_os/integrations/anthropic_adapter.py:219
↓ 11 callers
Method
as_plugin
Return a :class:`GovernancePlugin` backed by this kernel. The plugin implements all 12 ADK ``BasePlugin`` lifecycle hooks and delegat
agent-governance-python/agent-os/src/agent_os/integrations/google_adk_adapter.py:1177
↓ 11 callers
Method
before_tool_execute
Pre-tool hook: validate tool call against governance policy. Routes the call through the AGT 5.0 ACS engine at the ``pre_tool_call``
agent-governance-python/agent-os/src/agent_os/integrations/pydantic_ai_adapter.py:777
↓ 11 callers
Function
calculate_distance
Calculate distance between two vectors using specified metric. This is the primary entry point for distance calculations. Args:
agent-governance-python/agent-os/modules/cmvk/src/cmvk/metrics.py:305
↓ 11 callers
Method
check_access
Check if a session can access a given path. Args: session_id: Session requesting access. path: Path being accessed.
agent-governance-python/agent-hypervisor/src/hypervisor/session/isolation.py:150
↓ 11 callers
Method
check_cargo_toml
Check Cargo.toml for unpinned versions. Uses ``tomllib`` (Python 3.11+) so the following layouts are all covered, including ones the
agent-governance-python/agent-compliance/src/agent_compliance/supply_chain.py:456
↓ 11 callers
Method
check_package_json
Check a package.json for unpinned versions. Catches three failure modes: * registry-bypassing protocol specifiers (``gi
agent-governance-python/agent-compliance/src/agent_compliance/supply_chain.py:252
↓ 11 callers
Function
cmd_validate
Validate policy YAML files against the policy schema. Parses each file, runs JSON Schema and structural validation, and reports errors with f
agent-governance-python/agent-os/src/agent_os/cli/cmd_validate.py:138
↓ 11 callers
Method
configure
* Configure provider-specific settings. * * @param settings - Key-value settings for the provider.
agent-governance-typescript/agent-os-vscode/src/export/StorageProvider.ts:45
↓ 11 callers
Method
consume
Try to consume tokens. Returns True if allowed.
agent-governance-python/agent-mesh/src/agentmesh/services/rate_limiter.py:68
↓ 11 callers
Method
create
Create a new human sponsor. Args: email: Verified email address of the sponsor. name: Human-readable name.
agent-governance-python/agent-mesh/src/agentmesh/identity/sponsor.py:56
↓ 11 callers
Function
createSimulation
( initialNodes: SimNode[], initialEdges: SimEdge[], config?: Partial<SimConfig>, )
agent-governance-typescript/agent-os-vscode/src/webviews/shared/forceSimulation.ts:200
↓ 11 callers
Function
create_governance_middleware
Create a complete governance middleware stack for a MAF agent. Assembles and returns an ordered list of middleware instances ready to pass di
agent-governance-python/agent-os/src/agent_os/integrations/maf_adapter.py:1028
↓ 11 callers
Method
create_run
Start a new run. Args: name: Run name run_type: Run type (chain, llm, tool, retriever) inputs: Optional i
agent-governance-python/agent-sre/src/agent_sre/integrations/langsmith/exporter.py:100
↓ 11 callers
Function
create_sample_agents
Create sample agents for demonstration. Returns: List of sample agent listings
agent-governance-python/agent-os/examples/self-evaluating/src/agent_brokerage.py:545
↓ 11 callers
Method
create_tool_guard
Create a decorator that applies governance checks to tool functions. .. deprecated:: Tool governance is now handled automatically
agent-governance-python/agent-os/src/agent_os/integrations/openai_agents_sdk.py:434
↓ 11 callers
Function
describe_result
(label: str, result: InterventionPointResult)
policy-engine/examples/support_agent/app/run_demo.py:179
↓ 11 callers
Method
detect
Detect the document type based on content analysis. Args: document: The document to analyze
agent-governance-python/agent-os/modules/caas/src/caas/detection/detector.py:81
↓ 11 callers
Method
detect_policy_violations
Detect potential policy violations in proposed wisdom update. This is the core of the "Policy Review" from the problem state
agent-governance-python/agent-os/examples/self-evaluating/src/wisdom_curator.py:338
↓ 11 callers
Method
disconnect
()
agent-governance-typescript/src/encryption/mesh-client.ts:497
↓ 11 callers
Method
distribute
(self, pool: RewardPool)
agent-governance-python/agent-mesh/tests/test_reward_distribution.py:179
↓ 11 callers
Method
evaluate
Evaluate a Cedar authorization request. Args: action: Cedar action string (e.g., ``Action::"ReadData"``) con
agent-governance-python/agent-mesh/src/agentmesh/governance/cedar.py:148
↓ 11 callers
Function
exec
(cmd, options = {})
agent-governance-python/agent-os/extensions/copilot/deploy.js:30
↓ 11 callers
Function
execute
(value)
policy-engine/sdk/python/tests/test_escalation.py:360
↓ 11 callers
Method
execute
Execute action with kernel governance.
agent-governance-python/agent-os/modules/mcp-kernel-server/src/mcp_kernel_server/tools.py:542
↓ 11 callers
Method
execute_code_async
( self, agent_id: str, session_id: str, code: str, *, context:
agent-governance-python/agent-sandbox/src/agent_sandbox/sandbox_provider.py:214
↓ 11 callers
Method
export
Assemble all ingested artifacts into an ``AnnexIVDocument``. Returns: A fully populated ``AnnexIVDocument`` with auto-generated
agent-governance-python/agent-mesh/src/agentmesh/governance/annex_iv.py:155
↓ 11 callers
Method
format
(self, record: logging.LogRecord)
agent-governance-python/agent-os/src/agent_os/integrations/logging.py:41
↓ 11 callers
Method
from_dict
Deserialize a card from a dictionary. Performs safe access on all keys so missing values fall back to sensible defaults. Arg
agent-governance-python/agent-mesh/src/agentmesh/trust/cards.py:185
↓ 11 callers
Method
get
Get an agent by fingerprint.
agent-governance-python/agent-discovery/src/agent_discovery/inventory.py:77
↓ 11 callers
Method
getAgent
* Get agent by ID.
agent-governance-python/agent-os/extensions/mcp-server/src/services/agent-manager.ts:151
↓ 11 callers
Function
getOutputHandlingMode
(policy, toolName)
agent-governance-copilot-cli/assets/extensions/agt-global-policy/lib/policy.mjs:1084
↓ 11 callers
Method
get_audit_log
(self, limit: int = 50)
agent-governance-python/agentmesh-integrations/openshell-skill/openshell_agentmesh/skill.py:145
↓ 11 callers
Method
get_audit_log
Return all recorded audit events as a list of dicts. Each entry contains ``type``, ``timestamp`` (ISO-8601), and ``data`` keys. The
agent-governance-python/agent-os/src/agent_os/integrations/openai_agents_sdk.py:546
↓ 11 callers
Method
get_audit_log
Return the full audit trail.
agent-governance-python/agent-os/src/agent_os/integrations/google_adk_adapter.py:1060
↓ 11 callers
Method
get_effective_mcp_policy
Get effective MCP server policy for an organization. Org policies inherit from the base (enterprise) MCP policy. Org can add to allow
agent-governance-python/agent-marketplace/src/agent_marketplace/marketplace_policy.py:128
↓ 11 callers
Method
get_entries
Query audit entries with optional filters.
agent-governance-python/agentmesh-integrations/openai-agents-trust/src/openai_agents_trust/audit.py:99
↓ 11 callers
Method
get_entries_for_agent
Get the most recent entries for a specific agent.
agent-governance-python/agent-mesh/src/agentmesh/governance/audit.py:551
↓ 11 callers
Method
get_finished_spans
(self)
agent-governance-python/agent-mesh/tests/test_otel_tracing.py:44
↓ 11 callers
Method
get_handle
Retrieve the handle for a specific agent.
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/process_isolation.py:610
↓ 11 callers
Method
get_metrics
Get current circuit breaker metrics
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/lifecycle.py:911
↓ 11 callers
Method
get_score
Get or create trust score for an agent.
agent-governance-python/agentmesh-integrations/langflow-agentmesh/src/langflow_agentmesh/trust_router.py:125
↓ 11 callers
Method
get_score
(self, agent_id: str)
agent-governance-python/agentmesh-integrations/pydantic-ai-governance/src/pydantic_ai_governance/trust.py:66
↓ 11 callers
Method
get_transcript
Retrieve conversation transcript entries. Thread-safe.
agent-governance-python/agent-os/src/agent_os/integrations/conversation_guardian.py:891
↓ 11 callers
Method
get_trust_score
(self, agent_did: str)
agent-governance-python/agentmesh-integrations/openshell-skill/openshell_agentmesh/skill.py:127
↓ 11 callers
Method
get_trust_score
Return current trust score (0–1000) for an agent.
agent-governance-python/agent-mesh/src/agentmesh/integrations/crewai/agent.py:28
↓ 11 callers
Function
guard_mcp_server
Guard a duck-typed MCP tool provider/server ``call_tool`` method.
policy-engine/sdk/python/agent_control_specification/_adapters/mcp.py:87
↓ 11 callers
Method
hasCapability
Check if this agent has a specific capability. Supports wildcard matching.
agent-governance-typescript/src/identity.ts:174
↓ 11 callers
Method
initiate
(peerBundle: PreKeyBundle)
agent-governance-typescript/src/encryption/x3dh.ts:170
↓ 11 callers
Function
inspect_remote_server
Inspect a Streamable HTTP or legacy SSE MCP server.
agent-governance-python/agent-os/src/agent_os/cli/mcp_scan.py:1436
↓ 11 callers
Function
installPackage
({ forcePolicy = false, antigravityHome = resolveAntigravityHome(), packageRoot = getPackageRoot(), re
agent-governance-antigravity-cli/lib/cli.mjs:178
↓ 11 callers
Function
isObject
(value: unknown)
policy-engine/sdk/node/src/streaming.ts:419
↓ 11 callers
Method
is_active
Check if escrow is in an active state.
agent-governance-python/agent-os/modules/nexus/schemas/escrow.py:128
↓ 11 callers
Method
is_breaker_tripped
Return ``True`` if the circuit-breaker is tripped for this agent.
agent-governance-python/agent-hypervisor/src/hypervisor/rings/breach_detector.py:196
↓ 11 callers
Method
is_killed
Return whether the wrapper has received SIGKILL.
agent-governance-python/agent-os/src/agent_os/integrations/semantic_kernel_adapter.py:295
↓ 11 callers
Method
kill
Send real OS SIGKILL -- truly non-catchable. On Unix: ``os.kill(pid, signal.SIGKILL)`` On Windows: ``TerminateProcess`` via ``proc
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/process_isolation.py:252
↓ 11 callers
Method
list_tools
List all registered tools.
agent-governance-python/agent-mesh/src/agentmesh/trust/bridge.py:460
↓ 11 callers
Function
load_slo_template
Load an SLO template by name. Args: name: Template name (e.g. "coding-agent") specs_dir: Optional custom specs directory pat
agent-governance-python/agent-sre/src/agent_sre/specs/__init__.py:157
↓ 11 callers
Method
log_entry
Add entry to audit log.
agent-governance-python/agent-os/modules/mcp-kernel-server/src/mcp_kernel_server/tools.py:1272
↓ 11 callers
Function
make_request
Make an HTTP request and handle errors gracefully.
agent-governance-python/agent-os/modules/iatp/examples/demo_client.py:36
↓ 11 callers
Method
matches
Return *True* if this rule matches the given endpoint.
agent-governance-python/agent-os/src/agent_os/egress_policy.py:32
↓ 11 callers
Function
my_tool
A test tool.
agent-governance-python/agent-os/modules/atr/tests/test_decorator.py:65
↓ 11 callers
Method
publish
Publish an event to all current subscribers. Fault-isolated per listener.
agent-governance-typescript/agent-os-vscode/src/webviews/sidebar/governanceEventBus.ts:25
↓ 11 callers
Method
query
Return all measurements for *name* with timestamp >= *since*.
agent-governance-python/agent-sre/src/agent_sre/slo/persistence.py:49
↓ 11 callers
Method
record
Record a new audit entry with hash chain hash.
agent-governance-python/agentmesh-integrations/openai-agents-trust/src/openai_agents_trust/audit.py:50
↓ 11 callers
Function
recordDuration
(timing: PanelTiming, durationMs: number)
agent-governance-typescript/agent-os-vscode/src/webviews/sidebar/panelLatencyTracker.ts:26
↓ 11 callers
Method
record_cost
Record a task cost.
agent-governance-python/agent-sre/src/agent_sre/slo/indicators.py:231
↓ 11 callers
Method
record_request
Record a request.
agent-governance-python/agent-os/modules/observability/src/agent_os_observability/metrics.py:252
↓ 11 callers
Method
register_substitute
Register a substitute agent for a session.
agent-governance-python/agent-hypervisor/src/hypervisor/security/kill_switch.py:112
↓ 11 callers
Function
rel
(path: Path)
policy-engine/scripts/lint_logging.py:62
↓ 11 callers
Method
restore_snapshot
Restore VFS to a previous snapshot.
agent-governance-python/agent-hypervisor/src/hypervisor/session/sso.py:134
↓ 11 callers
Method
result
(self)
agent-governance-python/agent-sre/src/agent_sre/delivery/rollout.py:348
↓ 11 callers
Method
revoke
Revoke this identity permanently.
agent-governance-typescript/src/identity.ts:155
↓ 11 callers
Method
scale_to
Scale an agent type to a specific number of replicas
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/lifecycle.py:1082
↓ 11 callers
Method
scan_source_files
Scan Python source files in *plugin_dir* for restricted imports. Parses every ``*.py`` file under *plugin_dir* with :mod:`ast` and re
agent-governance-python/agent-marketplace/src/agent_marketplace/installer.py:454
↓ 11 callers
Method
set_drift
(self, key: str, drift: float)
agent-governance-python/agent-hypervisor/tests/integration/test_scenarios.py:123
↓ 11 callers
Method
set_permissions
Set path-level permissions.
agent-governance-python/agent-hypervisor/src/hypervisor/session/sso.py:94
↓ 11 callers
Method
signable_bytes
Return the canonical bytes used for signing (excludes signature field). Uses JSON with ``sort_keys=True``, ASCII-safe escaping, no wh
agent-governance-python/agent-marketplace/src/agent_marketplace/manifest.py:130
↓ 11 callers
Method
start
(self)
agent-governance-python/agent-os/src/agent_os/cli/mcp_scan.py:656
↓ 11 callers
Method
start_all
Start all registered agents in dependency order. Returns: Summary of startup results
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/lifecycle.py:2863
↓ 11 callers
Method
start_span
Start a new span within a trace. Args: trace_id: Trace ID operation_name: Operation name
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/observability.py:497
↓ 11 callers
Method
stop
Stop the scaling manager
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/lifecycle.py:1066
↓ 11 callers
Method
stop_all
Stop all agents gracefully. Returns: Summary of shutdown results
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/lifecycle.py:2986
↓ 11 callers
Method
toKebabCase
(str: string)
agent-governance-python/agent-os/extensions/copilot/src/githubIntegration.ts:529
↓ 11 callers
Method
toPascalCase
(str: string)
agent-governance-python/agent-os/extensions/copilot/src/agentGenerator.ts:794
↓ 11 callers
Method
to_json
JSON attestation for machine consumption.
agent-governance-python/agent-compliance/src/agent_compliance/verify.py:288
↓ 11 callers
Method
to_jwk
Export this identity as a JWK (JSON Web Key). Args: include_private: If True, include the private key. Defaults to False.
agent-governance-python/agent-mesh/src/agentmesh/identity/agent_id.py:361
↓ 11 callers
Method
to_v4_check_result
Return a v4 ``PolicyCheckResult`` populated from this result. Only importable when ``agent_os`` is installed. Hosts that have not yet
agent-governance-python/agt-policies/src/agt/policies/result.py:114
↓ 11 callers
Method
tokens_available
Current token count after refill.
agent-governance-python/agent-mesh/src/agentmesh/services/rate_limiter.py:77
↓ 11 callers
Function
truncate
(s: unknown, max: number = MAX_STRING_LENGTH)
agent-governance-typescript/agent-os-vscode/src/services/translators.ts:36
↓ 11 callers
Function
trust_level_for_score
Return the canonical trust-level label for a numeric score (0-1000). The mapping mirrors the tiers defined in ``agentmesh.constants`` and is
agent-governance-python/agent-mesh/src/agentmesh/trust/levels.py:17
↓ 11 callers
Method
unregister_tool
Remove a tool from the registry. Args: name: The tool name version: Specific version to remove, or None to remove all
agent-governance-python/agent-os/modules/atr/atr/registry.py:412
↓ 11 callers
Function
unsupportedAdapterMethod
( label: string, method: string, interventionPoint: InterventionPoint = InterventionPoint.Output, )
policy-engine/sdk/node/src/adapters.ts:41
← previous
next →
1,101–1,200 of 32,326, ranked by callers