MCPcopy Create free account

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

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

↓ 2,028 callersMethodappend
Persist a new measurement.
agent-governance-python/agent-sre/src/agent_sre/slo/persistence.py:45
↓ 1,545 callersMethodget
Get state by key.
agent-governance-python/agent-os/src/agent_os/stateless.py:183
↓ 1,411 callersMethodappend
Append data to file.
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/vfs.py:428
↓ 1,111 callersMethodnow
Build a TimeContext for the current moment.
agent-governance-python/agent-os/src/agent_os/policies/dynamic_context.py:45
↓ 920 callersMethodjoin
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 callersFunctiontest
(name: string, fn: (server: http.Server) => Promise<void>)
agent-governance-python/agent-mesh/services/api/tests/api.test.ts:81
↓ 698 callersMethodget
Get an identity by DID.
agent-governance-typescript/src/identity.ts:433
↓ 619 callersMethodpush
* 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 callersMethodcompile
Compile the governed graph, wrapping the checkpointer if provided.
agent-governance-python/agent-os/src/agent_os/integrations/langgraph_adapter.py:124
↓ 470 callersMethodrun
( request: TRequest, execute: (request: JsonValue) => Promise<TOutput> | TOutput, options?: Adapte
policy-engine/sdk/node/src/adapters.ts:69
↓ 448 callersMethodget
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 callersMethodget
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 callersMethodsplit
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 callersMethodevaluate
(invocation: Record<string, JsonValue>)
policy-engine/sdk/node/src/index.ts:170
↓ 362 callersMethodget
Get a circuit breaker by name
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/lifecycle.py:956
↓ 353 callersMethodmap
Transform the result value if successful.
agent-governance-python/agent-os/modules/atr/atr/composition.py:73
↓ 349 callersMethodreplace
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 callersMethodok
Create a successful result.
agent-governance-python/agent-os/modules/atr/atr/composition.py:64
↓ 333 callersMethodexists
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 callersMethodnow
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 callersMethodget
Get a template by ID.
agent-governance-python/agent-sre/src/agent_sre/chaos/library.py:207
↓ 263 callersMethodread_text
Read file as text.
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/vfs.py:404
↓ 230 callersMethodpost
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 callersMethodmkdir
Create directory.
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/vfs.py:459
↓ 208 callersMethodget
Get an entry from cache.
agent-governance-python/agent-os/modules/caas/src/caas/caching.py:476
↓ 206 callersMethodextend
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 callersMethodget
(self, dataset_id: str)
examples/data-quality-aware-governance/example.py:110
↓ 190 callersMethodresolve
(candidates: CandidateDecision[])
agent-governance-typescript/src/policy.ts:46
↓ 189 callersMethodkeys
Get keys matching pattern.
agent-governance-python/agent-mesh/src/agentmesh/storage/provider.py:221
↓ 176 callersMethodmatch
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 callersMethodget
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 callersMethoderror
Log an error at ERROR level.
agent-governance-python/agent-os/src/agent_os/integrations/logging.py:170
↓ 169 callersMethodtrim
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 callersMethodsearch
Search for documents containing keyword
agent-governance-python/agent-os/examples/pharma-compliance/demo.py:131
↓ 167 callersMethodcreate
(cls, name: str)
agent-governance-python/agent-mesh/tutorials/claude-desktop-mcp-proxy/demo.py:83
↓ 162 callersMethodget
(self, agent_did: str)
agent-governance-python/agent-hypervisor/src/hypervisor/session/vector_clock.py:37
↓ 154 callersMethodecho
(value: str)
policy-engine/sdk/python/tests/test_real_packages.py:585
↓ 153 callersMethodgenerate
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 callersMethodset
Set state with optional TTL.
agent-governance-python/agent-os/src/agent_os/stateless.py:187
↓ 150 callersMethodcreate_session
(self, agent_id, policy=None, config=None)
agent-governance-python/agent-sandbox/tests/test_docker_sandbox.py:190
↓ 132 callersMethodcreate_context
(self, agent_id: str)
agent-governance-python/agent-os/tests/test_benchmarks.py:114
↓ 121 callersMethodparse
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 callersMethodexit
Request termination.
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/kernel_space.py:922
↓ 116 callersMethodremove
Remove an entry from cache.
agent-governance-python/agent-os/modules/caas/src/caas/caching.py:508
↓ 107 callersMethodclose
Close the connection with optional code and reason.
agent-governance-typescript/agent-os-vscode/src/server/serverHelpers.ts:181
↓ 103 callersMethodrecord
(event: MetricEvent)
agent-governance-typescript/src/metrics.ts:14
↓ 102 callersMethodwrap
(model: TModel, options?: AdapterOptions)
policy-engine/sdk/node/src/adapters.ts:74
↓ 101 callersMethodinvoke
(self, query: str, **kwargs)
agent-governance-python/agent-rag-governance/tests/test_governor.py:28
↓ 99 callersMethodmodel_dump
(self)
policy-engine/sdk/python/tests/test_adapters.py:271
↓ 98 callersMethodget
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 callersMethodpre_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 callersMethodexists
Check if key exists.
agent-governance-python/agent-mesh/src/agentmesh/storage/provider.py:97
↓ 94 callersMethodEvaluate
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 callersMethodexecute_code
(self, agent_id, session_id, code, *, context=None)
agent-governance-python/agent-sandbox/tests/test_docker_sandbox.py:193
↓ 93 callersFunctionresolve
( intervention_point: InterventionPoint, result: InterventionPointResult, )
policy-engine/sdk/python/agent_control_specification/_adapters/mcp.py:147
↓ 92 callersMethodon
Register event listener.
agent-governance-typescript/agent-os-vscode/src/server/serverHelpers.ts:183
↓ 90 callersMethodcreate_session
Create a new Shared Session.
agent-governance-python/agent-hypervisor/src/hypervisor/core.py:103
↓ 90 callersMethodwrite
Write a file.
agent-governance-python/agent-hypervisor/src/hypervisor/session/sso.py:48
↓ 89 callersMethodtoString
()
agent-governance-typescript/src/credential-vault.ts:102
↓ 85 callersMethodjoin_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 callersMethodwrite
(self, entry: AuditEntry)
agent-governance-python/agent-os/src/agent_os/audit_logger.py:44
↓ 84 callersFunctionappend
(part: Uint8Array | ArrayBuffer | string)
policy-engine/sdk/node/src/streaming.ts:265
↓ 84 callersMethodgenerate
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 callersMethodbefore_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 callersMethodhas
Check self and parent.
agent-governance-python/agent-os/modules/atr/atr/injection.py:317
↓ 79 callersMethodexecute_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 callersMethodpublish
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 callersFunction_run
Helper to run async in sync tests.
agent-governance-python/agent-os/tests/test_intent.py:46
↓ 78 callersMethodread
Read a document from VFS
agent-governance-python/agent-os/examples/pharma-compliance/demo.py:121
↓ 76 callersFunction_build_scenario_runtime
Build an :class:`AgtRuntime` over a scripted or custom dispatcher.
agent-governance-python/agent-os/tests/test_integrations.py:2264
↓ 76 callersFunctionc
(color: str, text: str)
docs/demos/conversation-guardian-demo.py:80
↓ 75 callersMethodget
Get a runbook by ID.
agent-governance-python/agent-sre/src/agent_sre/incidents/runbook_registry.py:29
↓ 75 callersMethodupdate
Replace the episode with the given ID.
agent-governance-python/agent-os/modules/emk/emk/store.py:148
↓ 74 callersMethodinvoke
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 callersMethodset_score
(self, agent_did: str, score: float)
agent-governance-python/agent-mesh/src/agentmesh/reward/trust_decay.py:140
↓ 73 callersFunctionauth_header
(token: str)
agent-governance-python/agent-os/tests/cloud_board/test_api_auth.py:65
↓ 72 callersFunctionNewPolicyEngine
NewPolicyEngine creates a PolicyEngine with the supplied rules.
agent-governance-golang/packages/agentmesh/policy.go:53
↓ 72 callersMethodclassify
Classify ticket category and priority.
agent-governance-python/agent-os/examples/customer-service/main.py:451
↓ 72 callersMethodrecord_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 callersMethodregister
Register an identity.
agent-governance-python/agent-mesh/src/agentmesh/identity/agent_id.py:550
↓ 69 callersMethodrecord_task
Record a task completion.
agent-governance-python/agent-sre/src/agent_sre/slo/indicators.py:146
↓ 69 callersMethodresolve
Resolve from self first, then parent.
agent-governance-python/agent-os/modules/atr/atr/injection.py:305
↓ 69 callersMethodwait
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 callersMethodLog
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 callersFunction_tree
(icon: str, colour: str, label: str, detail: str = "")
examples/openai-agents-governed/openai_agents_governance_demo.py:189
↓ 67 callersMethodcreate_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 callersFunction_ts
Return a fixed base timestamp + offset.
agent-governance-python/agent-os/tests/test_conversation_guardian.py:30
↓ 66 callersMethodcopy
(self)
agent-governance-python/agent-hypervisor/src/hypervisor/session/vector_clock.py:83
↓ 66 callersMethodemit
Append an event and notify subscribers.
agent-governance-python/agent-hypervisor/src/hypervisor/observability/event_bus.py:154
↓ 66 callersMethodexecute
Sign content with IATP attestation.
agent-governance-python/agent-os/modules/mcp-kernel-server/src/mcp_kernel_server/tools.py:712
↓ 64 callersMethodpublic_key
Return the public key corresponding to the signing key.
agent-governance-python/agent-mesh/src/agentmesh/marketplace/signing.py:39
↓ 62 callersMethodadd
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 callersMethodsign
()
agent-governance-python/agent-mesh/tests/test_benchmarks.py:79
↓ 60 callersMethodrecord_event
Record a good or bad event against the SLO.
agent-governance-python/agent-sre/src/agent_sre/slo/objectives.py:275
↓ 59 callersMethodpost_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 callersFunctionresult
(decision=None, transformed_policy_target=None, transformed_policy_target_applied=False)
policy-engine/sdk/python/tests/test_adapters.py:36
↓ 59 callersMethodset_attribute
Set attribute on current span.
agent-governance-python/agent-mesh/src/agentmesh/observability/tracing.py:224
↓ 58 callersMethodcheck
Perform the health check synchronously. Returns: HealthCheckResult with status and details.
agent-governance-python/agent-os/modules/atr/atr/health.py:72
↓ 58 callersMethodintercept_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 callersMethodsend
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