MCPcopy Create free account

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

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

↓ 9 callersFunction_write_governance
(path: Path, rule_name: str = "deny_dangerous_tool")
agent-governance-python/agt-policies/tests/test_migrate.py:36
↓ 9 callersFunctionactionIdentity
(policyInput: JsonValue)
policy-engine/sdk/node/src/index.ts:567
↓ 9 callersFunctionaction_identity
(policy_input: JsonValue)
policy-engine/sdk/python/agent_control_specification/_types.py:327
↓ 9 callersMethodadd_conditional_permission
Add a conditional permission for ABAC (Attribute-Based Access Control). This moves from RBAC to ABAC, allowing context-aware policie
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/policy_engine.py:378
↓ 9 callersMethodadd_message
Add a message to the task conversation.
agent-governance-python/agentmesh-integrations/a2a-protocol/a2a_agentmesh/task.py:173
↓ 9 callersMethodadd_slo
Register an SLO.
agent-governance-python/agent-sre/src/agent_sre/api/__init__.py:115
↓ 9 callersMethodappend
Append a measurement (thread-safe).
agent-governance-python/agent-sre/src/agent_sre/slo/persistence.py:73
↓ 9 callersFunctionappliesTransform
(decision: Decision)
policy-engine/sdk/node/src/adapter-helpers.ts:77
↓ 9 callersFunctionassert_blocked
(exc: BaseException, point: InterventionPoint)
policy-engine/sdk/python/examples/real_packages/_common.py:46
↓ 9 callersMethodassign_task
Attempt to assign a task to a specific agent. Validates trust score and capability match.
agent-governance-python/agentmesh-integrations/crewai-agentmesh/crewai_agentmesh/trust.py:247
↓ 9 callersFunctionauthorize_agent
Authorize an authenticated principal for a specific agent DID.
agent-governance-python/agent-os/services/cloud-board/api/auth.py:108
↓ 9 callersMethodbatch
Governed batch execution. Each input in the batch is individually checked against the governance policy before the ba
agent-governance-python/agent-os/src/agent_os/integrations/langchain_adapter.py:692
↓ 9 callersMethodcancel_run
Cancel a run (SIGKILL equivalent). ADK runs are local, so cancellation works by setting a flag that every governance hook checks. Whe
agent-governance-python/agent-os/src/agent_os/integrations/google_adk_adapter.py:1145
↓ 9 callersFunctionchain_receipt
Verbatim adapter from docs/proposals/azure-aca-sandbox.md Step 7.
agent-governance-python/agent-mesh/tests/test_step_receipt_to_audit_chain.py:38
↓ 9 callersFunctioncheck
(control: AgentControl, point: InterventionPoint, snapshot: dict, label: str)
policy-engine/examples/from_agentshield/policies/endpoint-governance/app/run_demo.py:32
↓ 9 callersMethodcheck_budget
Check whether *agent_id* may proceed with an additional call. If *estimated_tokens* is provided, the check verifies that the agent wo
agent-governance-python/agent-mesh/src/agentmesh/governance/budget.py:96
↓ 9 callersMethodcheck_content
Check text against blocked patterns. Returns PolicyCheckResult with allowed=False if any pattern matches.
agent-governance-python/agentmesh-integrations/pydantic-ai-governance/src/pydantic_ai_governance/policy.py:79
↓ 9 callersMethodcheck_freshness
Check if a package version was published within the freshness window. Does NOT call external APIs — compares against a provided timestamp.
agent-governance-python/agent-compliance/src/agent_compliance/supply_chain.py:556
↓ 9 callersMethodcheck_import
Check if a module import is allowed. Args: module_name: The module name to check. Returns: True if the impor
agent-governance-python/agent-os/src/agent_os/sandbox.py:638
↓ 9 callersFunctioncli
Main CLI entry point. Returns exit code.
agent-governance-python/agent-sre/src/agent_sre/cli/main.py:18
↓ 9 callersMethodcomplete
Mark the experiment as completed.
agent-governance-python/agent-sre/src/agent_sre/chaos/engine.py:318
↓ 9 callersMethodcompute_adjustments
( self, signals: UsageSignals, )
agent-governance-python/agent-marketplace/src/agent_marketplace/usage_trust.py:53
↓ 9 callersMethodconfirm_disclosure
Mark AI disclosure as confirmed for a session.
agent-governance-python/agent-os/src/agent_os/transparency.py:165
↓ 9 callersMethodconnect
Connect to MCP server with trust verification.
agent-governance-python/agent-mesh/src/agentmesh/integrations/mcp/__init__.py:412
↓ 9 callersMethodconsume
Try to consume tokens. Returns True if successful.
agent-governance-python/agent-hypervisor/src/hypervisor/security/rate_limiter.py:45
↓ 9 callersFunctioncontrol
()
policy-engine/sdk/python/examples/real_packages/_common.py:26
↓ 9 callersMethodcreate
Mock the create() method that returns tool calls
agent-governance-python/agent-os/modules/control-plane/tests/test_adapter.py:69
↓ 9 callersMethodcreate_session_async
( self, agent_id: str, policy: Any | None = None, config: SandboxConfig | None
agent-governance-python/agent-sandbox/src/agent_sandbox/sandbox_provider.py:206
↓ 9 callersFunctioncreate_sidecar
Factory function to create a sidecar proxy. Args: agent_url: URL of the backend agent (e.g., "http://localhost:8000") manife
agent-governance-python/agent-os/modules/iatp/iatp/sidecar/__init__.py:517
↓ 9 callersMethoddiff
Compare this policy with another, returning changed fields. Returns a dict mapping field names to (self_value, other_value) tuples fo
agent-governance-python/agent-os/src/agent_os/integrations/base.py:585
↓ 9 callersMethodemit
(self, event: Event)
agent-governance-python/agent-mesh/src/agentmesh/events/bus.py:130
↓ 9 callersMethodevaluate
Evaluate a policy check in dry-run mode. Runs the wrapped integration's pre_execute and records the decision without blockin
agent-governance-python/agent-os/src/agent_os/integrations/dry_run.py:81
↓ 9 callersFunctionevaluateDirectResourceAccess
(policy, context)
agent-governance-copilot-cli/assets/extensions/agt-global-policy/lib/policy.mjs:1038
↓ 9 callersMethodevaluate_intervention_point
( self, intervention_point: InterventionPoint | str, snapshot: Mapping[str, JsonValue]
policy-engine/sdk/python/agent_control_specification/_orchestration.py:93
↓ 9 callersMethodevaluate_intervention_point
(self, request)
policy-engine/sdk/python/tests/test_adapters.py:90
↓ 9 callersFunctionfetchAuditDetail
(p: DataProviders)
agent-governance-typescript/agent-os-vscode/src/webviews/sidebar/detailFetchers.ts:98
↓ 9 callersMethodfromPath
( path: string, annotatorDispatcher?: AnnotatorDispatcher, policyDispatcher?: PolicyDispatcher,
policy-engine/sdk/node/src/index.ts:290
↓ 9 callersMethodfrom_dict
Deserialize from dictionary.
agent-governance-python/agent-sre/src/agent_sre/replay/capture.py:103
↓ 9 callersMethodfrom_json
Load a policy from a JSON string. Validates the ``apiVersion`` field against supported versions and emits deprecation warnings for ol
agent-governance-python/agent-mesh/src/agentmesh/governance/policy.py:377
↓ 9 callersMethodfrom_jwk
Create an AgentIdentity from a JWK. Args: jwk: A dict representing a JWK with Ed25519 key material. Returns:
agent-governance-python/agent-mesh/src/agentmesh/identity/agent_id.py:375
↓ 9 callersMethodgenerate
( self, *, prompt: str, out_dir: Path, tool_inventory: dict[str, dict[
policy-engine/generator/acs_generator/engine.py:44
↓ 9 callersMethodgenerate
(self, task, context=None)
agent-governance-python/agent-os/modules/cmvk/tests/unit/test_agents.py:34
↓ 9 callersMethodgenerateOneTimePreKeys
(count: number)
agent-governance-typescript/src/encryption/x3dh.ts:138
↓ 9 callersMethodgenerate_one_time_pre_keys
Generate a batch of one-time pre-keys.
agent-governance-python/agent-mesh/src/agentmesh/encryption/x3dh.py:211
↓ 9 callersFunctiongetAgents
()
agent-governance-python/agent-os/extensions/chrome/src/shared/storage.ts:41
↓ 9 callersMethodget_agent_credits
Get credit balance for an agent.
agent-governance-python/agent-os/modules/nexus/escrow.py:279
↓ 9 callersMethodget_applicable_policies
Get all policies applicable to a repo based on its tier.
agent-governance-python/agent-os/src/agent_os/github_enterprise.py:69
↓ 9 callersMethodget_audit_summary
Get summary of tool usage.
agent-governance-python/agent-mesh/src/agentmesh/integrations/mcp/__init__.py:385
↓ 9 callersMethodget_effective_capabilities
Get the effective capabilities at the end of the chain.
agent-governance-python/agent-mesh/src/agentmesh/identity/delegation.py:311
↓ 9 callersMethodget_endorsements
Get all valid (non-expired) endorsements for an agent. Args: target_did: The agent DID to query endorsements for. end
agent-governance-python/agent-mesh/src/agentmesh/trust/endorsement.py:160
↓ 9 callersMethodget_entries_by_type
Get the most recent entries of a given event type.
agent-governance-python/agent-mesh/src/agentmesh/governance/audit.py:563
↓ 9 callersFunctionget_output_format
Determine the output format from CLI arguments.
agent-governance-python/agent-os/src/agent_os/cli/output.py:88
↓ 9 callersMethodget_rotation_proof
Return the most recent rotation proof. Raises: IdentityError: If no rotation has occurred yet.
agent-governance-python/agent-mesh/src/agentmesh/identity/rotation.py:123
↓ 9 callersMethodget_session
(self, session_id: str)
agent-governance-python/agent-hypervisor/src/hypervisor/core.py:244
↓ 9 callersMethodget_sli_snapshot
Get current SLI values for integration with SLO engine.
agent-governance-python/agent-sre/src/agent_sre/adapters/__init__.py:112
↓ 9 callersMethodget_spans
Get all Flight Recorder entries as Lightning spans. Note: walks the full entry list every call. For polling loops prefer :me
agent-governance-python/agent-lightning/src/agent_lightning_gov/emitter.py:177
↓ 9 callersMethodget_trace_logs
Retrieve all log entries for a given trace ID.
agent-governance-python/agent-os/modules/iatp/iatp/telemetry/__init__.py:134
↓ 9 callersMethodget_usage
(self, agent_id: str)
agent-governance-python/agent-os/src/agent_os/context_budget.py:248
↓ 9 callersMethodgovern_step
Evaluate Cedar policy for a pipeline step and produce a signed receipt. Args: action: The pipeline action (e.g. LoadShard, RunInf
examples/pipeline-governance/demo.py:295
↓ 9 callersFunctiongovernanceMiddleware
(policy: GovernancePolicy)
agent-governance-python/agentmesh-integrations/mastra-agentmesh/src/governance.ts:32
↓ 9 callersFunctiongovernance_filter
Create a GovernanceFunctionFilter.
agent-governance-python/agent-os/tests/test_semantic_kernel_hooks.py:51
↓ 9 callersFunctiongoverned_call
Execute a tool call through the governance layer. Returns a mock result string on success, or None if blocked.
agent-governance-python/agent-os/examples/trading-governance/demo.py:324
↓ 9 callersFunctionguard_semantic_kernel_function
Guard a duck-typed Semantic Kernel KernelFunction.
policy-engine/sdk/python/agent_control_specification/_adapters/semantic_kernel.py:23
↓ 9 callersFunctionhandleAgentRequest
( request: AgentRequest )
agent-governance-python/agentmesh-integrations/copilot-governance/src/agent.ts:129
↓ 9 callersMethodhappens_before
Return True if self causally precedes other. Clock A happens-before clock B iff every component of A is <= the corresponding componen
agent-governance-python/agent-hypervisor/src/hypervisor/session/vector_clock.py:55
↓ 9 callersFunctioninfo
(text)
agent-governance-python/agent-os/tutorials/langchain-5-minute-governance/demo.py:57
↓ 9 callersFunctionisLoopbackEndpoint
(endpoint: string)
agent-governance-typescript/agent-os-vscode/src/services/liveClient.ts:61
↓ 9 callersMethodis_allowed
Check if the permission is allowed given the context. Args: context: The evaluation context Returns:
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/policy_engine.py:174
↓ 9 callersMethodis_blocked
Check if a tool is in a block list after canonicalization. Args: tool_name: Tool name to check. blocked_tools: List o
agent-governance-python/agent-os/src/agent_os/integrations/tool_aliases.py:150
↓ 9 callersMethodlist_policies
List all loaded policy names. Returns: List of registered policy name strings.
agent-governance-python/agent-mesh/src/agentmesh/governance/policy.py:713
↓ 9 callersMethodlist_templates
List templates with optional filtering.
agent-governance-python/agent-sre/src/agent_sre/chaos/library.py:211
↓ 9 callersMethodlog
Log a message with structured context
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/lifecycle.py:2228
↓ 9 callersMethodlog
Log a query result.
agent-governance-python/agent-os/examples/sql-agent/main.py:276
↓ 9 callersFunctionmakeClient
(overrides?: Partial<MeshClientOptions>)
agent-governance-typescript/tests/mesh-client-reconnect.test.ts:70
↓ 9 callersFunctionmakeExtension
(handler, options)
policy-engine/sdk/node/test/ghcp.test.mjs:36
↓ 9 callersMethodnormalize
Normalize a raw signal into a standard ContextObject. Args: raw_signal: Raw signal data from the source
agent-governance-python/agent-os/examples/self-evaluating/src/universal_signal_bus.py:95
↓ 9 callersFunctionparse_args
Parse command line arguments.
agent-governance-python/agent-os/modules/mcp-kernel-server/src/mcp_kernel_server/cli.py:43
↓ 9 callersFunctionpercentColor
(value: number, target: number)
agent-governance-typescript/agent-os-vscode/src/webviews/sidebar/healthColors.ts:11
↓ 9 callersFunctionprint_section
Print a section header.
agent-governance-python/agent-os/examples/carbon-auditor/demo_audit.py:52
↓ 9 callersMethodprocess
Assess rogue risk before allowing tool execution.
agent-governance-python/agent-os/src/agent_os/integrations/maf_adapter.py:948
↓ 9 callersMethodpublish_prekey_bundle
Generate and publish this agent's pre-key bundle. Args: include_otk: Whether to include a one-time pre-key. Returns:
agent-governance-python/agent-mesh/src/agentmesh/encryption/bridge.py:89
↓ 9 callersMethodquery
Return rows for *name* with timestamp >= *since* (thread-safe).
agent-governance-python/agent-sre/src/agent_sre/slo/persistence.py:78
↓ 9 callersMethodreactivate
Reactivate a suspended sponsor. Raises: ValueError: If the sponsor has been permanently revoked.
agent-governance-python/agent-mesh/src/agentmesh/identity/sponsor.py:160
↓ 9 callersFunctionreadJsonFile
(path, { allowComments = false } = {})
agent-governance-antigravity-cli/lib/cli.mjs:625
↓ 9 callersMethodread_file
Read the content of a file. Args: path: Path of the file to read Returns: The f
agent-governance-python/agent-os/modules/caas/src/caas/vfs/filesystem.py:168
↓ 9 callersMethodrecord
Record a tool call and return ``True`` if it is a violation.
agent-governance-python/agent-sre/src/agent_sre/anomaly/rogue_detector.py:272
↓ 9 callersMethodrecord_exception
Record an exception.
agent-governance-python/agent-os/modules/observability/src/agent_os_observability/tracer.py:204
↓ 9 callersMethodrecord_handshake
Record a handshake with its duration and result. Args: duration_seconds: Handshake latency in seconds. result: Outcom
agent-governance-python/agent-mesh/src/agentmesh/observability/metrics.py:282
↓ 9 callersFunctionrecord_interaction
Record an interaction outcome to update trust scores. Valid outcomes: ``success``, ``failure``, ``timeout``, ``partial``. Positive outcomes r
agent-governance-python/agent-mesh/packages/mcp-trust-server/src/mcp_trust_server/server.py:329
↓ 9 callersMethodregister
Register a new sponsor. Args: sponsor: The HumanSponsor to register. Raises: ValueError: If a sponsor with t
agent-governance-python/agent-mesh/src/agentmesh/identity/sponsor.py:182
↓ 9 callersMethodregister
Register a new agent on Nexus. Args: manifest: Complete agent manifest signature: Ed25519 signature
agent-governance-python/agent-os/modules/nexus/registry.py:86
↓ 9 callersMethodregister
Register a schema for a topic. Args: topic: Topic pattern to register schema for schema: Schema spec
agent-governance-python/agent-os/modules/amb/amb_core/schema.py:190
↓ 9 callersMethodregister_agent
Register an agent with its termination callback.
agent-governance-python/agent-hypervisor/src/hypervisor/security/kill_switch.py:98
↓ 9 callersMethodregister_agent
Register a new agent with proof-of-possession.
agent-governance-python/agent-mesh/src/agentmesh/registry/app.py:178
↓ 9 callersMethodrelease_read
(self)
agent-governance-python/agent-mesh/src/agentmesh/governance/async_policy_evaluator.py:109
↓ 9 callersMethodrequires_approval
Check if an action requires human approval per policy.
agent-governance-python/agent-os/src/agent_os/escalation.py:139
↓ 9 callersMethodrevoke
Revoke a credential and notify registered callbacks. Propagation target: ≤5 seconds to all systems. Args: credential_id:
agent-governance-python/agent-mesh/src/agentmesh/identity/credentials.py:353
↓ 9 callersFunctionrunModelStream
( control: RunnableControl, request: JsonValue, execute: (request: JsonValue) => Promise<StreamInput> |
policy-engine/sdk/node/src/streaming.ts:92
↓ 9 callersMethodsearch
Search plugins by name or description substring. Args: query: Case-insensitive search string. Returns: List
agent-governance-python/agent-mesh/src/agentmesh/marketplace/registry.py:117
↓ 9 callersMethodselect_for_task
Select agents capable and trusted enough for a task. Returns agents sorted by trust score (highest first).
agent-governance-python/agentmesh-integrations/crewai-agentmesh/crewai_agentmesh/trust.py:219
← previousnext →1,401–1,500 of 32,326, ranked by callers