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,028 callers
Method
append
Persist a new measurement.
agent-governance-python/agent-sre/src/agent_sre/slo/persistence.py:45
↓ 1,545 callers
Method
get
Get state by key.
agent-governance-python/agent-os/src/agent_os/stateless.py:183
↓ 1,411 callers
Method
append
Append data to file.
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/vfs.py:428
↓ 1,111 callers
Method
now
Build a TimeContext for the current moment.
agent-governance-python/agent-os/src/agent_os/policies/dynamic_context.py:45
↓ 920 callers
Method
join
Join text parts. Args: parts: List of strings to join delimiter: Delimiter string R
agent-governance-python/agent-os/modules/atr/atr/tools/safe/text_tool.py:138
↓ 783 callers
Function
test
(name: string, fn: (server: http.Server) => Promise<void>)
agent-governance-python/agent-mesh/services/api/tests/api.test.ts:81
↓ 698 callers
Method
get
Get an identity by DID.
agent-governance-typescript/src/identity.ts:433
↓ 619 callers
Method
push
* Push metrics to the configured endpoint. * * @param metrics - Governance metrics to export. * @throws Error if all retries are exhaus
agent-governance-typescript/agent-os-vscode/src/observability/MetricsExporter.ts:54
↓ 477 callers
Method
compile
Compile the governed graph, wrapping the checkpointer if provided.
agent-governance-python/agent-os/src/agent_os/integrations/langgraph_adapter.py:124
↓ 470 callers
Method
run
( request: TRequest, execute: (request: JsonValue) => Promise<TOutput> | TOutput, options?: Adapte
policy-engine/sdk/node/src/adapters.ts:69
↓ 448 callers
Method
get
Return the adapter class registered under *name*. Raises: KeyError: If no adapter is registered with that name.
agent-governance-python/agent-os/src/agent_os/integrations/registry.py:49
↓ 415 callers
Method
get
Get a registered card by agent DID. Args: agent_did: The agent's decentralized identifier. Returns: The ``Tr
agent-governance-python/agent-mesh/src/agentmesh/trust/cards.py:292
↓ 393 callers
Method
split
Split text by delimiter. Args: text: Text to split delimiter: Delimiter string max_split
agent-governance-python/agent-os/modules/atr/atr/tools/safe/text_tool.py:100
↓ 391 callers
Method
evaluate
(invocation: Record<string, JsonValue>)
policy-engine/sdk/node/src/index.ts:170
↓ 362 callers
Method
get
Get a circuit breaker by name
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/lifecycle.py:956
↓ 353 callers
Method
map
Transform the result value if successful.
agent-governance-python/agent-os/modules/atr/atr/composition.py:73
↓ 349 callers
Method
replace
Replace text occurrences. Args: text: Input text old: String to find new: Replacement st
agent-governance-python/agent-os/modules/atr/atr/tools/safe/text_tool.py:166
↓ 338 callers
Method
ok
Create a successful result.
agent-governance-python/agent-os/modules/atr/atr/composition.py:64
↓ 333 callers
Method
exists
Check if path exists. Args: path: Path to check Returns: Dict with exists, is_file,
agent-governance-python/agent-os/modules/atr/atr/tools/safe/file_reader.py:333
↓ 314 callers
Method
now
Get current datetime. Args: timezone_name: Timezone name (default: UTC) Returns: Di
agent-governance-python/agent-os/modules/atr/atr/tools/safe/datetime_tool.py:100
↓ 300 callers
Method
get
Get a template by ID.
agent-governance-python/agent-sre/src/agent_sre/chaos/library.py:207
↓ 263 callers
Method
read_text
Read file as text.
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/vfs.py:404
↓ 230 callers
Method
post
Make a POST request. Args: url: URL to request (must be in allowed domains) data: Form data to send
agent-governance-python/agent-os/modules/atr/atr/tools/safe/http_client.py:240
↓ 221 callers
Method
mkdir
Create directory.
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/vfs.py:459
↓ 208 callers
Method
get
Get an entry from cache.
agent-governance-python/agent-os/modules/caas/src/caas/caching.py:476
↓ 206 callers
Method
extend
Return a new policy that inherits from the base with *overrides*.
agent-governance-python/agent-os/src/agent_os/integrations/policy_compose.py:125
↓ 204 callers
Method
get
(self, dataset_id: str)
examples/data-quality-aware-governance/example.py:110
↓ 190 callers
Method
resolve
(candidates: CandidateDecision[])
agent-governance-typescript/src/policy.ts:46
↓ 189 callers
Method
keys
Get keys matching pattern.
agent-governance-python/agent-mesh/src/agentmesh/storage/provider.py:221
↓ 176 callers
Method
match
Find runbooks matching an incident's type/severity. A runbook matches if any of its trigger_conditions match the incident. A conditio
agent-governance-python/agent-sre/src/agent_sre/incidents/runbook_registry.py:37
↓ 174 callers
Method
get
Retrieve a registered backend by name. Args: name: Backend identifier. Returns: The registered backend.
agent-governance-python/agent-mesh/src/agentmesh/governance/backend.py:124
↓ 171 callers
Method
error
Log an error at ERROR level.
agent-governance-python/agent-os/src/agent_os/integrations/logging.py:170
↓ 169 callers
Method
trim
Trim characters from text. Args: text: Text to trim chars: Characters to trim (default: whitespace)
agent-governance-python/agent-os/modules/atr/atr/tools/safe/text_tool.py:337
↓ 168 callers
Method
search
Search for documents containing keyword
agent-governance-python/agent-os/examples/pharma-compliance/demo.py:131
↓ 167 callers
Method
create
(cls, name: str)
agent-governance-python/agent-mesh/tutorials/claude-desktop-mcp-proxy/demo.py:83
↓ 162 callers
Method
get
(self, agent_did: str)
agent-governance-python/agent-hypervisor/src/hypervisor/session/vector_clock.py:37
↓ 154 callers
Method
echo
(value: str)
policy-engine/sdk/python/tests/test_real_packages.py:585
↓ 153 callers
Method
generate
Generate a new DID for an agent. Uses 128 bits of random hex directly rather than hashing a seed that contained only 32 hex digits (8
agent-governance-python/agent-mesh/src/agentmesh/identity/agent_id.py:37
↓ 153 callers
Method
set
Set state with optional TTL.
agent-governance-python/agent-os/src/agent_os/stateless.py:187
↓ 150 callers
Method
create_session
(self, agent_id, policy=None, config=None)
agent-governance-python/agent-sandbox/tests/test_docker_sandbox.py:190
↓ 132 callers
Method
create_context
(self, agent_id: str)
agent-governance-python/agent-os/tests/test_benchmarks.py:114
↓ 121 callers
Method
parse
Parse a saga definition dict into a SagaDefinition. If schema_validation was enabled at construction, validates against the JSON sche
agent-governance-python/agent-hypervisor/src/hypervisor/saga/dsl.py:79
↓ 119 callers
Method
exit
Request termination.
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/kernel_space.py:922
↓ 116 callers
Method
remove
Remove an entry from cache.
agent-governance-python/agent-os/modules/caas/src/caas/caching.py:508
↓ 107 callers
Method
close
Close the connection with optional code and reason.
agent-governance-typescript/agent-os-vscode/src/server/serverHelpers.ts:181
↓ 103 callers
Method
record
(event: MetricEvent)
agent-governance-typescript/src/metrics.ts:14
↓ 102 callers
Method
wrap
(model: TModel, options?: AdapterOptions)
policy-engine/sdk/node/src/adapters.ts:74
↓ 101 callers
Method
invoke
(self, query: str, **kwargs)
agent-governance-python/agent-rag-governance/tests/test_governor.py:28
↓ 99 callers
Method
model_dump
(self)
policy-engine/sdk/python/tests/test_adapters.py:271
↓ 98 callers
Method
get
Get SPIFFE identity for an agent. Args: agent_did: The agent's DID. Returns: The SPIFFEIdentity, or None if
agent-governance-python/agent-mesh/src/agentmesh/identity/spiffe.py:251
↓ 98 callers
Method
pre_execute
Run pre-execution policy checks and return the legacy tuple. Args: ctx: Execution context for the governed operation.
agent-governance-python/agent-os/src/agent_os/integrations/base.py:1739
↓ 96 callers
Method
exists
Check if key exists.
agent-governance-python/agent-mesh/src/agentmesh/storage/provider.py:97
↓ 94 callers
Method
Evaluate
Evaluate returns the decision for the given action and context. Rules are evaluated in order; first match wins. Default is Deny. Concurrency: the rul
agent-governance-golang/packages/agentmesh/policy.go:87
↓ 94 callers
Method
execute_code
(self, agent_id, session_id, code, *, context=None)
agent-governance-python/agent-sandbox/tests/test_docker_sandbox.py:193
↓ 93 callers
Function
resolve
( intervention_point: InterventionPoint, result: InterventionPointResult, )
policy-engine/sdk/python/agent_control_specification/_adapters/mcp.py:147
↓ 92 callers
Method
on
Register event listener.
agent-governance-typescript/agent-os-vscode/src/server/serverHelpers.ts:183
↓ 90 callers
Method
create_session
Create a new Shared Session.
agent-governance-python/agent-hypervisor/src/hypervisor/core.py:103
↓ 90 callers
Method
write
Write a file.
agent-governance-python/agent-hypervisor/src/hypervisor/session/sso.py:48
↓ 89 callers
Method
toString
()
agent-governance-typescript/src/credential-vault.ts:102
↓ 85 callers
Method
join_session
Join an agent to a session via extended IATP handshake. Steps: 1. Parse IATP manifest (if adapter + manifest provided)
agent-governance-python/agent-hypervisor/src/hypervisor/core.py:116
↓ 85 callers
Method
write
(self, entry: AuditEntry)
agent-governance-python/agent-os/src/agent_os/audit_logger.py:44
↓ 84 callers
Function
append
(part: Uint8Array | ArrayBuffer | string)
policy-engine/sdk/node/src/streaming.ts:265
↓ 84 callers
Method
generate
Generate a new verification identity with Ed25519 key pair. Args: agent_name: Human-readable name for the agent capab
agent-governance-python/agentmesh-integrations/langchain-agentmesh/langchain_agentmesh/identity.py:99
↓ 83 callers
Method
before_tool_callback
ADK before_tool_callback — called before each tool execution. Compatible with ADK's ToolContext. If tool_context is not an ADK
agent-governance-python/agent-os/src/agent_os/integrations/google_adk_adapter.py:616
↓ 82 callers
Method
has
Check self and parent.
agent-governance-python/agent-os/modules/atr/atr/injection.py:317
↓ 79 callers
Method
execute_action
Execute an action on behalf of an agent This is the main entry point for agent actions. It goes through the complete
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/control_plane.py:272
↓ 79 callers
Method
publish
Publish a message to a topic. This method supports both "fire and forget" (default) and "wait for verification" patt
agent-governance-python/agent-os/modules/amb/amb_core/bus.py:134
↓ 78 callers
Function
_run
Helper to run async in sync tests.
agent-governance-python/agent-os/tests/test_intent.py:46
↓ 78 callers
Method
read
Read a document from VFS
agent-governance-python/agent-os/examples/pharma-compliance/demo.py:121
↓ 76 callers
Function
_build_scenario_runtime
Build an :class:`AgtRuntime` over a scripted or custom dispatcher.
agent-governance-python/agent-os/tests/test_integrations.py:2264
↓ 76 callers
Function
c
(color: str, text: str)
docs/demos/conversation-guardian-demo.py:80
↓ 75 callers
Method
get
Get a runbook by ID.
agent-governance-python/agent-sre/src/agent_sre/incidents/runbook_registry.py:29
↓ 75 callers
Method
update
Replace the episode with the given ID.
agent-governance-python/agent-os/modules/emk/emk/store.py:148
↓ 74 callers
Method
invoke
Invoke tool on MCP server. Automatically attaches identity credentials. Raises: NotImplementedError: HTTP trans
agent-governance-python/agent-mesh/src/agentmesh/integrations/mcp/__init__.py:447
↓ 74 callers
Method
set_score
(self, agent_did: str, score: float)
agent-governance-python/agent-mesh/src/agentmesh/reward/trust_decay.py:140
↓ 73 callers
Function
auth_header
(token: str)
agent-governance-python/agent-os/tests/cloud_board/test_api_auth.py:65
↓ 72 callers
Function
NewPolicyEngine
NewPolicyEngine creates a PolicyEngine with the supplied rules.
agent-governance-golang/packages/agentmesh/policy.go:53
↓ 72 callers
Method
classify
Classify ticket category and priority.
agent-governance-python/agent-os/examples/customer-service/main.py:451
↓ 72 callers
Method
record_cost
Record a task cost and check budgets. Returns any alerts triggered. WARNING — this method records cost unconditionally; it does
agent-governance-python/agent-sre/src/agent_sre/cost/guard.py:279
↓ 72 callers
Method
register
Register an identity.
agent-governance-python/agent-mesh/src/agentmesh/identity/agent_id.py:550
↓ 69 callers
Method
record_task
Record a task completion.
agent-governance-python/agent-sre/src/agent_sre/slo/indicators.py:146
↓ 69 callers
Method
resolve
Resolve from self first, then parent.
agent-governance-python/agent-os/modules/atr/atr/injection.py:305
↓ 69 callers
Method
wait
Block until the process finishes (or *timeout* expires) and return its result.
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/process_isolation.py:312
↓ 68 callers
Method
Log
Log appends a new entry to the audit chain. When MaxEntries is set and exceeded, the oldest entries are evicted and their final hash is retained as a
agent-governance-golang/packages/agentmesh/audit.go:57
↓ 67 callers
Function
_tree
(icon: str, colour: str, label: str, detail: str = "")
examples/openai-agents-governed/openai_agents_governance_demo.py:189
↓ 67 callers
Method
create_agent
Create a new agent with specified permissions and quotas Args: agent_id: Unique identifier for the agent
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/control_plane.py:246
↓ 66 callers
Function
_ts
Return a fixed base timestamp + offset.
agent-governance-python/agent-os/tests/test_conversation_guardian.py:30
↓ 66 callers
Method
copy
(self)
agent-governance-python/agent-hypervisor/src/hypervisor/session/vector_clock.py:83
↓ 66 callers
Method
emit
Append an event and notify subscribers.
agent-governance-python/agent-hypervisor/src/hypervisor/observability/event_bus.py:154
↓ 66 callers
Method
execute
Sign content with IATP attestation.
agent-governance-python/agent-os/modules/mcp-kernel-server/src/mcp_kernel_server/tools.py:712
↓ 64 callers
Method
public_key
Return the public key corresponding to the signing key.
agent-governance-python/agent-mesh/src/agentmesh/marketplace/signing.py:39
↓ 62 callers
Method
add
Add an entry to the DLQ. Args: entry: DLQ entry to add Returns: True if added,
agent-governance-python/agent-os/modules/amb/amb_core/dlq.py:114
↓ 61 callers
Method
sign
()
agent-governance-python/agent-mesh/tests/test_benchmarks.py:79
↓ 60 callers
Method
record_event
Record a good or bad event against the SLO.
agent-governance-python/agent-sre/src/agent_sre/slo/objectives.py:275
↓ 59 callers
Method
post_execute
Run post-execution validation and return the legacy tuple. Args: ctx: Execution context for the governed operation. o
agent-governance-python/agent-os/src/agent_os/integrations/base.py:1818
↓ 59 callers
Function
result
(decision=None, transformed_policy_target=None, transformed_policy_target_applied=False)
policy-engine/sdk/python/tests/test_adapters.py:36
↓ 59 callers
Method
set_attribute
Set attribute on current span.
agent-governance-python/agent-mesh/src/agentmesh/observability/tracing.py:224
↓ 58 callers
Method
check
Perform the health check synchronously. Returns: HealthCheckResult with status and details.
agent-governance-python/agent-os/modules/atr/atr/health.py:72
↓ 58 callers
Method
intercept_tool_call
Evaluate a tool call against the gateway's policy stack. Args: agent_id: Agent identity attempting the tool invocation.
agent-governance-python/agent-os/src/agent_os/mcp_gateway.py:198
↓ 57 callers
Method
send
Send data to the client.
agent-governance-typescript/agent-os-vscode/src/server/serverHelpers.ts:179
next →
1–100 of 32,326, ranked by callers