MCPcopy Create free account

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

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

↓ 18 callersMethodspan
Create a span context manager. Usage: with tracer.span("operation", {"key": "value"}): do_work()
agent-governance-python/agent-os/modules/observability/src/agent_os_observability/tracer.py:67
↓ 18 callersMethodsyscall
Handle a system call from user space. All agent actions MUST go through this interface. The kernel enforces policy, logs the attempt
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/kernel_space.py:329
↓ 18 callersMethodto_dict
Convert episode to dictionary format.
agent-governance-python/agent-os/modules/emk/emk/schema.py:77
↓ 18 callersMethodto_dict
(self)
agent-governance-python/agent-sre/tests/test_api.py:252
↓ 18 callersMethodtransition
Transition the saga to a new state.
agent-governance-python/agent-hypervisor/src/hypervisor/saga/state_machine.py:132
↓ 18 callersMethodverify_message
Verify an envelope's signature and replay metadata. Args: envelope: Signed message envelope to validate. Returns:
agent-governance-python/agent-os/src/agent_os/mcp_message_signer.py:180
↓ 17 callersMethodName
()
agent-governance-golang/packages/agentmesh/types.go:87
↓ 17 callersFunction_assert_blocked
(testcase: unittest.TestCase, exc: Any, point: InterventionPoint)
policy-engine/sdk/python/tests/test_real_packages.py:130
↓ 17 callersFunction_b64
(data: bytes)
agent-governance-python/agent-mesh/tests/test_registration_auth.py:15
↓ 17 callersFunction_bridge
(tmp_path: Path, **policy_kwargs: Any)
agent-governance-python/agt-policies/tests/test_bridge.py:36
↓ 17 callersFunction_make_bridge
(did: str)
agent-governance-python/agent-mesh/tests/test_encrypted_bridge.py:20
↓ 17 callersFunction_make_policy
Build a duck-typed policy object matching what the provider reads.
agent-governance-python/agent-sandbox/tests/test_azure_sandbox.py:63
↓ 17 callersFunction_make_recorder
(entries: list | None = None)
agent-governance-python/agent-lightning/tests/test_lightning_comprehensive.py:875
↓ 17 callersFunction_make_registry
Create a registry pre-populated with the given identities.
agent-governance-python/agent-mesh/tests/test_handshake_security.py:27
↓ 17 callersFunction_make_tool
Create a mock tool.
agent-governance-python/agent-os/tests/test_openai_agents_sdk_adapter.py:60
↓ 17 callersFunction_make_tool_request
Create a mock LangChain ToolCallRequest.
agent-governance-python/agent-os/tests/test_langchain_middleware.py:41
↓ 17 callersFunction_make_user
Create a mock GitHub user dict.
scripts/tests/test_contributor_dampening.py:26
↓ 17 callersMethod_should_scan_file
Check if file should be scanned based on exclusion patterns.
agent-governance-python/agent-compliance/src/agent_compliance/security/scanner.py:369
↓ 17 callersFunction_tree_end
(icon: str, colour: str, label: str, detail: str = "")
examples/openai-agents-governed/openai_agents_governance_demo.py:194
↓ 17 callersFunction_validate_db_path
Resolve and validate *raw* database path. Accepts only: - the special literal ``:memory:`` - ``file://`` URIs whose path resolves inside
agent-governance-python/agent-sre/src/agent_sre/slo/persistence.py:118
↓ 17 callersFunction_write_manifest
(tmp_path: Path, approval: str = "")
agent-governance-python/agt-policies/tests/test_runtime.py:75
↓ 17 callersMethodadd
(self, finding: Finding)
scripts/check_lockfile_integrity.py:134
↓ 17 callersMethodadd
Track *nonce* until *expires_at*.
agent-governance-python/agent-os/src/agent_os/mcp_protocols.py:36
↓ 17 callersMethodadd
(self, result: DryRunResult)
agent-governance-python/agent-os/src/agent_os/integrations/dry_run.py:41
↓ 17 callersMethodallocate
()
agent-governance-python/agent-os/tests/test_profiling.py:99
↓ 17 callersMethodcheck
Evaluate whether an agent may perform an action. Checks are applied in order: blocked list, agent status, trust threshold, then capab
agent-governance-python/agentmesh-integrations/template-agentmesh/template_agentmesh/trust.py:115
↓ 17 callersMethodcompute_drift
Compute drift between *output_data* and the baseline stored in *ctx*. On the first call the output is recorded as the baseline and ``None``
agent-governance-python/agent-os/src/agent_os/integrations/base.py:1832
↓ 17 callersMethodcompute_hash
Compute hash of this link.
agent-governance-python/agent-mesh/src/agentmesh/identity/delegation.py:134
↓ 17 callersFunctioncontrolWith
(verdictFor, approvalResolver)
policy-engine/sdk/node/test/escalation.test.mjs:37
↓ 17 callersFunctioncreate_control_plane
Create an enhanced agent control plane. This is the recommended way to create a control plane instance. Args: health_ch
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/lifecycle.py:3084
↓ 17 callersMethodcreate_saga
Create a new saga for a session.
agent-governance-python/agent-hypervisor/src/hypervisor/saga/orchestrator.py:51
↓ 17 callersMethoddetail
* Construct a leaf detail item.
agent-governance-typescript/agent-os-vscode/src/views/sloTypes.ts:124
↓ 17 callersMethodevaluateWithBackends
( action: string, context: Record<string, unknown> = {}, )
agent-governance-typescript/src/policy.ts:552
↓ 17 callersMethodgenerate_response
Generate a polymorphic response from agent output. Args: data: The response data from the agent inpu
agent-governance-python/agent-os/examples/self-evaluating/src/polymorphic_output.py:211
↓ 17 callersMethodget_session_status
Return the current session lifecycle state.
agent-governance-python/agent-sandbox/src/agent_sandbox/sandbox_provider.py:183
↓ 17 callersMethodget_tier
Get tier from score.
agent-governance-python/agent-os/modules/nexus/reputation.py:51
↓ 17 callersMethodhandle_tool_call
Handle an MCP tool call.
agent-governance-python/agent-sre/src/agent_sre/mcp/server.py:125
↓ 17 callersMethodingest
Ingest a metric data point and check for anomalies. Returns an ``AnomalyAlert`` if an anomaly is detected, ``None`` otherwise.
agent-governance-python/agent-sre/src/agent_sre/anomaly/detector.py:198
↓ 17 callersMethodload
Load persisted records from disk. Idempotent.
agent-governance-typescript/src/credential-vault.ts:228
↓ 17 callersFunctionloadPolicy
({ defaultPolicyPath = new URL("../config/default-policy.json", import.meta.url), policyPath = process.env
agent-governance-opencode/lib/policy.mjs:60
↓ 17 callersMethodlog
Append an entry to the audit chain.
agent-governance-python/agentmesh-integrations/flowise-agentmesh/src/flowise_agentmesh/audit_node.py:60
↓ 17 callersMethodlog
(self, entry: AuditEntry)
agent-governance-python/agent-os/src/agent_os/audit_logger.py:139
↓ 17 callersFunctionmakeControl
(handler)
policy-engine/sdk/node/test/adapters.test.mjs:51
↓ 17 callersFunctionmake_agent
(name: str = "test-agent")
agent-governance-python/agentmesh-integrations/openai-agents-trust/tests/test_integration.py:26
↓ 17 callersMethodnarrow
Create a narrower scope for sub-delegation. If trust_ceiling is provided in overrides, it is clamped to not exceed the parent's ceili
agent-governance-python/agentmesh-integrations/adk-agentmesh/src/adk_agentmesh/governance.py:23
↓ 17 callersMethodon_tool_start
Called before a tool is invoked. Governance actions performed: 1. **Tool allow/block** — checks the tool name against ``_
agent-governance-python/agent-os/src/agent_os/integrations/openai_agents_sdk.py:808
↓ 17 callersMethodprocess
Mock business logic — no LLM, deterministic canned responses.
examples/agent-mesh/multi-agent-chat/main.py:80
↓ 17 callersMethodprocess_event
Process an Agent Mesh event and return a Signal if relevant.
agent-governance-python/agent-sre/src/agent_sre/integrations/agent_mesh/bridge.py:92
↓ 17 callersMethodrecord
Record a causal episode. Inserts the episode row and any causal edges (caused_by → this, this → each effect). Returns the e
agent-governance-python/agent-os/modules/emk/emk/causal.py:159
↓ 17 callersMethodrecord_action
Feed an observed action into all analyzers.
agent-governance-python/agent-sre/src/agent_sre/anomaly/rogue_detector.py:332
↓ 17 callersMethodregister_capability_profile
Declare the set of tools an agent is expected to use.
agent-governance-python/agent-sre/src/agent_sre/anomaly/rogue_detector.py:345
↓ 17 callersMethodregister_check
Register a named health check function (thread-safe).
agent-governance-python/agent-os/src/agent_os/integrations/health.py:85
↓ 17 callersMethodrender
Render a polymorphic response as a UI component. Args: response: The polymorphic response from the agent
agent-governance-python/agent-os/examples/self-evaluating/src/generative_ui_engine.py:410
↓ 17 callersMethodrender
Render all metrics in Prometheus text exposition format.
agent-governance-python/agent-sre/src/agent_sre/integrations/prometheus/exporter.py:82
↓ 17 callersMethodresolve
Resolve effective authority for an agent action. Args: request: Complete context including delegation chain, trus
agent-governance-python/agent-mesh/src/agentmesh/governance/authority.py:153
↓ 17 callersMethodresolve
(self, request: AuthorityRequest)
agent-governance-python/agent-mesh/tests/test_authority.py:146
↓ 17 callersMethodrespond
Respond to a trust handshake challenge with an Ed25519 signature. The response payload is signed with the agent's Ed25519 private key.
agent-governance-python/agent-mesh/src/agentmesh/trust/handshake.py:382
↓ 17 callersMethodrun
( self, eval_input: EvalInput, suite: EvalSuite | None = None, )
agent-governance-python/agent-sre/src/agent_sre/evals/__init__.py:375
↓ 17 callersMethodscan_response
Scan tool output and return a structured safety result. Args: response_content: Raw tool output to inspect. tool_name
agent-governance-python/agent-os/src/agent_os/mcp_response_scanner.py:85
↓ 17 callersMethodsearch
Search for similar vectors. Override with actual vector search implementation.
agent-governance-python/agent-os/modules/control-plane/src/agent_control_plane/vfs.py:637
↓ 17 callersMethodstep
Execute one step in the environment. Args: action: Agent's action Returns: Tuple of (next_state, re
agent-governance-python/agent-lightning/src/agent_lightning_gov/environment.py:246
↓ 17 callersMethodverify
Verify a cross-org token. Returns ExternalIdentity on success.
agent-governance-python/agent-mesh/src/agentmesh/identity/external_jwks.py:139
↓ 17 callersMethodwrap
Wrap an OpenAI Agent with a governance proxy. .. deprecated:: Use :meth:`as_hooks` instead. The ``wrap()`` approach creates
agent-governance-python/agent-os/src/agent_os/integrations/openai_agents_sdk.py:304
↓ 17 callersMethodwrite
Serialise *entry* to JSONL and write it to the output stream. The output stream is flushed immediately after the write so that contai
agent-governance-python/agent-mesh/src/agentmesh/governance/audit_backends.py:474
↓ 16 callersMethodActivate
Activate marks the given scope blocked and records the event in registry history.
agent-governance-golang/packages/agentmesh/kill_switch.go:201
↓ 16 callersFunctionNewClient
NewClient creates a fully initialised AgentMeshClient.
agent-governance-golang/packages/agentmesh/client.go:14
↓ 16 callersFunction_connect_frame
Build a valid (signed) ``connect`` frame for *label*.
agent-governance-python/agent-mesh/tests/test_relay.py:43
↓ 16 callersFunction_extract_k8s_facets
Parse a Kubernetes API request into policy-evaluable fields. Reads k8s_ctx["method"] and k8s_ctx["path"] and returns verb, resource, namespac
agent-governance-python/agent-mesh/src/agentmesh/governance/protocol_facets.py:219
↓ 16 callersFunction_from_tool_result
(reason: str | None)
agent-governance-python/agent-os/tests/test_adapter_str_no_leak.py:70
↓ 16 callersMethod_handle_violation
Handle a policy violation from the kernel. When an active ``step()`` has bound its per-rollout violation list to the current asyncio
agent-governance-python/agent-lightning/src/agent_lightning_gov/runner.py:189
↓ 16 callersFunction_hex
(payload: bytes)
scripts/tests/test_check_lockfile_integrity.py:29
↓ 16 callersFunction_make_credential
(ttl: int = 3600, capabilities: list[str] | None = None)
agent-governance-python/agent-mesh/tests/test_credential_lifecycle.py:46
↓ 16 callersMethod_make_crew
(self)
agent-governance-python/agentmesh-integrations/crewai-agentmesh/tests/test_crewai_trust.py:147
↓ 16 callersFunction_make_identity
Create an agent identity with a unique name.
agent-governance-python/agent-mesh/tests/test_handshake_e2e.py:23
↓ 16 callersFunction_make_incident
( signal_type: SignalType = SignalType.SLO_BREACH, severity: IncidentSeverity = IncidentSeverity.P2, )
agent-governance-python/agent-sre/tests/test_runbooks.py:30
↓ 16 callersMethod_make_plugin
(self, **kwargs)
agent-governance-python/agent-os/tests/test_google_adk_adapter.py:930
↓ 16 callersFunction_make_policy
(name: str, rules: list[dict], **kwargs)
agent-governance-python/agent-os/tests/test_folder_governance.py:31
↓ 16 callersFunction_make_rollout
Create a GovernedRollout for testing.
agent-governance-python/agent-lightning/tests/test_spec_lightning_conformance.py:80
↓ 16 callersFunction_print
Print with optional rich styling; falls back to plain print.
agent-governance-python/agent-compliance/src/agent_compliance/cli/agt.py:47
↓ 16 callersMethod_raise_violation
Create, record, and surface a PolicyViolationError. Appends the error to the violations list and calls on_violation. Args:
agent-governance-python/agent-os/src/agent_os/integrations/google_adk_adapter.py:595
↓ 16 callersMethod_scope_chain_failure
Return sanitized error for callers and log detailed reason.
agent-governance-python/agentmesh-integrations/langchain-agentmesh/langchain_agentmesh/trust.py:341
↓ 16 callersFunction_sign_jwt
(private_key: Ed25519PrivateKey, payload: dict, kid: str = KEY_ID)
agent-governance-python/agent-mesh/tests/test_external_jwks.py:57
↓ 16 callersFunction_snapshot
()
agent-governance-python/agt-policies/tests/test_runtime.py:81
↓ 16 callersFunction_write
(p: Path, text: str)
scripts/tests/test_docs_check_frontmatter.py:16
↓ 16 callersFunction_write_policy
(path: Path, data: dict)
agent-governance-python/agent-os/tests/test_folder_governance.py:25
↓ 16 callersMethodadd
(self, role: str, content: str)
agent-governance-python/agent-os/examples/governed-chatbot/chatbot.py:105
↓ 16 callersMethodadd_sink
Register a sink. Returns self for chaining.
agent-governance-python/agent-os/src/agent_os/event_sink.py:223
↓ 16 callersMethodas_capability
Create a ``GovernanceCapability`` for PydanticAI's native hook system. Returns a capability that can be passed to the ``Agent`` constructor's
agent-governance-python/agent-os/src/agent_os/integrations/pydantic_ai_adapter.py:224
↓ 16 callersMethodbefore_tool_call
Tool-level governance gate. Raises: PolicyViolationError: If the tool call is blocked by policy.
agent-governance-python/agent-os/src/agent_os/integrations/langgraph_adapter.py:352
↓ 16 callersMethodcall
( self, messages, tools=None, callbacks=None,
policy-engine/sdk/python/tests/test_real_packages.py:539
↓ 16 callersMethodcreate
(self, **kwargs)
policy-engine/sdk/python/tests/test_adapters.py:400
↓ 16 callersMethodcreate
Create a new task request.
agent-governance-python/agentmesh-integrations/a2a-protocol/a2a_agentmesh/task.py:106
↓ 16 callersFunctioncreateTiming
()
agent-governance-typescript/agent-os-vscode/src/webviews/sidebar/panelLatencyTracker.ts:21
↓ 16 callersMethodcreate_snapshot
Snapshot current state. This is **not** a ``copy.deepcopy`` — it's a one-level copy that relies on the value types being either immut
agent-governance-python/agent-hypervisor/src/hypervisor/session/sso.py:111
↓ 16 callersMethoddelete
Remove the episode with the given ID.
agent-governance-python/agent-os/modules/emk/emk/store.py:158
↓ 16 callersFunctionescapeHtml
(value: unknown)
agent-governance-typescript/agent-os-vscode/src/utils/escapeHtml.ts:11
↓ 16 callersMethodevaluate
Evaluate all multi-agent policies for a proposed action. This is the main entry point, called before an action is executed to check w
agent-governance-python/agent-mesh/src/agentmesh/governance/multi_agent_policy.py:284
↓ 16 callersMethodevaluate
Evaluate an agent against a certification tier. Args: tier: The certification tier to evaluate against. evidence: Dic
agent-governance-python/agent-sre/src/agent_sre/certification/__init__.py:269
↓ 16 callersFunctionformat_error
Return a colorized error string with an optional suggestion and docs link.
agent-governance-python/agent-os/src/agent_os/cli/output.py:124
↓ 16 callersMethodfrom_yaml
Load a policy from a YAML string. Validates the ``apiVersion`` field against supported versions and emits deprecation warnings for ol
agent-governance-python/agent-mesh/src/agentmesh/governance/policy.py:245
← previousnext →601–700 of 32,326, ranked by callers