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
↓ 7 callers
Method
description
(self)
agent-governance-python/agent-discovery/tests/test_scanners.py:15
↓ 7 callers
Method
destroy_session_async
(self, agent_id: str, session_id: str)
agent-governance-python/agent-sandbox/src/agent_sandbox/sandbox_provider.py:226
↓ 7 callers
Method
detect_batch
Scan multiple inputs for prompt injection. Args: inputs: Sequence of ``(text, source)`` tuples. canary_tokens: Option
agent-governance-python/agent-os/src/agent_os/prompt_injection.py:497
↓ 7 callers
Method
detect_modality
Detect the appropriate output modality. Args: input_context: Context in which input was received dat
agent-governance-python/agent-os/examples/self-evaluating/src/polymorphic_output.py:103
↓ 7 callers
Method
distribute
Distribute rewards from *pool* using the named strategy. Args: pool: The reward pool to distribute. strategy_name: St
agent-governance-python/agent-mesh/src/agentmesh/reward/distributor.py:49
↓ 7 callers
Method
drain
Mark an agent as draining (no new work).
agent-governance-python/agent-sre/src/agent_sre/fleet/__init__.py:298
↓ 7 callers
Function
encryptedFrame
(from: string, id: string)
agent-governance-typescript/tests/mesh-client-pre-knock-buffer.test.ts:62
↓ 7 callers
Method
evaluate
Evaluate an action against governance policy.
agent-governance-python/agentmesh-integrations/flowise-agentmesh/src/flowise_agentmesh/governance_node.py:52
↓ 7 callers
Method
evaluate
Evaluate a system prompt for missing defenses. Args: prompt: The system prompt text to audit. Returns: A com
agent-governance-python/agent-compliance/src/agent_compliance/prompt_defense.py:467
↓ 7 callers
Method
execute
Execute a callable function directly on the host. Args: func: The callable function to execute. args: Diction
agent-governance-python/agent-os/modules/atr/atr/executor.py:66
↓ 7 callers
Method
execute_code_sandboxed
Validate, then ``exec`` source code under all sandbox protections. Fail-closed flow: 1. Parse and AST-validate ``code``. Any violati
agent-governance-python/agent-os/src/agent_os/sandbox.py:834
↓ 7 callers
Method
execute_command
Execute a device command with full safety checks.
agent-governance-python/agent-os/examples/iot-smart-home/main.py:254
↓ 7 callers
Method
export_trace
Export an entire Agent SRE trace as OTEL spans. Preserves span hierarchy by building parent-child links. Args: sre_trace
agent-governance-python/agent-sre/src/agent_sre/integrations/otel/traces.py:89
↓ 7 callers
Method
extract
* Run all registered extractors against `context`. Mutates the top-level * `context` map (replacing the slot for each registered key with a fresh
agent-governance-typescript/src/protocol-facets.ts:50
↓ 7 callers
Method
failure
Create a failed handshake result.
agent-governance-python/agent-mesh/src/agentmesh/trust/handshake.py:148
↓ 7 callers
Function
fetchTopologyDetail
(p: DataProviders)
agent-governance-typescript/agent-os-vscode/src/webviews/sidebar/detailFetchers.ts:76
↓ 7 callers
Function
findSlotForPanel
(draft: SlotConfig, panelId: PanelId)
agent-governance-typescript/agent-os-vscode/src/webviews/sidebar/pickerUtils.ts:17
↓ 7 callers
Method
firing_alerts
Get alerts that are currently firing.
agent-governance-python/agent-sre/src/agent_sre/slo/objectives.py:139
↓ 7 callers
Method
flush
(self)
agent-governance-python/agent-os/tests/test_event_sink.py:226
↓ 7 callers
Method
from_dict
Create event from dictionary.
agent-governance-python/agent-os/examples/self-evaluating/src/telemetry.py:42
↓ 7 callers
Method
from_file
Load agent configuration from a YAML or JSON file. Args: path: Path to a .yaml, .yml, or .json config file Returns:
agent-governance-python/agent-os/src/agent_os/base_agent.py:124
↓ 7 callers
Method
from_identity
Create an A2A Agent Card from AgentMesh identity fields. ``capabilities`` are mapped to A2A skills (one skill per capability).
agent-governance-python/agentmesh-integrations/a2a-protocol/a2a_agentmesh/agent_card.py:86
↓ 7 callers
Function
from_jwk
Create an AgentIdentity from a JWK. Args: jwk: A dict representing a JWK with Ed25519 key material. Returns: A new AgentIden
agent-governance-python/agent-mesh/src/agentmesh/identity/jwk.py:74
↓ 7 callers
Method
from_yaml
Load an SLO spec from a YAML file.
agent-governance-python/agent-sre/src/agent_sre/slo/spec.py:72
↓ 7 callers
Method
generate
Generate a new trace ID.
agent-governance-python/agent-os/modules/iatp/iatp/telemetry/__init__.py:152
↓ 7 callers
Method
generate_component
Generate a UI component spec from a polymorphic response. Args: response: The polymorphic response from the agen
agent-governance-python/agent-os/examples/self-evaluating/src/generative_ui_engine.py:120
↓ 7 callers
Function
generate_crd_manifest
Generate the AgentRollout CustomResourceDefinition manifest. Returns a dict suitable for serialisation to YAML and ``kubectl apply``.
agent-governance-python/agent-sre/src/agent_sre/k8s/__init__.py:60
↓ 7 callers
Function
generate_keypair
Generate an Ed25519 key pair for testing and development. Returns: (private_key_b64, public_key_b64) as base64-encoded strings. Rais
agent-governance-python/agentmesh-integrations/structural-authz-agentmesh/structural_authz_agentmesh/trust.py:640
↓ 7 callers
Method
generate_keypair
Generate an Ed25519 keypair for the given agent. Args: agent_id: Unique identifier of the agent. Returns: Th
agent-governance-python/agent-mesh/src/agentmesh/identity/keystore.py:38
↓ 7 callers
Method
generate_manifest
Generate an integrity manifest from current module state. Writes a JSON file containing SHA-256 hashes of all governance module sourc
agent-governance-python/agent-compliance/src/agent_compliance/integrity.py:395
↓ 7 callers
Function
generate_policy
Generate a YAML policy string from a named template.
agent-governance-python/agent-os/src/agent_os/cli/cmd_policy_gen.py:133
↓ 7 callers
Method
getAll
* Get all logs
agent-governance-typescript/agent-os-vscode/src/auditLogger.ts:56
↓ 7 callers
Method
getInstance
Get or create the singleton server instance.
agent-governance-typescript/agent-os-vscode/src/server/GovernanceServer.ts:60
↓ 7 callers
Function
getPackagePaths
({ antigravityHome, packageRoot })
agent-governance-antigravity-cli/lib/cli.mjs:438
↓ 7 callers
Function
getPackagePaths
({ copilotHome, packageRoot })
agent-governance-copilot-cli/lib/cli.mjs:388
↓ 7 callers
Function
getState
()
agent-governance-opencode/src/index.mjs:46
↓ 7 callers
Method
get_agent
(self, did: str)
agent-governance-python/agentmesh-integrations/crewai-agentmesh/crewai_agentmesh/trust.py:198
↓ 7 callers
Method
get_agent
(self, agent_id: str)
agent-governance-python/agent-sre/src/agent_sre/fleet/__init__.py:232
↓ 7 callers
Function
get_all_prompts
Get all test prompts
agent-governance-python/agent-os/modules/control-plane/benchmark/red_team_dataset.py:480
↓ 7 callers
Method
get_backpressure_stats
Get backpressure statistics. Args: topic: Optional topic to get stats for. If None, returns all topics.
agent-governance-python/agent-os/modules/amb/amb_core/memory_broker.py:386
↓ 7 callers
Method
get_confidence_level
Get confidence level enum.
agent-governance-python/agent-os/examples/self-evaluating/src/ghost_mode.py:118
↓ 7 callers
Method
get_conversation_history
Get the conversation history (last N turns). Returns the history in FIFO order (oldest to newest). All turns are per
agent-governance-python/agent-os/modules/caas/src/caas/conversation.py:125
↓ 7 callers
Method
get_deployment_info
Get Trust Gateway deployment information. Returns: Deployment configuration and status
agent-governance-python/agent-os/modules/caas/src/caas/gateway/trust_gateway.py:370
↓ 7 callers
Method
get_full_context
Return context from requested layers.
agent-governance-python/agent-os/modules/caas/src/caas/triad.py:131
↓ 7 callers
Method
get_group_memberships
Fetch Entra group memberships for a service principal. Calls ``GET /servicePrincipals/{id}/memberOf/microsoft.graph.group``
agent-governance-python/agent-mesh/src/agentmesh/identity/entra_graph.py:55
↓ 7 callers
Method
get_headers
Generate Helicone-compatible HTTP headers. Args: session_name: Session identifier for grouping requests. user_id: Opt
agent-governance-python/agent-sre/src/agent_sre/integrations/helicone/headers.py:64
↓ 7 callers
Method
get_history
Get recent events, optionally filtered by type.
agent-governance-python/agent-os/src/agent_os/event_bus.py:115
↓ 7 callers
Method
get_history
Return a copy of all delivery records.
agent-governance-python/agent-os/src/agent_os/integrations/webhooks.py:174
↓ 7 callers
Function
get_logger
Get or create a GovernanceLogger instance (cached per name).
agent-governance-python/agent-os/src/agent_os/integrations/logging.py:186
↓ 7 callers
Method
get_metrics_for_version
Calculate metrics for a specific version within a time window. Args: version: "old" or "new" window_
agent-governance-python/agent-os/examples/self-evaluating/src/circuit_breaker.py:126
↓ 7 callers
Method
get_new_spans
Get only entries added since the last call. Previous implementation called :meth:`get_spans` (which walks all entries) on ev
agent-governance-python/agent-lightning/src/agent_lightning_gov/emitter.py:196
↓ 7 callers
Method
get_policy
Return the governance policy template for an agent's role.
agent-governance-python/agent-os/src/agent_os/integrations/rbac.py:81
↓ 7 callers
Function
get_profile
Get a threshold profile by name. Args: name: Profile name (string or ProfileName enum) Returns: ThresholdProfile config
agent-governance-python/agent-os/modules/cmvk/src/cmvk/profiles.py:209
↓ 7 callers
Method
get_replica_count
Get the current replica count for an agent type
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/lifecycle.py:1222
↓ 7 callers
Method
get_repo_tier
(self, repo: str)
agent-governance-python/agent-os/src/agent_os/github_enterprise.py:66
↓ 7 callers
Method
get_score
Get current trust score for an agent.
agent-governance-python/agent-os/src/agent_os/task_outcome.py:119
↓ 7 callers
Method
get_statistics
Get statistics about the adapter's activity. Returns: Dictionary with statistics from the control plane
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/adapter.py:352
↓ 7 callers
Method
get_stats
Returns current analytics snapshot across all rolling windows.
agent-governance-python/agent-mesh/src/agentmesh/events/analytics.py:103
↓ 7 callers
Method
get_stats
(self)
agent-governance-python/agent-sre/src/agent_sre/mcp/server.py:201
↓ 7 callers
Method
get_template
Return a secure code template with placeholders filled in. Args: name: Template name (one of ``TEMPLATES`` keys). **k
agent-governance-python/agent-os/src/agent_os/secure_codegen.py:493
↓ 7 callers
Method
get_trust_score
Retrieve the trust score for an agent. Args: agent_did: DID of the agent. Returns: Trust score dict, or None
agent-governance-python/agent-mesh/src/agentmesh/storage/file_trust_store.py:71
↓ 7 callers
Method
get_trust_score
(self, agent_did: str)
agent-governance-python/agent-mesh/src/agentmesh/integrations/crewai/agent.py:60
↓ 7 callers
Function
governed_call
Execute a tool call through the SOC2 governance layer. Returns the mock result string on success, or None if blocked.
agent-governance-python/agent-os/examples/finance-soc2/main.py:270
↓ 7 callers
Method
handle_message
Handle an A2A protocol message with governance. This is the main entry point for A2A messages from other agents. It
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/a2a_adapter.py:140
↓ 7 callers
Function
hasChanges
(current: SlotConfig, draft: SlotConfig)
agent-governance-typescript/agent-os-vscode/src/webviews/sidebar/pickerUtils.ts:32
↓ 7 callers
Method
has_capability
(self, cap: str)
agent-governance-python/agentmesh-integrations/langgraph-trust/langgraph_trust/identity.py:51
↓ 7 callers
Method
has_endorsement
Check whether a valid endorsement of the given type exists.
agent-governance-python/agent-mesh/src/agentmesh/trust/endorsement.py:199
↓ 7 callers
Method
hash_context
Return a deterministic SHA-256 hash for canonically serializable context. This is a lightweight, best-effort fingerprint for observability.
agent-governance-python/agent-os/src/agent_os/integrations/base.py:1310
↓ 7 callers
Function
hash_tool_args
SHA-256 of tool arguments as canonical JSON. ``None`` or empty → hash of ``{}``.
agent-governance-python/agentmesh-integrations/mcp-receipt-governed/mcp_receipt_governed/receipt.py:117
↓ 7 callers
Method
identityToAICard
* Convert an AGT agent identity to an AI Card.
agent-governance-typescript/src/oci-manifest.ts:30
↓ 7 callers
Method
intercept_tool_call
Evaluate a tool call against the governance policy. Routes the evaluation through the AGT 5.0 ACS engine at the ``pre_tool_call`` int
agent-governance-python/agent-os/src/agent_os/integrations/pydantic_ai_adapter.py:392
↓ 7 callers
Method
invoke
(self, query: str, **kwargs: Any)
agent-governance-python/agent-rag-governance/tests/test_cedar_policy.py:40
↓ 7 callers
Method
isActive
Check if the identity is active and not expired.
agent-governance-typescript/src/identity.ts:140
↓ 7 callers
Method
is_cancelled
Check whether a run has been cancelled via :meth:`cancel_run`. Args: run_id: The run identifier to check. Returns:
agent-governance-python/agent-os/src/agent_os/integrations/openai_adapter.py:360
↓ 7 callers
Method
is_expiring_soon
Check if credential is about to expire. Args: threshold_seconds: Number of seconds before expiry to consider "exp
agent-governance-python/agent-mesh/src/agentmesh/identity/credentials.py:117
↓ 7 callers
Method
is_ready
Return True when the batch should be flushed.
agent-governance-python/agent-sre/src/agent_sre/alerts/dedup.py:179
↓ 7 callers
Function
latencyColor
(value: number, target: number)
agent-governance-typescript/agent-os-vscode/src/webviews/sidebar/healthColors.ts:18
↓ 7 callers
Method
load_rego
Load a .rego file alongside YAML/JSON policies. The OPA evaluator runs in parallel: YAML rules are checked first, and if no
agent-governance-python/agent-mesh/src/agentmesh/governance/policy.py:737
↓ 7 callers
Function
log
(entry: GhcpLogEntry)
policy-engine/sdk/node/src/integrations/ghcp.ts:171
↓ 7 callers
Method
log
(self, event: str, agent: str, details: str)
agent-governance-python/agent-hypervisor/tutorials/execution-rings-workflow/demo.py:123
↓ 7 callers
Method
log_run
Log a run with SRE metrics. Args: run_name: Name for the MLflow run. metrics: Metrics dict to log. params
agent-governance-python/agent-sre/src/agent_sre/integrations/mlflow/exporter.py:70
↓ 7 callers
Method
log_violation
Log a policy violation for a trace. Updates the audit entry identified by ``trace_id`` to ``blocked`` status and records the reason.
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/flight_recorder.py:402
↓ 7 callers
Method
lookup
Look up content in cache. Args: context: The context to look up metadata: Optional metadata for key
agent-governance-python/agent-os/modules/caas/src/caas/caching.py:606
↓ 7 callers
Function
makeKeyManager
()
agent-governance-typescript/tests/mesh-client-knock-bootstrap.test.ts:56
↓ 7 callers
Function
markIsolated
(timing: PanelTiming)
agent-governance-typescript/agent-os-vscode/src/webviews/sidebar/panelLatencyTracker.ts:52
↓ 7 callers
Function
ok
(msg: str)
examples/demos/governed-agent-in-10-min/demo.py:87
↓ 7 callers
Method
onMessage
(handler: (from: string, payload: unknown, isPlaintext: boolean) => void)
agent-governance-typescript/src/encryption/mesh-client.ts:689
↓ 7 callers
Method
on_block
(tool_name, tool_args, result)
agent-governance-python/agent-os/modules/control-plane/tests/test_adapter.py:262
↓ 7 callers
Method
on_graph_start
(self, graph_name: str = "", **kwargs: Any)
agent-governance-python/agent-sre/src/agent_sre/adapters/__init__.py:154
↓ 7 callers
Method
on_llm_start
Called when LLM starts generating.
agent-governance-python/agent-sre/src/agent_sre/integrations/langchain/callback.py:149
↓ 7 callers
Method
open_secure_channel
Open an E2E encrypted channel to a peer after trust verification. The flow is: 1. Run TrustHandshake (Ed25519 challenge-response + tr
agent-governance-python/agent-mesh/src/agentmesh/encryption/bridge.py:107
↓ 7 callers
Function
override_policy
Create a copy of *base* with the given field overrides applied.
agent-governance-python/agent-os/src/agent_os/integrations/policy_compose.py:27
↓ 7 callers
Function
parseYamlLite
(text: string)
agent-governance-python/agentmesh-integrations/copilot-governance/src/agent.ts:204
↓ 7 callers
Function
percentHealth
(current: number, target: number)
agent-governance-typescript/agent-os-vscode/src/views/sloBuilders.ts:13
↓ 7 callers
Method
predict
Send a prediction request to a Flowise chatflow. Args: flow_id: The Flowise chatflow ID. question: The user question/
agent-governance-python/agent-mesh/src/agentmesh/integrations/flowise/__init__.py:173
↓ 7 callers
Function
print_section
Print a formatted section header
agent-governance-python/agent-os/modules/control-plane/examples/mcp_demo.py:30
↓ 7 callers
Function
print_section
(title: str)
agent-governance-python/agent-os/examples/crewai-safe-mode/crewai_safe_mode.py:57
↓ 7 callers
Method
public_key
Return the public key corresponding to the signing key.
agent-governance-python/agent-marketplace/src/agent_marketplace/signing.py:39
↓ 7 callers
Function
randomBytes
(n: number)
agent-governance-typescript/src/encryption/x3dh.ts:19
↓ 7 callers
Method
read
(self)
agent-governance-python/agent-compliance/tests/test_cli_api_retry.py:59
← previous
next →
1,901–2,000 of 32,326, ranked by callers