AI Slop Code RIsk Monitor

microsoft/agent-framework

A framework for building, orchestrating and deploying AI agents and multi-agent workflows with support for Python and .NET.

37.7 High pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for microsoft/agent-framework, a Python project with 14,051 GitHub stars. SynthScan examined 1,171,818 lines of code across 4794 source files, recording 23085 pattern matches distributed across 28 syntactic categories. The legacy adjusted pattern signal is 37.7 (High pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

37.7
Adjusted Signal
37.7
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
14.1K
Stars
Python
Language
1.2M
Lines of Code
4.8K
Files
23.1K
Pattern Hits
2026-10-12
Scan Date
0.63
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 50.0/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 17221 finding(s).

Hallucinated Dependency & Supply Chain Risk 62.5/100 · HIGH

Are imports declared and package/API names verified? 3893 finding(s).

Agent Over-Engineering Ratio 48.0/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 15683 finding(s).

PR Review Velocity Impact 88.8/100 · CRITICAL

Which changes need focused human review? 23085 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 2489HIGH 543MEDIUM 1586LOW 18467

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 23085 distinct pattern matches across 28 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hallucination Indicators2489 hits · 21522 pts
SeverityFileLineSnippetContext
CRITICAL…nts/responses/foundry_memory/provision_memory_store.py42from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…d-agents/responses/azure_search_rag/provision_index.py25from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…/providers/foundry/foundry_chat_client_with_toolbox.py47 from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…s/build_your_own_claw/claw_step02_working_with_data.py192 from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…ive/invoke_foundry_toolbox_mcp/toolbox_provisioning.py26 from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…ing/agent_framework_foundry_hosting/_workflow_state.py311 fresh = self.run.workflow._runner.state.export_state() # pyright: ignore[reportPrivateUsage]CODE
CRITICAL…ages/foundry/tests/foundry/test_foundry_chat_client.py40from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…n/packages/foundry/tests/foundry/test_foundry_agent.py41from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…ges/foundry/tests/foundry/test_agui_provider_matrix.py66 conversation = await self._agent.client.client.conversations.create()CODE
CRITICAL…ckages/foundry/agent_framework_foundry/_chat_client.py413 from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…hon/packages/foundry/agent_framework_foundry/_agent.py902 from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICALpython/packages/core/tests/core/test_mcp.py6927 meta = server.session.call_tool.call_args.kwargs.get("meta") # type: ignore[union-attr] # ty: ignore[unresolveCODE
CRITICAL…zure-ai-search/tests/test_aisearch_context_provider.py1321 from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…on/packages/azure-ai-search/tests/test_vector_store.py35from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundErrorCODE
CRITICAL…h/agent_framework_azure_ai_search/_context_provider.py34from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…earch/agent_framework_azure_ai_search/_vector_store.py37from azure.core.exceptions import ResourceExistsError, ResourceNotFoundErrorCODE
CRITICAL…kages/openai/tests/openai/test_agui_provider_matrix.py52 conversation = await self._agent.client.client.conversations.create()CODE
CRITICAL…AI.CosmosNoSql.UnitTests/CosmosCheckpointStoreTests.cs53 options.TypeInfoResolver = new System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver();CODE
CRITICAL…ts.AI.Foundry.Hosting.UnitTests/InputConverterTests.cs1287 new MessageContent[] { new Azure.AI.AgentServer.Responses.Models.TextContent("plain text") });CODE
CRITICAL…ts.AI.Foundry.Hosting.UnitTests/InputConverterTests.cs1406 content: new MessageContent[] { new Azure.AI.AgentServer.Responses.Models.TextContent("sdk text") },CODE
CRITICAL…ndry.Hosting.UnitTests/FoundryAIToolExtensionsTests.cs12 var record = Azure.AI.Projects.Agents.ProjectsAgentsModelFactory.ToolboxRecord(CODE
CRITICAL…ndry.Hosting.UnitTests/FoundryAIToolExtensionsTests.cs28 var record = Azure.AI.Projects.Agents.ProjectsAgentsModelFactory.ToolboxRecord(CODE
CRITICAL…ndry.Hosting.UnitTests/FoundryAIToolExtensionsTests.cs51 var version = Azure.AI.Projects.Agents.ProjectsAgentsModelFactory.ToolboxVersion(CODE
CRITICAL…/Microsoft.Agents.AI.Purview/ScopedContentProcessor.cs505 string[] locationSegments = pcRequest.ContentToProcess.ProtectedAppMetadata.ApplicationLocation.DataType.Split('CODE
CRITICAL⚡…ive.Mcp/PublicAPI/netstandard2.0/PublicAPI.Shipped.txt3Microsoft.Agents.AI.Workflows.Declarative.Mcp.DefaultMcpToolHandler.DefaultMcpToolHandler(System.Func<string!, System.ThCODE
CRITICAL⚡…ive.Mcp/PublicAPI/netstandard2.0/PublicAPI.Shipped.txt4Microsoft.Agents.AI.Workflows.Declarative.Mcp.DefaultMcpToolHandler.DisposeAsync() -> System.Threading.Tasks.ValueTaskCODE
CRITICAL⚡…ive.Mcp/PublicAPI/netstandard2.0/PublicAPI.Shipped.txt5Microsoft.Agents.AI.Workflows.Declarative.Mcp.DefaultMcpToolHandler.InvokeToolAsync(string! serverUrl, string? serverLabCODE
CRITICAL⚡…Declarative.Mcp/PublicAPI/net8.0/PublicAPI.Shipped.txt3Microsoft.Agents.AI.Workflows.Declarative.Mcp.DefaultMcpToolHandler.DefaultMcpToolHandler(System.Func<string!, System.ThCODE
CRITICAL⚡…Declarative.Mcp/PublicAPI/net8.0/PublicAPI.Shipped.txt4Microsoft.Agents.AI.Workflows.Declarative.Mcp.DefaultMcpToolHandler.DisposeAsync() -> System.Threading.Tasks.ValueTaskCODE
CRITICAL⚡…Declarative.Mcp/PublicAPI/net8.0/PublicAPI.Shipped.txt5Microsoft.Agents.AI.Workflows.Declarative.Mcp.DefaultMcpToolHandler.InvokeToolAsync(string! serverUrl, string? serverLabCODE
CRITICAL⚡…Declarative.Mcp/PublicAPI/net9.0/PublicAPI.Shipped.txt3Microsoft.Agents.AI.Workflows.Declarative.Mcp.DefaultMcpToolHandler.DefaultMcpToolHandler(System.Func<string!, System.ThCODE
CRITICAL⚡…Declarative.Mcp/PublicAPI/net9.0/PublicAPI.Shipped.txt4Microsoft.Agents.AI.Workflows.Declarative.Mcp.DefaultMcpToolHandler.DisposeAsync() -> System.Threading.Tasks.ValueTaskCODE
CRITICAL⚡…Declarative.Mcp/PublicAPI/net9.0/PublicAPI.Shipped.txt5Microsoft.Agents.AI.Workflows.Declarative.Mcp.DefaultMcpToolHandler.InvokeToolAsync(string! serverUrl, string? serverLabCODE
CRITICAL⚡…Declarative.Mcp/PublicAPI/net472/PublicAPI.Shipped.txt3Microsoft.Agents.AI.Workflows.Declarative.Mcp.DefaultMcpToolHandler.DefaultMcpToolHandler(System.Func<string!, System.ThCODE
CRITICAL⚡…Declarative.Mcp/PublicAPI/net472/PublicAPI.Shipped.txt4Microsoft.Agents.AI.Workflows.Declarative.Mcp.DefaultMcpToolHandler.DisposeAsync() -> System.Threading.Tasks.ValueTaskCODE
CRITICAL⚡…Declarative.Mcp/PublicAPI/net472/PublicAPI.Shipped.txt5Microsoft.Agents.AI.Workflows.Declarative.Mcp.DefaultMcpToolHandler.InvokeToolAsync(string! serverUrl, string? serverLabCODE
CRITICAL⚡…eclarative.Mcp/PublicAPI/net10.0/PublicAPI.Shipped.txt3Microsoft.Agents.AI.Workflows.Declarative.Mcp.DefaultMcpToolHandler.DefaultMcpToolHandler(System.Func<string!, System.ThCODE
CRITICAL⚡…eclarative.Mcp/PublicAPI/net10.0/PublicAPI.Shipped.txt4Microsoft.Agents.AI.Workflows.Declarative.Mcp.DefaultMcpToolHandler.DisposeAsync() -> System.Threading.Tasks.ValueTaskCODE
CRITICAL⚡…eclarative.Mcp/PublicAPI/net10.0/PublicAPI.Shipped.txt5Microsoft.Agents.AI.Workflows.Declarative.Mcp.DefaultMcpToolHandler.InvokeToolAsync(string! serverUrl, string? serverLabCODE
CRITICAL…actions/PublicAPI/netstandard2.0/PublicAPI.Shipped.txt39Microsoft.Agents.AI.AIContextProvider.InvokedContext.InvokedContext(Microsoft.Agents.AI.AIAgent! agent, Microsoft.AgentsCODE
CRITICAL…actions/PublicAPI/netstandard2.0/PublicAPI.Shipped.txt160Microsoft.Agents.AI.ChatHistoryProvider.InvokedContext.InvokedContext(Microsoft.Agents.AI.AIAgent! agent, Microsoft.AgenCODE
CRITICAL…actions/PublicAPI/netstandard2.0/PublicAPI.Shipped.txt183Microsoft.Agents.AI.InMemoryChatHistoryProvider.State.State() -> voidCODE
CRITICAL⚡…actions/PublicAPI/netstandard2.0/PublicAPI.Shipped.txt218[MAAI001]Microsoft.Agents.AI.AIContextProvider.InvokedContext.InvokedContext(Microsoft.Agents.AI.AIAgent! agent, MicrosoCODE
CRITICAL⚡…actions/PublicAPI/netstandard2.0/PublicAPI.Shipped.txt219[MAAI001]Microsoft.Agents.AI.AIContextProvider.InvokingContext.InvokingContext(Microsoft.Agents.AI.AIAgent! agent, MicroCODE
CRITICAL⚡…actions/PublicAPI/netstandard2.0/PublicAPI.Shipped.txt220[MAAI001]Microsoft.Agents.AI.ChatHistoryProvider.InvokedContext.InvokedContext(Microsoft.Agents.AI.AIAgent! agent, MicroCODE
CRITICAL⚡…actions/PublicAPI/netstandard2.0/PublicAPI.Shipped.txt221[MAAI001]Microsoft.Agents.AI.ChatHistoryProvider.InvokingContext.InvokingContext(Microsoft.Agents.AI.AIAgent! agent, MicCODE
CRITICAL⚡…actions/PublicAPI/netstandard2.0/PublicAPI.Shipped.txt223[MAAI001]Microsoft.Agents.AI.MessageAIContextProvider.InvokingContext.InvokingContext(Microsoft.Agents.AI.AIAgent! agentCODE
CRITICAL…AI.Abstractions/PublicAPI/net8.0/PublicAPI.Shipped.txt39Microsoft.Agents.AI.AIContextProvider.InvokedContext.InvokedContext(Microsoft.Agents.AI.AIAgent! agent, Microsoft.AgentsCODE
CRITICAL…AI.Abstractions/PublicAPI/net8.0/PublicAPI.Shipped.txt160Microsoft.Agents.AI.ChatHistoryProvider.InvokedContext.InvokedContext(Microsoft.Agents.AI.AIAgent! agent, Microsoft.AgenCODE
CRITICAL…AI.Abstractions/PublicAPI/net8.0/PublicAPI.Shipped.txt183Microsoft.Agents.AI.InMemoryChatHistoryProvider.State.State() -> voidCODE
CRITICAL⚡…AI.Abstractions/PublicAPI/net8.0/PublicAPI.Shipped.txt218[MAAI001]Microsoft.Agents.AI.AIContextProvider.InvokedContext.InvokedContext(Microsoft.Agents.AI.AIAgent! agent, MicrosoCODE
CRITICAL⚡…AI.Abstractions/PublicAPI/net8.0/PublicAPI.Shipped.txt219[MAAI001]Microsoft.Agents.AI.AIContextProvider.InvokingContext.InvokingContext(Microsoft.Agents.AI.AIAgent! agent, MicroCODE
CRITICAL⚡…AI.Abstractions/PublicAPI/net8.0/PublicAPI.Shipped.txt220[MAAI001]Microsoft.Agents.AI.ChatHistoryProvider.InvokedContext.InvokedContext(Microsoft.Agents.AI.AIAgent! agent, MicroCODE
CRITICAL⚡…AI.Abstractions/PublicAPI/net8.0/PublicAPI.Shipped.txt221[MAAI001]Microsoft.Agents.AI.ChatHistoryProvider.InvokingContext.InvokingContext(Microsoft.Agents.AI.AIAgent! agent, MicCODE
CRITICAL⚡…AI.Abstractions/PublicAPI/net8.0/PublicAPI.Shipped.txt223[MAAI001]Microsoft.Agents.AI.MessageAIContextProvider.InvokingContext.InvokingContext(Microsoft.Agents.AI.AIAgent! agentCODE
CRITICAL…AI.Abstractions/PublicAPI/net9.0/PublicAPI.Shipped.txt39Microsoft.Agents.AI.AIContextProvider.InvokedContext.InvokedContext(Microsoft.Agents.AI.AIAgent! agent, Microsoft.AgentsCODE
CRITICAL…AI.Abstractions/PublicAPI/net9.0/PublicAPI.Shipped.txt160Microsoft.Agents.AI.ChatHistoryProvider.InvokedContext.InvokedContext(Microsoft.Agents.AI.AIAgent! agent, Microsoft.AgenCODE
CRITICAL…AI.Abstractions/PublicAPI/net9.0/PublicAPI.Shipped.txt183Microsoft.Agents.AI.InMemoryChatHistoryProvider.State.State() -> voidCODE
CRITICAL⚡…AI.Abstractions/PublicAPI/net9.0/PublicAPI.Shipped.txt218[MAAI001]Microsoft.Agents.AI.AIContextProvider.InvokedContext.InvokedContext(Microsoft.Agents.AI.AIAgent! agent, MicrosoCODE
CRITICAL⚡…AI.Abstractions/PublicAPI/net9.0/PublicAPI.Shipped.txt219[MAAI001]Microsoft.Agents.AI.AIContextProvider.InvokingContext.InvokingContext(Microsoft.Agents.AI.AIAgent! agent, MicroCODE
2429 more matches not shown…
Hyper-Verbose Identifiers13495 hits · 10115 pts
SeverityFileLineSnippetContext
LOW…ts/samples/end_to_end/test_chatkit_attachment_store.py19def _load_attachment_store_module() -> ModuleType:CODE
LOW…ts/samples/end_to_end/test_chatkit_attachment_store.py48def test_get_file_path_returns_direct_child(tmp_path: Path) -> None:CODE
LOW…ts/samples/end_to_end/test_chatkit_attachment_store.py68def test_get_file_path_rejects_non_filename_ids(tmp_path: Path, attachment_id: str) -> None:CODE
LOW…ts/samples/end_to_end/test_chatkit_attachment_store.py75async def test_attachment_routes_return_bad_request_for_invalid_id(chatkit_app_module: ModuleType) -> None:CODE
LOW⚡python/tests/samples/hosting/test_toolbox_endpoint.py60 def test_explicit_endpoint_returned_as_is(self, resolve_endpoint, monkeypatch: pytest.MonkeyPatch):CODE
LOW⚡python/tests/samples/hosting/test_toolbox_endpoint.py67 def test_empty_string_raises_value_error(self, resolve_endpoint, monkeypatch: pytest.MonkeyPatch):CODE
LOW⚡python/tests/samples/hosting/test_toolbox_endpoint.py73 def test_fallback_constructs_url_from_project_vars(self, resolve_endpoint, monkeypatch: pytest.MonkeyPatch):CODE
LOW⚡python/tests/samples/hosting/test_toolbox_endpoint.py82 def test_fallback_strips_trailing_slash_from_project_endpoint(CODE
LOWpython/tests/samples/hosting/test_toolbox_endpoint.py93 def test_neither_variable_group_set_raises_value_error(self, resolve_endpoint, monkeypatch: pytest.MonkeyPatch):CODE
LOW…-migration/orchestrations/01_round_robin_group_chat.py102async def run_agent_framework_with_cycle() -> None:CODE
LOW…c-kernel-migration/processes/fan_out_fan_in_process.py49async def _start_local_kernel_process(CODE
LOW…c-kernel-migration/processes/fan_out_fan_in_process.py136async def run_semantic_kernel_process_example() -> None:CODE
LOW…c-kernel-migration/processes/fan_out_fan_in_process.py232async def run_agent_framework_workflow_example() -> str | None:CODE
LOW…/semantic-kernel-migration/processes/nested_process.py134async def run_semantic_kernel_nested_process() -> None:CODE
LOW…/semantic-kernel-migration/processes/nested_process.py253async def run_agent_framework_nested_workflow(initial_message: str) -> Sequence[str]:CODE
LOW…es/semantic-kernel-migration/orchestrations/handoff.py75def build_semantic_kernel_agents() -> tuple[list[SKAgent], OrchestrationHandoffs]:CODE
LOW…es/semantic-kernel-migration/orchestrations/handoff.py161async def run_semantic_kernel_example(initial_task: str, scripted_responses: Sequence[str]) -> str:CODE
LOW⚡…es/semantic-kernel-migration/orchestrations/handoff.py233def _collect_handoff_requests(events: list[WorkflowEvent]) -> list[WorkflowEvent]:CODE
LOW⚡…es/semantic-kernel-migration/orchestrations/handoff.py241def _extract_final_conversation(events: list[WorkflowEvent]) -> list[Message]:CODE
LOW⚡…es/semantic-kernel-migration/orchestrations/handoff.py248async def run_agent_framework_example(initial_task: str, scripted_responses: Sequence[str]) -> str:CODE
LOW…semantic-kernel-migration/orchestrations/sequential.py43def build_semantic_kernel_agents() -> list[SKAgent]:CODE
LOW…semantic-kernel-migration/orchestrations/sequential.py61async def sk_agent_response_callback(CODE
LOW…semantic-kernel-migration/orchestrations/sequential.py81async def run_agent_framework_example(prompt: str) -> list[Message]:CODE
LOW…semantic-kernel-migration/orchestrations/sequential.py106async def run_semantic_kernel_example(prompt: str) -> str:CODE
LOW…semantic-kernel-migration/orchestrations/group_chat.py60def build_semantic_kernel_agents() -> list[ChatCompletionAgent]:CODE
LOW…semantic-kernel-migration/orchestrations/group_chat.py118 async def should_request_user_input(self, chat_history: ChatHistory) -> BooleanResult:CODE
LOW…semantic-kernel-migration/orchestrations/group_chat.py188async def sk_agent_response_callback(message: ChatMessageContent | Sequence[ChatMessageContent]) -> None:CODE
LOW…semantic-kernel-migration/orchestrations/group_chat.py200async def run_semantic_kernel_example(task: str) -> str:CODE
LOW…semantic-kernel-migration/orchestrations/group_chat.py230async def run_agent_framework_example(task: str) -> str:CODE
LOW…ic-kernel-migration/orchestrations/concurrent_basic.py42def build_semantic_kernel_agents() -> list[ChatCompletionAgent]:CODE
LOW…ic-kernel-migration/orchestrations/concurrent_basic.py60async def run_semantic_kernel_example(prompt: str) -> Sequence[ChatMessageContent]:CODE
LOW…ic-kernel-migration/orchestrations/concurrent_basic.py78def _print_semantic_kernel_outputs(outputs: Sequence[ChatMessageContent]) -> None:CODE
LOW…ic-kernel-migration/orchestrations/concurrent_basic.py94async def run_agent_framework_example(prompt: str) -> Sequence[list[Message]]:CODE
LOW…ic-kernel-migration/orchestrations/concurrent_basic.py119def _print_agent_framework_outputs(conversations: Sequence[Sequence[Message]]) -> None:CODE
LOW…s/semantic-kernel-migration/orchestrations/magentic.py53async def build_semantic_kernel_agents() -> list[ChatCompletionAgent | OpenAIAssistantAgent]:CODE
LOW…s/semantic-kernel-migration/orchestrations/magentic.py83def sk_agent_response_callback(CODE
LOW…s/semantic-kernel-migration/orchestrations/magentic.py98async def run_semantic_kernel_example(prompt: str) -> Sequence[ChatMessageContent]:CODE
LOW…s/semantic-kernel-migration/orchestrations/magentic.py121def _print_semantic_kernel_outputs(outputs: Sequence[ChatMessageContent]) -> None:CODE
LOW…s/semantic-kernel-migration/orchestrations/magentic.py137async def run_agent_framework_example(prompt: str) -> str | None:CODE
LOW…s/semantic-kernel-migration/orchestrations/magentic.py194def _print_agent_framework_output(result: str | None) -> None:CODE
LOWpython/samples/04-hosting/a2a/README.md109def resolve_tenant_user_scope(context):CODE
LOWpython/samples/04-hosting/a2a/invoice_data.py65def _random_date_within_last_two_months() -> datetime:CODE
LOW…/foundry-hosted-agents/invocations/break_glass/main.py43def get_session_partition_key() -> str | tuple[str, str]:CODE
LOW…ing/foundry-hosted-agents/invocations/telegram/main.py204async def execute_telegram_operation(runtime: Runtime, operation: TelegramOperation) -> dict[str, Any]:CODE
LOW…ing/foundry-hosted-agents/invocations/telegram/main.py268def _normalize_run_media_type(messages: AgentRunInputs, source_media_type: str, model_media_type: str) -> None:CODE
LOW…ents/invocations/telegram/tests/test_infrastructure.py27def test_dependencies_use_sample_local_pyproject() -> None:CODE
LOW⚡…ents/invocations/telegram/tests/test_infrastructure.py41def test_sensitive_telemetry_is_configurable_for_hosted_agent() -> None:CODE
LOW⚡…ents/invocations/telegram/tests/test_infrastructure.py50def test_agent_instructions_are_included_in_deployment() -> None:CODE
LOW⚡…ents/invocations/telegram/tests/test_infrastructure.py58def test_apim_policy_preserves_update_and_injects_channel() -> None:CODE
LOW…ents/invocations/telegram/tests/test_infrastructure.py86def test_cosmos_partition_key_is_session_id() -> None:CODE
LOW…ents/invocations/telegram/tests/test_infrastructure.py93def test_deployment_health_check_rejects_direct_invocation_and_is_subscription_scoped() -> None:CODE
LOW…ents/invocations/telegram/tests/test_infrastructure.py108def test_deployment_and_removal_require_sample_owned_resource_group() -> None:CODE
LOW…ents/invocations/telegram/tests/test_infrastructure.py130def test_remove_script_unregisters_webhook_before_deleting_resource_group() -> None:CODE
LOW…-hosted-agents/invocations/telegram/tests/test_main.py59def test_sensitive_telemetry_is_enabled_and_dependency_logging_is_suppressed() -> None:CODE
LOW…-hosted-agents/invocations/telegram/tests/test_main.py65async def test_runtime_configures_azure_monitor_with_sensitive_data(monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOW…-hosted-agents/invocations/telegram/tests/test_main.py94async def test_invoke_rejects_unauthenticated_ingress_before_dispatch(CODE
LOW…-hosted-agents/invocations/telegram/tests/test_main.py120async def test_invoke_dispatches_authenticated_channel(monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOW…-hosted-agents/invocations/telegram/tests/test_main.py144async def test_dispatches_telegram_without_channel_field(monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOW…-hosted-agents/invocations/telegram/tests/test_main.py166async def test_rejects_missing_or_unsupported_channel(payload: dict[str, Any], message: str) -> None:CODE
LOW…-hosted-agents/invocations/telegram/tests/test_main.py171async def test_new_clears_durable_history(monkeypatch: pytest.MonkeyPatch) -> None:CODE
13435 more matches not shown…
Decorative Section Separators950 hits · 3088 pts
SeverityFileLineSnippetContext
MEDIUM⚡python/tests/samples/hosting/test_toolbox_endpoint.py16# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡python/tests/samples/hosting/test_toolbox_endpoint.py19# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡python/tests/samples/hosting/test_toolbox_endpoint.py28# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡python/tests/samples/hosting/test_toolbox_endpoint.py30# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡python/tests/samples/hosting/test_toolbox_endpoint.py49# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡python/tests/samples/hosting/test_toolbox_endpoint.py51# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/samples/04-hosting/a2a/agent_definitions.py16# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/samples/04-hosting/a2a/agent_definitions.py18# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/samples/04-hosting/a2a/agent_definitions.py47# ---------------------------------------------------------------------------STRING
MEDIUMpython/samples/04-hosting/a2a/agent_definitions.py49# ---------------------------------------------------------------------------STRING
MEDIUMpython/samples/04-hosting/a2a/agent_definitions.py80# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/samples/04-hosting/a2a/agent_definitions.py82# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/samples/04-hosting/a2a/agent_definitions.py153# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/samples/04-hosting/a2a/agent_definitions.py155# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡python/samples/02-agents/auto_retry.py65# =============================================================================COMMENT
MEDIUM⚡python/samples/02-agents/auto_retry.py67# =============================================================================COMMENT
MEDIUMpython/samples/02-agents/auto_retry.py111# =============================================================================COMMENT
MEDIUMpython/samples/02-agents/auto_retry.py113# =============================================================================COMMENT
MEDIUM⚡python/samples/02-agents/auto_retry.py145# =============================================================================COMMENT
MEDIUM⚡python/samples/02-agents/auto_retry.py147# =============================================================================COMMENT
MEDIUMpython/samples/02-agents/auto_retry.py176# =============================================================================COMMENT
MEDIUMpython/samples/02-agents/auto_retry.py178# =============================================================================COMMENT
MEDIUMpython/samples/02-agents/response_stream.py190 # =========================================================================COMMENT
MEDIUMpython/samples/02-agents/response_stream.py192 # =========================================================================COMMENT
MEDIUM⚡python/samples/02-agents/response_stream.py216 # =========================================================================COMMENT
MEDIUM⚡python/samples/02-agents/response_stream.py218 # =========================================================================COMMENT
MEDIUM⚡python/samples/02-agents/response_stream.py229 # =========================================================================COMMENT
MEDIUM⚡python/samples/02-agents/response_stream.py231 # =========================================================================COMMENT
MEDIUMpython/samples/02-agents/response_stream.py262 # =========================================================================COMMENT
MEDIUMpython/samples/02-agents/response_stream.py264 # =========================================================================COMMENT
MEDIUMpython/samples/02-agents/response_stream.py286 # =========================================================================COMMENT
MEDIUMpython/samples/02-agents/response_stream.py288 # =========================================================================COMMENT
MEDIUMpython/samples/02-agents/response_stream.py317 # =========================================================================COMMENT
MEDIUMpython/samples/02-agents/response_stream.py319 # =========================================================================COMMENT
MEDIUMpython/samples/02-agents/response_stream.py369 # =========================================================================COMMENT
MEDIUMpython/samples/02-agents/response_stream.py371 # =========================================================================COMMENT
MEDIUMpython/samples/02-agents/response_stream.py408 # =========================================================================COMMENT
MEDIUMpython/samples/02-agents/response_stream.py410 # =========================================================================COMMENT
MEDIUMpython/samples/02-agents/response_stream.py450 # =========================================================================COMMENT
MEDIUMpython/samples/02-agents/response_stream.py452 # =========================================================================COMMENT
MEDIUM…les/02-agents/middleware/runtime_context_delegation.py262# ================================================================COMMENT
MEDIUM…les/02-agents/middleware/runtime_context_delegation.py376# ===================================================================COMMENT
MEDIUM…n/samples/02-agents/security/email_security_example.py81# =============================================================================COMMENT
MEDIUM…n/samples/02-agents/security/email_security_example.py83# =============================================================================COMMENT
MEDIUM…n/samples/02-agents/security/email_security_example.py167# =============================================================================COMMENT
MEDIUM…n/samples/02-agents/security/email_security_example.py169# =============================================================================COMMENT
MEDIUM…n/samples/02-agents/security/email_security_example.py249# =============================================================================COMMENT
MEDIUM…n/samples/02-agents/security/email_security_example.py251# =============================================================================COMMENT
MEDIUM…les/02-agents/security/repo_confidentiality_example.py69# =============================================================================COMMENT
MEDIUM…les/02-agents/security/repo_confidentiality_example.py71# =============================================================================COMMENT
MEDIUM…les/02-agents/security/repo_confidentiality_example.py102# =============================================================================COMMENT
MEDIUM…les/02-agents/security/repo_confidentiality_example.py104# =============================================================================COMMENT
MEDIUM…les/02-agents/security/repo_confidentiality_example.py135 # =========================================================================COMMENT
MEDIUM…les/02-agents/security/repo_confidentiality_example.py139 # =========================================================================COMMENT
MEDIUM…les/02-agents/security/repo_confidentiality_example.py161 # =====================================================================COMMENT
MEDIUM…les/02-agents/security/repo_confidentiality_example.py164 # =====================================================================COMMENT
MEDIUM…les/02-agents/security/repo_confidentiality_example.py194# =============================================================================COMMENT
MEDIUM…les/02-agents/security/repo_confidentiality_example.py196# =============================================================================COMMENT
MEDIUMpython/samples/02-agents/mcp/mcp_long_running_task.py42# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/samples/02-agents/mcp/mcp_long_running_task.py44# ---------------------------------------------------------------------------COMMENT
890 more matches not shown…
Over-Commented Block1627 hits · 1612 pts
SeverityFileLineSnippetContext
LOW…n-migration/single_agent/03_agent_thread_and_stream.py1# /// scriptCOMMENT
LOW…s/autogen-migration/single_agent/02_agent_with_tool.py1# /// scriptCOMMENT
LOW…mples/autogen-migration/single_agent/01_basic_agent.py1# /// scriptCOMMENT
LOW…c-kernel-migration/processes/fan_out_fan_in_process.py1# /// scriptCOMMENT
LOW…/semantic-kernel-migration/processes/nested_process.py1# /// scriptCOMMENT
LOW…hat_completion/03_chat_completion_thread_and_stream.py1# /// scriptCOMMENT
LOW…-migration/chat_completion/01_basic_chat_completion.py1# /// scriptCOMMENT
LOW…ration/chat_completion/02_chat_completion_with_tool.py1# /// scriptCOMMENT
LOW…es/semantic-kernel-migration/orchestrations/handoff.py1# /// scriptCOMMENT
LOW…semantic-kernel-migration/orchestrations/sequential.py1# /// scriptCOMMENT
LOW…semantic-kernel-migration/orchestrations/group_chat.py1# /// scriptCOMMENT
LOW…ic-kernel-migration/orchestrations/concurrent_basic.py1# /// scriptCOMMENT
LOW…s/semantic-kernel-migration/orchestrations/magentic.py1# /// scriptCOMMENT
LOW…igration/copilot_studio/02_copilot_studio_streaming.py1# /// scriptCOMMENT
LOW…ration/copilot_studio/01_basic_copilot_studio_agent.py1# /// scriptCOMMENT
LOW…enai_responses/03_responses_agent_structured_output.py1# /// scriptCOMMENT
LOW…migration/openai_responses/01_basic_responses_agent.py1# /// scriptCOMMENT
LOW…ation/openai_responses/02_responses_agent_with_tool.py1# /// scriptCOMMENT
LOWpython/samples/04-hosting/mcp/manual_app.py1# /// scriptCOMMENT
LOWpython/samples/04-hosting/mcp/session_app.py1# /// scriptCOMMENT
LOWpython/samples/04-hosting/mcp/agent_app.py1# /// scriptCOMMENT
LOWpython/samples/04-hosting/mcp/fastmcp_app.py1# /// scriptCOMMENT
LOWpython/samples/04-hosting/mcp/workflow_app.py1# /// scriptCOMMENT
LOW…ng/foundry-hosted-agents/invocations/basic/workflow.py161 main()COMMENT
LOW…foundry-hosted-agents/responses/foundry_memory/main.py1# /// scriptCOMMENT
LOW…oundry-hosted-agents/responses/foundry_toolbox/main.py1# /// scriptCOMMENT
LOW…ses/foundry_toolbox/scripts/list-foundry-connectors.sh1#!/usr/bin/env bashCOMMENT
LOW…-hosting/foundry-hosted-agents/responses/tools/main.py1# /// scriptCOMMENT
LOW…04-hosting/foundry-hosted-agents/responses/mcp/main.py1# /// scriptCOMMENT
LOW…/foundry-hosted-agents/responses/observability/main.py1# /// scriptCOMMENT
LOW…foundry-hosted-agents/responses/custom_storage/main.py1# /// scriptCOMMENT
LOW…/foundry-hosted-agents/responses/monty_codeact/main.py1# /// scriptCOMMENT
LOW…-hosting/foundry-hosted-agents/responses/files/main.py1# /// scriptCOMMENT
LOW…s/responses/declarative_customer_support/workflow.yaml1# A multi-turn customer-support triage workflow defined declaratively.COMMENT
LOW…-agents/responses/declarative_customer_support/main.py1# /// scriptCOMMENT
LOW…undry-hosted-agents/responses/azure_search_rag/main.py1# /// scriptCOMMENT
LOW…ed-agents/responses/foundry_toolbox_mcp_skills/main.py1# /// scriptCOMMENT
LOW…ents/responses/foundry_toolbox_mcp_skills/toolbox.yaml1# toolbox.yamlCOMMENT
LOW…04-hosting/container/hyperlight_codeact/call_server.py1# /// scriptCOMMENT
LOW…-hosting/container/hyperlight_codeact/requirements.txt1# agent-framework, agent-framework-foundry-hosting, and agent-framework-hyperlightCOMMENT
LOW…s/04-hosting/af-hosting/local_responses_harness/app.py241# Sample output:COMMENT
LOW…on/samples/04-hosting/af-hosting/local_telegram/app.py1# /// scriptCOMMENT
LOW…es/04-hosting/af-hosting/local_telegram/polling_app.py1# /// scriptCOMMENT
LOWpython/samples/02-agents/response_stream.py501#COMMENT
LOW…ples/02-agents/vector_stores/optimized_data_formats.py1# /// scriptCOMMENT
LOW…/02-agents/tools/function_tool_with_max_invocations.py41 print(f"Response: {response.text}")COMMENT
LOW…02-agents/tools/function_tool_recover_from_failures.py61 response = await agent.run("Greet Bob", session=session)COMMENT
LOWpython/samples/02-agents/compaction/basics.py101 # selected_strategy = SlidingWindowStrategy(keep_last_groups=4, preserve_system=True)COMMENT
LOWpython/samples/02-agents/compaction/basics.py121 # )COMMENT
LOW…on/samples/02-agents/compaction/compaction_provider.py81 # BEFORE each turn: SlidingWindow drops older message groups fromCOMMENT
LOW…on/samples/02-agents/compaction/compaction_provider.py141 # ── What the model actually sees ──COMMENT
LOW…oviders/file_access_data_processing/data_processing.py141# quantity, unit_price, region, salesperson.COMMENT
LOWpython/samples/02-agents/harness/harness_research.py1# /// scriptCOMMENT
LOW…n/samples/02-agents/harness/harness_data_processing.py1# /// scriptCOMMENT
LOW…ness/build_your_own_claw/claw_step01_meet_your_claw.py1# /// scriptCOMMENT
LOW…s/build_your_own_claw/claw_step02_working_with_data.py1# /// scriptCOMMENT
LOW…uild_your_own_claw/claw_step03_scaling_capabilities.py1# /// scriptCOMMENT
LOW…d_your_own_claw/claw_step04_production_ready/hosted.py1# /// scriptCOMMENT
LOW…ld_your_own_claw/claw_step04_production_ready/evals.py1# /// scriptCOMMENT
LOW…ld_your_own_claw/claw_step04_production_ready/agent.py1# /// scriptCOMMENT
1567 more matches not shown…
Docstring Block Structure227 hits · 1135 pts
SeverityFileLineSnippetContext
HIGHpython/CODING_STANDARD.md549Create a new client with the specified configuration. Args: model: The model ID to use. If not provided, STRING
HIGHpython/CODING_STANDARD.md583Create a new agent with the specified configuration. Args: name: The name of the agent. client: TheSTRING
HIGH…arness/build_your_own_claw/subprocess_script_runner.py26Run a skill script as a local Python subprocess. Uses ``FileSkillScript.full_path`` as the script path, converts theSTRING
HIGH…aw_step04_production_ready/subprocess_script_runner.py26Run a skill script as a local Python subprocess. Uses ``FileSkillScript.full_path`` as the script path, converts theSTRING
HIGH…amples/02-agents/harness/console/observers/__init__.py64Build observers with planning support (structured output in plan mode). Replaces TextOutputObserver with PlanningOuSTRING
HIGH…n/samples/02-agents/skills/subprocess_script_runner.py21Run a skill script as a local Python subprocess. Uses ``FileSkillScript.full_path`` as the script path, converts theSTRING
HIGH…/05-end-to-end/chatkit-integration/attachment_store.py65Get the filesystem path for an attachment. Args: attachment_id: Identifier used as the attachment fSTRING
HIGH…osting/agent_framework_foundry_hosting/_state_store.py167Load a workflow checkpoint from the store. Args: checkpoint_id: The ID of the checkpoint to load. STRING
HIGH…ry_hosting/agent_framework_foundry_hosting/_toolbox.py409Return a :class:`~agent_framework.SkillsProvider` backed by this toolbox. A Foundry toolbox can serve Agent SkiSTRING
HIGH…_hosting/agent_framework_foundry_hosting/_responses.py3098Converts an Item to a Message. Args: item: The Item to convert. approval_storage: An optional ApproSTRING
HIGH…_hosting/agent_framework_foundry_hosting/_responses.py3378Converts an OutputItem to a Message. Args: item (OutputItem): The OutputItem to convert. approval_sSTRING
HIGH…_hosting/agent_framework_foundry_hosting/_responses.py3408Converts an OutputMessageContent to a Content object. Args: content (OutputMessageContent): The OutputMessaSTRING
HIGH…_hosting/agent_framework_foundry_hosting/_responses.py3458Converts a MessageContent to a Content object. Args: content (MessageContent): The MessageContent to converSTRING
HIGH…ithub_copilot/agent_framework_github_copilot/_agent.py870Get a response from the agent. This method returns the final result of the agent's execution as a singlSTRING
HIGH…ithub_copilot/agent_framework_github_copilot/_agent.py1087Internal method to stream updates from GitHub Copilot. Args: messages: The message(s) to send to thSTRING
HIGH…ithub_copilot/agent_framework_github_copilot/_agent.py1645Get an existing session or create a new one for the session. Args: agent_session: The conversation STRING
HIGH…ages/foundry/agent_framework_foundry/_foundry_evals.py188Resolve a short evaluator name to its fully-qualified ``builtin.*`` form. Args: name: Short name (e.g. ``"rSTRING
HIGH…s/foundry/agent_framework_foundry/_embedding_client.py331Generate embeddings for text and/or image inputs. Text inputs (``str`` or ``Content`` with ``type="text"``) areSTRING
HIGH…ckages/foundry/agent_framework_foundry/_chat_client.py748Create a hosted MCP tool configuration for Foundry. This configures an MCP server that runs remotely on Azure ASTRING
HIGH…os/agent_framework_azure_cosmos/_checkpoint_storage.py239Load a checkpoint from Cosmos DB by ID. Args: checkpoint_id: The unique ID of the checkpoint to loaSTRING
HIGHpython/packages/core/agent_framework/_types.py129Detect media type from base64-encoded data by examining magic bytes. This function examines the binary signature (mSTRING
HIGHpython/packages/core/agent_framework/_types.py238Extract base64 data string from data URI. Args: content: The Content instance to extract data from. ReSTRING
HIGHpython/packages/core/agent_framework/_types.py266Extract and decode binary data from data URI. Args: content: The Content instance to extract data from. STRING
HIGHpython/packages/core/agent_framework/_types.py501Add two UsageDetails dictionaries by summing all numeric values. If any of the two usage details contains a key witSTRING
HIGHpython/packages/core/agent_framework/_types.py770Create data content from raw binary data. Use this to create content from binary data (images, audio, documentsSTRING
HIGHpython/packages/core/agent_framework/_types.py846Create content from a URI, can be both data URI or external URI. Use this when you already have a properly formSTRING
HIGHpython/packages/core/agent_framework/_types.py1843Check if content has a specific top-level media type. Works with data, uri, and hosted_file content types. STRING
HIGHpython/packages/core/agent_framework/_types.py1874Parse arguments from function_call, mcp_server_tool_call, or search_tool_call content. If arguments cannot be pSTRING
HIGHpython/packages/core/agent_framework/_types.py2150Prepend instructions to a list of messages with a specified role. This is a helper method for chat clients that neeSTRING
HIGHpython/packages/core/agent_framework/_types.py4798Validate and normalize chat options dictionary. Validates numeric constraints and converts types as needed. ArSTRING
HIGHpython/packages/core/agent_framework/_types.py4857Normalize tools into a list. Converts callables to FunctionTool objects and preserves existing tool objects. ASTRING
HIGHpython/packages/core/agent_framework/_types.py4892Validate and normalize tools into a list. Converts callables to FunctionTool objects, expands MCP tools to their coSTRING
HIGHpython/packages/core/agent_framework/_types.py4943Validate and normalize tool_choice to a ToolMode dict. Args: tool_choice: The tool choice value to validateSTRING
HIGHpython/packages/core/agent_framework/_types.py5017Merge two chat options dictionaries. Values from override take precedence over base. Lists and dicts are combinSTRING
HIGHpython/packages/core/agent_framework/_vectors.py758Decorate a vector store model without arguments. Args: cls: The class to decorate. Returns: ThSTRING
HIGHpython/packages/core/agent_framework/_vectors.py780Create a vector store model decorator with a collection name. Args: cls: The empty decorator target used whSTRING
HIGHpython/packages/core/agent_framework/_vectors.py807Mark a class as a vector store model. Class fields or constructor parameters use ``Annotated`` metadata to describeSTRING
HIGHpython/packages/core/agent_framework/_vectors.py1348Upsert a batch of records. Dense sequence lengths are checked after optional embedding generation, befoSTRING
HIGHpython/packages/core/agent_framework/_vectors.py1419Get records by keys or list a page of records. Args: keys: A sequence of keys, or ``None`` to list STRING
HIGHpython/packages/core/agent_framework/_vectors.py1640Search from a value, optionally with a precomputed vector. Materialized dense sequence length must match the seSTRING
HIGHpython/packages/core/agent_framework/_vectors.py1689Search from a required precomputed vector. Dense sequence length must match the selected vector field's dimensiSTRING
HIGHpython/packages/core/agent_framework/_vectors.py1735Search the vector store. Supplied or locally generated dense sequence length is checked against the selSTRING
HIGHpython/packages/core/agent_framework/_vectors.py1968Search from a value, optionally with a precomputed vector. Args: values: The value to search for orSTRING
HIGHpython/packages/core/agent_framework/_vectors.py2012Search from a required precomputed vector. Args: search_type: The vector search type. vSTRING
HIGHpython/packages/core/agent_framework/_vectors.py2564Create an agent-usable tool backed by vector search. Args: search: The vector search capability invoked by STRING
HIGHpython/packages/core/agent_framework/_serialization.py506Create an instance from a dictionary with optional dependency injection. This method reconstructs an object froSTRING
HIGHpython/packages/core/agent_framework/_serialization.py676Create an instance from a JSON string. This is a convenience method that parses the JSON string using ``json.loSTRING
HIGHpython/packages/core/agent_framework/_sessions.py1958Return a copy of the stored session, or ``None`` when absent. Args: session_id: Opaque caller-selecSTRING
HIGHpython/packages/core/agent_framework/_evaluation.py1613Run an agent against test queries and evaluate the results. The simplest path for evaluating an agent during develoSTRING
HIGHpython/packages/core/agent_framework/_telemetry.py183Prepend "agent-framework" to the User-Agent in the headers. When user agent telemetry is disabled through the ``AGESTRING
HIGHpython/packages/core/agent_framework/_tools.py327Parse the inputs for a tool, ensuring they are of type Content. Args: inputs: The inputs to parse. Can be aSTRING
HIGHpython/packages/core/agent_framework/_tools.py1004Run the AI function with the provided arguments as a Pydantic model. The raw return value of the wrapped functiSTRING
HIGHpython/packages/core/agent_framework/_tools.py2033Invoke a function call requested by the agent, applying middleware that is defined. Args: function_call_conSTRING
HIGHpython/packages/core/agent_framework/_mcp.py2801Call a tool with the given arguments. Args: tool_name: The name of the tool to call. KeywoSTRING
HIGHpython/packages/core/agent_framework/_mcp.py3414Call a prompt with the given arguments. Args: prompt_name: The name of the prompt to retrieve. STRING
HIGHpython/packages/core/agent_framework/security.py343Combine multiple labels using the most restrictive policy. The combined label will be: - UNTRUSTED if any inputSTRING
HIGHpython/packages/core/agent_framework/security.py426Check if writing data with context_label to a destination with max_allowed confidentiality is permitted. This functSTRING
HIGHpython/packages/core/agent_framework/security.py535Retrieve content and its label by variable ID. Args: var_id: The variable ID. Returns: STRING
HIGHpython/packages/core/agent_framework/security.py3852Make an isolated LLM call with labeled data. This tool creates a quarantined LLM context where untrusted content caSTRING
HIGHpython/packages/core/agent_framework/security.py4134Inspect the content of a stored variable. This tool retrieves content from the ContentVariableStore and adds it to STRING
167 more matches not shown…
Self-Referential Comments345 hits · 1044 pts
SeverityFileLineSnippetContext
MEDIUMpython/devsetup.sh2# Create a virtual environment with Python 3.10 (you can change this to 3.11, 3.12 or 3.13)COMMENT
MEDIUM…n-migration/single_agent/03_agent_thread_and_stream.py69 # Create a session to maintain stateCOMMENT
MEDIUM…s/autogen-migration/single_agent/02_agent_with_tool.py35 # Define a simple tool functionCOMMENT
MEDIUM…les/autogen-migration/single_agent/04_agent_as_tool.py25 # Create a specialized writer agentCOMMENT
MEDIUM…s/semantic-kernel-migration/orchestrations/magentic.py159 # Create a manager agent for orchestrationCOMMENT
MEDIUM⚡python/samples/04-hosting/a2a/a2a_server.py163 # Create the LLM clientCOMMENT
MEDIUM⚡python/samples/04-hosting/a2a/a2a_server.py171 # Create the Agent Framework agent for the chosen typeCOMMENT
MEDIUM…/foundry-hosted-agents/invocations/break_glass/main.py24# Create the agentCOMMENT
MEDIUM…agents/responses/foundry_toolbox_mcp_skills/agent.yaml15 # Create the skills and toolbox from the bundled skills/ folder andCOMMENT
MEDIUM…sponses/foundry_toolbox_mcp_skills/agent.manifest.yaml34 # Create the skills and toolbox from the bundled skills/ folder andCOMMENT
MEDIUMpython/samples/02-agents/typed_options.py65 # Create a typed agent for Anthropic - IDE knows Anthropic-specific options!COMMENT
MEDIUMpython/samples/02-agents/typed_options.py140 # Create a typed agent - IDE will autocomplete options!COMMENT
MEDIUM⚡python/samples/02-agents/response_stream.py221 # Create a fresh stream (streams can only be consumed once)COMMENT
MEDIUM…les/02-agents/middleware/runtime_context_delegation.py92# Create a container instance that will be shared via closureCOMMENT
MEDIUM…02-agents/middleware/agent_and_run_level_middleware.py156 # Create a simple cache key from the last messageCOMMENT
MEDIUM…es/02-agents/middleware/session_behavior_middleware.py93 # Create a session that will persist messages between runsCOMMENT
MEDIUM…s/function_tool_from_dict_with_dependency_injection.py54 # Create the FunctionTool using dependency injectionCOMMENT
MEDIUM…samples/02-agents/tools/function_tool_with_approval.py41# Define a simple weather tool that requires approvalCOMMENT
MEDIUM…n/samples/02-agents/tools/function_tool_with_kwargs.py28# Define the function tool with explicit invocation context.COMMENT
MEDIUM…2-agents/tools/function_tool_with_session_injection.py23# Define the function tool with explicit invocation context.COMMENT
MEDIUM…2-agents/tools/function_tool_with_session_injection.py47 # Create a sessionCOMMENT
MEDIUM…n/samples/02-agents/security/email_security_example.py299 # Create the main agent's Foundry chat client using the configured deployment.COMMENT
MEDIUM…n/samples/02-agents/security/email_security_example.py306 # Create a separate Foundry client for quarantine operations.COMMENT
MEDIUM…n/samples/02-agents/security/email_security_example.py325 # Create the secure agent - security tools and instructions injected via context providerCOMMENT
MEDIUMpython/samples/02-agents/devui/in_memory_mode.py108 # Create a basic workflow: Input -> UpperCase -> AddExclamation -> OutputCOMMENT
MEDIUM…on/samples/02-agents/devui/workflow_fanout/workflow.py636# Create the workflow instanceCOMMENT
MEDIUM…thon/samples/02-agents/devui/workflow_spam/workflow.py384# Create the workflow instance that DevUI can discoverCOMMENT
MEDIUM…roviders/github_copilot/github_copilot_with_session.py69 # Create a session to maintain conversation contextCOMMENT
MEDIUM…/foundry/foundry_chat_client_code_interpreter_files.py71 # Create the FoundryChatClientCOMMENT
MEDIUM…/providers/foundry/foundry_chat_client_with_session.py75 # Create a new session that will be reusedCOMMENT
MEDIUM…/providers/foundry/foundry_chat_client_with_session.py126 # Create a new agent instance but use the existing session with its message historyCOMMENT
MEDIUM…rs/azure/openai_chat_completion_client_with_session.py75 # Create a new session that will be reusedCOMMENT
MEDIUM…rs/azure/openai_chat_completion_client_with_session.py126 # Create a new agent instance but use the existing session with its message historyCOMMENT
MEDIUM…2-agents/providers/azure/openai_client_with_session.py73 # Create a new session that will be reusedCOMMENT
MEDIUM…2-agents/providers/azure/openai_client_with_session.py133 # Create a session with the existing IDCOMMENT
MEDIUM…roviders/azure/openai_client_with_structured_output.py32 # Create an Azure OpenAI Chat agentCOMMENT
MEDIUM…roviders/azure/openai_client_with_structured_output.py58 # Create an Azure OpenAI Chat agentCOMMENT
MEDIUM…s/providers/anthropic/anthropic_claude_with_session.py76 # Create a session to maintain conversation contextCOMMENT
MEDIUM…ples/02-agents/providers/anthropic/anthropic_skills.py41 # Create an agent with the pptx skill enabledCOMMENT
MEDIUM…ples/02-agents/providers/openai/client_with_session.py72 # Create a new session that will be reusedCOMMENT
MEDIUM…ples/02-agents/providers/openai/client_with_session.py135 # Create a session with the existing IDCOMMENT
MEDIUM…/02-agents/providers/openai/client_image_generation.py62 # Create an agent with customized image generation optionsCOMMENT
MEDIUM…ents/providers/openai/client_with_structured_output.py31 # Create an OpenAI Chat agentCOMMENT
MEDIUM…ents/providers/openai/client_with_structured_output.py57 # Create an OpenAI Chat agentCOMMENT
MEDIUM…roviders/openai/chat_completion_client_with_session.py70 # Create a new session that will be reusedCOMMENT
MEDIUM…roviders/openai/chat_completion_client_with_session.py119 # Create a new agent instance but use the existing session with its message historyCOMMENT
MEDIUM…amples/02-agents/providers/openai/client_with_shell.py35 # Create a hosted shell tool with the default auto container environmentCOMMENT
MEDIUM…2-agents/providers/openai/client_with_agent_as_tool.py42 # Create a specialized writer agentCOMMENT
MEDIUM…n/samples/02-agents/context_providers/todo_provider.py64 # Create the TodoProvider and attach it to the agent as a context provider. The providerCOMMENT
MEDIUM⚡…02-agents/context_providers/azure_ai_foundry_memory.py63 # Create a memory storeCOMMENT
MEDIUM⚡…02-agents/context_providers/azure_ai_foundry_memory.py77 # Create the chat clientCOMMENT
MEDIUM⚡…02-agents/context_providers/azure_ai_foundry_memory.py79 # Create the Foundry Memory context providerCOMMENT
MEDIUM⚡…02-agents/context_providers/azure_ai_foundry_memory.py89 # Create an agent with the memory context providerCOMMENT
MEDIUM⚡…02-agents/context_providers/simple_context_provider.py119 # Create the memory providerCOMMENT
MEDIUM⚡…02-agents/context_providers/simple_context_provider.py122 # Create the agent with memoryCOMMENT
MEDIUM⚡…02-agents/context_providers/simple_context_provider.py128 # Create a new session for the conversationCOMMENT
MEDIUM…les/02-agents/context_providers/agent_mode_provider.py92 # Create the agent and attach the mode provider as a context provider.COMMENT
MEDIUM…ples/02-agents/context_providers/redis/redis_basics.py121 # Create a provider with partition scope and OpenAI embeddingsCOMMENT
MEDIUM…es/02-agents/context_providers/redis/redis_sessions.py94 # Create a new session - memories should still be accessible due to global scopeCOMMENT
MEDIUM…2-agents/context_providers/redis/redis_conversation.py85 # Create a session to manage conversation stateCOMMENT
285 more matches not shown…
Unused Imports1049 hits · 949 pts
SeverityFileLineSnippetContext
LOW…c-kernel-migration/processes/fan_out_fan_in_process.py42CODE
LOW…c-kernel-migration/processes/fan_out_fan_in_process.py43CODE
LOWpython/samples/04-hosting/a2a/agent_definitions.py9CODE
LOWpython/samples/04-hosting/mcp/manual_app.py23CODE
LOWpython/samples/04-hosting/mcp/session_app.py33CODE
LOWpython/samples/04-hosting/mcp/agent_app.py30CODE
LOWpython/samples/04-hosting/mcp/fastmcp_app.py27CODE
LOWpython/samples/04-hosting/mcp/workflow_app.py21CODE
LOW…ng/foundry-hosted-agents/invocations/basic/workflow.py10CODE
LOW…osting/foundry-hosted-agents/invocations/basic/main.py3CODE
LOW…ing/foundry-hosted-agents/invocations/telegram/main.py11CODE
LOW…ents/invocations/telegram/tests/test_infrastructure.py3CODE
LOW…-hosted-agents/invocations/telegram/tests/test_main.py3CODE
LOW…oundry-hosted-agents/responses/using_deployed_agent.py3CODE
LOW…foundry-hosted-agents/responses/foundry_memory/main.py18CODE
LOW…oundry-hosted-agents/responses/foundry_toolbox/main.py17CODE
LOW…-hosting/foundry-hosted-agents/responses/tools/main.py17CODE
LOW…04-hosting/foundry-hosted-agents/responses/mcp/main.py17CODE
LOW…/foundry-hosted-agents/responses/observability/main.py17CODE
LOW…foundry-hosted-agents/responses/custom_storage/main.py25CODE
LOW…/foundry-hosted-agents/responses/monty_codeact/main.py18CODE
LOW…g/foundry-hosted-agents/responses/files/file_access.py5CODE
LOW…g/foundry-hosted-agents/responses/files/upload_file.py14CODE
LOW…-hosting/foundry-hosted-agents/responses/files/main.py17CODE
LOW…undry-hosted-agents/responses/azure_search_rag/main.py18CODE
LOW…ed-agents/responses/foundry_toolbox_mcp_skills/main.py17CODE
LOW…ing/af-hosting/local_responses_workflow/call_server.py19CODE
LOW…/04-hosting/af-hosting/local_responses_workflow/app.py46CODE
LOW…ting/af-hosting/local_responses_harness/call_server.py22CODE
LOW…s/04-hosting/af-hosting/local_responses_harness/app.py72CODE
LOW…on/samples/04-hosting/af-hosting/local_telegram/app.py43CODE
LOW…es/04-hosting/af-hosting/local_telegram/polling_app.py26CODE
LOW…4-hosting/af-hosting/local_responses/call_server_af.py29CODE
LOW…s/04-hosting/af-hosting/local_responses/call_server.py24CODE
LOW…n/samples/04-hosting/af-hosting/local_responses/app.py50CODE
LOW…samples/02-agents/vector_stores/vector_store_models.py3CODE
LOW…hon/samples/02-agents/vector_stores/azure_ai_search.py11CODE
LOW…ples/02-agents/vector_stores/optimized_data_formats.py15CODE
LOW…samples/02-agents/tools/function_tool_with_approval.py12CODE
LOW…tools/local_code_interpreter/local_code_interpreter.py3CODE
LOW…de_interpreter/local_code_interpreter_manual_wiring.py3CODE
LOW…tools/monty_code_interpreter/monty_code_interpreter.py3CODE
LOW…de_interpreter/monty_code_interpreter_manual_wiring.py3CODE
LOWpython/samples/02-agents/security/github_mcp_example.py23CODE
LOW…thon/samples/02-agents/devui/agent_weather/__init__.py5CODE
LOW…2-agents/devui/agent_content_understanding/__init__.py4CODE
LOW…ent_understanding_file_search_azure_openai/__init__.py4CODE
LOW…mples/02-agents/devui/workflow_with_agents/__init__.py5CODE
LOW…thon/samples/02-agents/devui/agent_foundry/__init__.py5CODE
LOW…thon/samples/02-agents/devui/workflow_spam/__init__.py5CODE
LOW…les/02-agents/providers/foundry/foundry_local_agent.py4CODE
LOW…oviders/foundry/foundry_chat_client_with_hosted_mcp.py22CODE
LOW…hon/samples/02-agents/providers/custom/custom_agent.py4CODE
LOW…s/02-agents/providers/openai/client_with_hosted_mcp.py11CODE
LOW…samples/02-agents/compaction/agent_client_overrides.py3CODE
LOW…02-agents/context_providers/code_act/monty_code_act.py3CODE
LOW…mples/02-agents/context_providers/code_act/code_act.py3CODE
LOW…ervability/configure_otel_providers_with_parameters.py20CODE
LOW…mples/02-agents/observability/foundry_agent_tracing.py13CODE
LOW…/samples/02-agents/observability/advanced_zero_code.py17CODE
989 more matches not shown…
Cross-File Repetition178 hits · 890 pts
SeverityFileLineSnippetContext
HIGHpython/README.md0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGHpython/samples/02-agents/mcp/agent_as_mcp_server.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGHpython/packages/core/README.md0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…/tests/AgentConformance.IntegrationTests/MenuPlugin.cs0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGHpython/samples/04-hosting/mcp/manual_app.py0start and stop native mcp and model-client resources.STRING
HIGHpython/samples/04-hosting/mcp/session_app.py0start and stop native mcp and model-client resources.STRING
HIGHpython/samples/04-hosting/mcp/agent_app.py0start and stop native mcp and model-client resources.STRING
HIGH…ing/foundry-hosted-agents/invocations/telegram/main.py0handle sample-owned commands and return whether one matched.STRING
HIGH…on/samples/04-hosting/af-hosting/local_telegram/app.py0handle sample-owned commands and return whether one matched.STRING
HIGH…es/04-hosting/af-hosting/local_telegram/polling_app.py0handle sample-owned commands and return whether one matched.STRING
HIGH…/04-hosting/af-hosting/local_responses_workflow/app.py0run the webhook sample with hypercorn for local development.STRING
HIGH…s/04-hosting/af-hosting/local_responses_harness/app.py0run the webhook sample with hypercorn for local development.STRING
HIGH…n/samples/04-hosting/af-hosting/local_responses/app.py0run the webhook sample with hypercorn for local development.STRING
HIGH…on/samples/04-hosting/af-hosting/local_telegram/app.py0run the webhook sample with hypercorn for local development.STRING
HIGH…gents/providers/github_copilot/github_copilot_basic.py0example of non-streaming response (get the complete result at once).STRING
HIGH…les/02-agents/providers/foundry/foundry_chat_client.py0example of non-streaming response (get the complete result at once).STRING
HIGH…les/02-agents/providers/foundry/foundry_local_agent.py0example of non-streaming response (get the complete result at once).STRING
HIGH…-agents/providers/foundry/foundry_chat_client_basic.py0example of non-streaming response (get the complete result at once).STRING
HIGH…providers/azure/openai_chat_completion_client_basic.py0example of non-streaming response (get the complete result at once).STRING
HIGH…mples/02-agents/providers/azure/openai_client_basic.py0example of non-streaming response (get the complete result at once).STRING
HIGH…mples/02-agents/providers/anthropic/anthropic_basic.py0example of non-streaming response (get the complete result at once).STRING
HIGH…mples/02-agents/providers/ollama/ollama_agent_basic.py0example of non-streaming response (get the complete result at once).STRING
HIGH…nts/providers/ollama/ollama_with_openai_chat_client.py0example of non-streaming response (get the complete result at once).STRING
HIGH…-agents/providers/copilotstudio/copilotstudio_basic.py0example of non-streaming response (get the complete result at once).STRING
HIGH…les/02-agents/providers/mistral/mistral_agent_basic.py0example of non-streaming response (get the complete result at once).STRING
HIGH…hon/samples/02-agents/providers/openai/client_basic.py0example of non-streaming response (get the complete result at once).STRING
HIGH…gents/providers/openai/chat_completion_client_basic.py0example of non-streaming response (get the complete result at once).STRING
HIGH…gents/providers/github_copilot/github_copilot_basic.py0example of streaming response (get results as they are generated).STRING
HIGH…les/02-agents/providers/foundry/foundry_chat_client.py0example of streaming response (get results as they are generated).STRING
HIGH…les/02-agents/providers/foundry/foundry_local_agent.py0example of streaming response (get results as they are generated).STRING
HIGH…-agents/providers/foundry/foundry_chat_client_basic.py0example of streaming response (get results as they are generated).STRING
HIGH…providers/azure/openai_chat_completion_client_basic.py0example of streaming response (get results as they are generated).STRING
HIGH…mples/02-agents/providers/azure/openai_client_basic.py0example of streaming response (get results as they are generated).STRING
HIGH…les/02-agents/providers/anthropic/anthropic_foundry.py0example of streaming response (get results as they are generated).STRING
HIGH…es/02-agents/providers/anthropic/anthropic_advanced.py0example of streaming response (get results as they are generated).STRING
HIGH…ples/02-agents/providers/anthropic/anthropic_skills.py0example of streaming response (get results as they are generated).STRING
HIGH…mples/02-agents/providers/anthropic/anthropic_basic.py0example of streaming response (get results as they are generated).STRING
HIGH…mples/02-agents/providers/ollama/ollama_agent_basic.py0example of streaming response (get results as they are generated).STRING
HIGH…nts/providers/ollama/ollama_with_openai_chat_client.py0example of streaming response (get results as they are generated).STRING
HIGH…-agents/providers/copilotstudio/copilotstudio_basic.py0example of streaming response (get results as they are generated).STRING
HIGH…les/02-agents/providers/mistral/mistral_agent_basic.py0example of streaming response (get results as they are generated).STRING
HIGH…hon/samples/02-agents/providers/openai/client_basic.py0example of streaming response (get results as they are generated).STRING
HIGH…gents/providers/openai/chat_completion_client_basic.py0example of streaming response (get results as they are generated).STRING
HIGH…/github_copilot/github_copilot_with_file_operations.py0permission handler that prompts the user for approval.STRING
HIGH…gents/providers/anthropic/anthropic_claude_with_mcp.py0permission handler that prompts the user for approval.STRING
HIGH…nthropic/anthropic_claude_with_multiple_permissions.py0permission handler that prompts the user for approval.STRING
HIGH…nts/providers/anthropic/anthropic_claude_with_shell.py0permission handler that prompts the user for approval.STRING
HIGH…ers/foundry/foundry_chat_client_with_function_tools.py0example showing tools defined when creating the agent.STRING
HIGH…s/providers/azure/openai_client_with_function_tools.py0example showing tools defined when creating the agent.STRING
HIGH…e/openai_chat_completion_client_with_function_tools.py0example showing tools defined when creating the agent.STRING
HIGH…es/02-agents/providers/openai/client_with_local_mcp.py0example showing tools defined when creating the agent.STRING
HIGH…-agents/providers/openai/client_with_function_tools.py0example showing tools defined when creating the agent.STRING
HIGH…viders/openai/chat_completion_client_with_local_mcp.py0example showing tools defined when creating the agent.STRING
HIGH…s/openai/chat_completion_client_with_function_tools.py0example showing tools defined when creating the agent.STRING
HIGH…ers/foundry/foundry_chat_client_with_function_tools.py0example showing both agent-level tools and run-method tools.STRING
HIGH…s/providers/azure/openai_client_with_function_tools.py0example showing both agent-level tools and run-method tools.STRING
HIGH…e/openai_chat_completion_client_with_function_tools.py0example showing both agent-level tools and run-method tools.STRING
HIGH…-agents/providers/openai/client_with_function_tools.py0example showing both agent-level tools and run-method tools.STRING
HIGH…s/openai/chat_completion_client_with_function_tools.py0example showing both agent-level tools and run-method tools.STRING
HIGH…/providers/foundry/foundry_chat_client_with_session.py0example showing automatic session creation (service-managed session).STRING
118 more matches not shown…
Excessive Try-Catch Wrapping484 hits · 442 pts
SeverityFileLineSnippetContext
LOWpython/samples/04-hosting/a2a/a2a_server.py119 except Exception:CODE
MEDIUM⚡python/samples/04-hosting/a2a/a2a_server.py157 print("Error: FOUNDRY_PROJECT_ENDPOINT environment variable is not set.")CODE
MEDIUM⚡python/samples/04-hosting/a2a/a2a_server.py160 print("Error: FOUNDRY_MODEL environment variable is not set.")CODE
LOWpython/samples/04-hosting/a2a/agent_framework_to_a2a.py95 except Exception:CODE
LOW…-hosting/foundry-hosted-agents/responses/tools/main.py64 except Exception as e:CODE
LOW…mples/02-agents/devui/workflow_with_agents/workflow.py50 except Exception:CODE
LOW…mples/02-agents/devui/workflow_with_agents/workflow.py62 except Exception:CODE
LOW…/02-agents/providers/anthropic/anthropic_with_shell.py48 except Exception as e:CODE
LOW…/02-agents/providers/openai/client_image_generation.py42 except Exception:CODE
LOW…/02-agents/providers/openai/client_image_generation.py47 except Exception:CODE
LOW…/providers/openai/client_streaming_image_generation.py37 except Exception as e:CODE
LOW⚡…02-agents/context_providers/azure_ai_foundry_memory.py69 except Exception as e:CODE
LOW…02-agents/context_providers/azure_ai_foundry_memory.py133 except Exception as e:CODE
MEDIUM…02-agents/context_providers/azure_ai_foundry_memory.py134 print(f"An error occurred: {e}")CODE
LOW…s/azure_content_understanding/04_invoice_processing.py162 except Exception:CODE
LOW…thon/samples/02-agents/harness/console/agent_runner.py212 except Exception as ex:CODE
LOWpython/samples/02-agents/harness/console/app.py484 except Exception:CODE
LOW…les/02-agents/harness/console/components/text_input.py65 except Exception:CODE
LOW…les/02-agents/harness/console/components/text_input.py77 except Exception:CODE
LOW…/02-agents/harness/console/commands/session_handler.py63 except Exception as ex:CODE
LOW…/02-agents/harness/console/commands/session_handler.py91 except Exception as ex:CODE
LOW…ples/02-agents/conversations/redis_history_provider.py276 except Exception as e:CODE
MEDIUM…ples/02-agents/conversations/redis_history_provider.py277 print(f"Error running examples: {e}")CODE
LOW…/02-agents/declarative/azure_openai_responses_agent.py39 except Exception:CODE
LOWpython/samples/02-agents/declarative/openai_agent.py31 except Exception:CODE
LOW…workflows/human-in-the-loop/concurrent_request_info.py80 except Exception:CODE
LOW…ples/03-workflows/agents/magentic_workflow_as_agent.py114 except Exception as e:CODE
LOW…es/03-workflows/agents/group_chat_workflow_as_agent.py87 except Exception as e:CODE
LOW…rkflows/orchestrations/concurrent_custom_aggregator.py79 except Exception as e:CODE
LOW…3-workflows/declarative/agent_to_function_tool/main.py265 except Exception as e:CODE
LOW…on/samples/03-workflows/control-flow/edge_condition.py97 except Exception:CODE
LOW⚡…es/05-end-to-end/purview_agent/sample_purview_agent.py292 except Exception as ex: # pragma: no cover - demo resilienceCODE
LOW⚡…es/05-end-to-end/purview_agent/sample_purview_agent.py297 except Exception as ex: # pragma: no cover - demo resilienceCODE
LOW⚡…es/05-end-to-end/purview_agent/sample_purview_agent.py302 except Exception as ex: # pragma: no cover - demo resilienceCODE
LOW⚡…es/05-end-to-end/purview_agent/sample_purview_agent.py307 except Exception as ex: # pragma: no cover - demo resilienceCODE
LOW…es/05-end-to-end/workflow_evaluation/run_evaluation.py96 except Exception as e:CODE
LOW…s/05-end-to-end/workflow_evaluation/create_workflow.py128 except Exception:CODE
LOW⚡…s/05-end-to-end/workflow_evaluation/create_workflow.py175 except Exception as e:CODE
MEDIUM⚡…s/05-end-to-end/workflow_evaluation/create_workflow.py176 print(f"Error during workflow execution: {e}")CODE
LOW…05-end-to-end/ag_ui_workflow_handoff/backend/server.py353 except Exception as e:CODE
LOW…d-to-end/evaluation/self_reflection/self_reflection.py332 except Exception as e:CODE
LOW…d-to-end/evaluation/self_reflection/self_reflection.py463 except Exception as e:CODE
LOW…to-end/evaluation/red_teaming/red_team_agent_sample.py94 except Exception as e:STRING
MEDIUM…to-end/evaluation/red_teaming/red_team_agent_sample.py95 print(f"Error calling Azure OpenAI: {e!s}")STRING
LOWpython/samples/05-end-to-end/chatkit-integration/app.py240 except Exception as e:CODE
LOWpython/samples/05-end-to-end/chatkit-integration/app.py330 except Exception as e:CODE
LOWpython/samples/05-end-to-end/chatkit-integration/app.py450 except Exception as e:CODE
LOWpython/samples/05-end-to-end/chatkit-integration/app.py578 except Exception as e:CODE
LOWpython/samples/05-end-to-end/chatkit-integration/app.py624 except Exception as e:CODE
LOWpython/samples/05-end-to-end/chatkit-integration/app.py655 except Exception as e:CODE
LOW…/sample_validation/create_dynamic_workflow_executor.py218 except Exception as ex:CODE
LOW…/sample_validation/create_dynamic_workflow_executor.py229 except Exception as restart_ex:CODE
LOW…/sample_validation/create_dynamic_workflow_executor.py296 except Exception as ex: # pragma: no cover - defensive; never fail validation over cachingCODE
LOWpython/scripts/sample_validation/playbook.py143 except Exception as ex:CODE
LOWpython/scripts/sample_validation/playbook.py317 except Exception: # pragma: no cover - defensiveCODE
LOWpython/scripts/sample_validation/discovery.py46 except Exception:CODE
LOWpython/scripts/sample_validation/discovery.py121 except Exception as e:CODE
LOW…validation/run_dynamic_validation_workflow_executor.py24 except Exception:CODE
LOW…/scripts/dependencies/_dependency_bounds_upper_impl.py1273 except Exception as exc:CODE
LOW…/scripts/dependencies/_dependency_bounds_lower_impl.py1048 except Exception as exc:CODE
424 more matches not shown…
Deep Nesting569 hits · 435 pts
SeverityFileLineSnippetContext
LOW…les/autogen-migration/single_agent/04_agent_as_tool.py56CODE
LOW…es/autogen-migration/orchestrations/04_magentic_one.py73CODE
LOW…n/samples/autogen-migration/orchestrations/03_swarm.py105CODE
LOW…-migration/orchestrations/01_round_robin_group_chat.py102CODE
LOW…ing/foundry-hosted-agents/invocations/telegram/main.py219CODE
LOW…on/samples/04-hosting/af-hosting/local_telegram/app.py149CODE
LOW…es/04-hosting/af-hosting/local_telegram/polling_app.py121CODE
LOWpython/samples/02-agents/middleware/chat_middleware.py108CODE
LOW…samples/02-agents/tools/function_tool_with_approval.py90CODE
LOWpython/samples/02-agents/devui/agent_weather/agent.py44CODE
LOW…oviders/foundry/foundry_chat_client_with_hosted_mcp.py77CODE
LOW…samples/02-agents/providers/openai/client_reasoning.py36CODE
LOW…samples/02-agents/providers/openai/client_reasoning.py56CODE
LOW…/02-agents/providers/openai/client_with_local_shell.py33CODE
LOW…/02-agents/providers/openai/client_image_generation.py59CODE
LOW…s/02-agents/providers/openai/client_with_hosted_mcp.py76CODE
LOW…/providers/openai/client_streaming_image_generation.py41CODE
LOW…gents/providers/openai/client_with_code_interpreter.py23CODE
LOW…amples/02-agents/providers/openai/client_with_shell.py26CODE
LOW…on/samples/02-agents/compaction/compaction_provider.py72CODE
LOW…02-agents/context_providers/simple_context_provider.py48CODE
LOW…02-agents/context_providers/code_act/monty_code_act.py61CODE
LOW…mples/02-agents/context_providers/code_act/code_act.py48CODE
LOW…d_your_own_claw/claw_step04_production_ready/hosted.py105CODE
LOW…d_your_own_claw/claw_step04_production_ready/hosted.py158CODE
LOWpython/samples/02-agents/harness/console/formatters.py174CODE
LOWpython/samples/02-agents/harness/console/app.py436CODE
LOW…client/require_per_service_call_history_persistence.py68CODE
LOW…workflows/human-in-the-loop/sequential_request_info.py45CODE
LOW…les/03-workflows/human-in-the-loop/agents_with_HITL.py129CODE
LOW…workflows/human-in-the-loop/group_chat_request_info.py46CODE
LOW…ws/human-in-the-loop/guessing_game_with_human_input.py159CODE
LOW…workflows/human-in-the-loop/concurrent_request_info.py48CODE
LOW…workflows/human-in-the-loop/concurrent_request_info.py102CODE
LOW…mples/03-workflows/parallelism/fan_out_fan_in_edges.py112CODE
LOW…kflows/checkpoint/checkpoint_with_human_in_the_loop.py227CODE
LOW…amples/03-workflows/composition/sub_workflow_kwargs.py79CODE
LOW…orkflows/composition/sub_workflow_parallel_requests.py96CODE
LOW…orkflows/composition/sub_workflow_parallel_requests.py289CODE
LOW…orkflows/composition/sub_workflow_parallel_requests.py101CODE
LOW…3-workflows/orchestrations/group_chat_agent_manager.py44CODE
LOW…03-workflows/orchestrations/magentic_custom_prompts.py133CODE
LOW…lows/orchestrations/group_chat_philosophical_debate.py59CODE
LOW…s/orchestrations/handoff_with_code_interpreter_file.py46CODE
LOW…ations/handoff_with_tool_approval_checkpoint_resume.py158CODE
LOW…workflows/orchestrations/magentic_human_plan_review.py49CODE
LOW…workflows/orchestrations/group_chat_simple_selector.py41CODE
LOW…/samples/03-workflows/orchestrations/handoff_simple.py116CODE
LOWpython/samples/03-workflows/orchestrations/magentic.py55CODE
LOW…ples/03-workflows/orchestrations/handoff_autonomous.py86CODE
LOW…3-workflows/state-management/workflow_kwargs_global.py94CODE
LOW…orkflows/state-management/workflow_kwargs_per_agent.py92CODE
LOW…ples/03-workflows/declarative/customer_support/main.py168CODE
LOW…s/05-end-to-end/workflow_evaluation/create_workflow.py133CODE
LOW…05-end-to-end/ag_ui_workflow_handoff/backend/server.py256CODE
LOW…d-to-end/evaluation/self_reflection/self_reflection.py216CODE
LOWpython/samples/05-end-to-end/chatkit-integration/app.py262CODE
LOWpython/samples/05-end-to-end/chatkit-integration/app.py341CODE
LOWpython/samples/05-end-to-end/chatkit-integration/app.py453CODE
LOWpython/samples/05-end-to-end/chatkit-integration/app.py390CODE
509 more matches not shown…
Modern AI Meta-Vocabulary132 hits · 402 pts
SeverityFileLineSnippetContext
MEDIUMTRANSPARENCY_FAQ.md5Microsoft Agent Framework is a comprehensive multi-language (C#/.NET and Python) framework for building, orchestrating, CODE
MEDIUMTRANSPARENCY_FAQ.md5Microsoft Agent Framework is a comprehensive multi-language (C#/.NET and Python) framework for building, orchestrating, CODE
MEDIUMpython/CHANGELOG.md1809For more information, see the [announcement blog post](https://devblogs.microsoft.com/foundry/introducing-microsoft-agenCODE
MEDIUMpython/samples/AGENTS.md18│ ├── orchestrations/ # Multi-agent orchestration patternsCODE
MEDIUM…es/semantic-kernel-migration/orchestrations/handoff.py53# Semantic Kernel orchestration pathCOMMENT
MEDIUM…es/semantic-kernel-migration/orchestrations/handoff.py186# Agent Framework orchestration pathCOMMENT
MEDIUM…semantic-kernel-migration/orchestrations/sequential.py39# Semantic Kernel orchestration pathCOMMENT
MEDIUM…semantic-kernel-migration/orchestrations/sequential.py77# Agent Framework orchestration pathCOMMENT
MEDIUM…semantic-kernel-migration/orchestrations/group_chat.py56# Semantic Kernel orchestration pathCOMMENT
MEDIUM…semantic-kernel-migration/orchestrations/group_chat.py226# Agent Framework orchestration pathCOMMENT
MEDIUM…ic-kernel-migration/orchestrations/concurrent_basic.py38# Semantic Kernel orchestration pathCOMMENT
MEDIUM…ic-kernel-migration/orchestrations/concurrent_basic.py90# Agent Framework orchestration pathCOMMENT
MEDIUM…s/semantic-kernel-migration/orchestrations/magentic.py49# Semantic Kernel orchestration pathCOMMENT
MEDIUM…s/semantic-kernel-migration/orchestrations/magentic.py133# Agent Framework orchestration pathCOMMENT
MEDIUM…s/semantic-kernel-migration/orchestrations/magentic.py159 # Create a manager agent for orchestrationCOMMENT
MEDIUM…dry-hosted-agents/responses/azure_search_rag/README.md11### RAG via Azure AI SearchCOMMENT
MEDIUM…dry-hosted-agents/responses/azure_search_rag/README.md176## How RAG works in this sampleCOMMENT
MEDIUM…s/function_tool_from_dict_with_dependency_injection.py54 # Create the FunctionTool using dependency injectionCOMMENT
MEDIUM…xt_providers/azure_ai_search/search_context_agentic.py24- See: https://techcommunity.microsoft.com/blog/azure-ai-foundry-blog/foundry-iq-boost-response-relevance-by-36-with-ageSTRING
MEDIUM…xt_providers/azure_ai_search/search_context_agentic.py47# Sample queries to demonstrate agentic RAGCOMMENT
MEDIUM…xt_providers/azure_ai_search/search_context_agentic.py47# Sample queries to demonstrate agentic RAGCOMMENT
MEDIUM…xt_providers/azure_ai_search/search_context_agentic.py71 # Create Azure AI Search context provider with agentic mode (recommended for accuracy)COMMENT
MEDIUM…t_providers/azure_ai_search/search_context_semantic.py39# Sample queries to demonstrate RAGCOMMENT
MEDIUM…/02-agents/context_providers/azure_ai_search/README.md11| [`search_context_agentic.py`](search_context_agentic.py) | **Agentic mode** (recommended for most scenarios): Uses KnoCODE
MEDIUM…/02-agents/context_providers/azure_ai_search/README.md177# Create search provider with agentic modeCOMMENT
MEDIUM…/02-agents/context_providers/azure_ai_search/README.md182 mode="agentic", # Enable agentic retrievalCODE
MEDIUM…/02-agents/context_providers/azure_ai_search/README.md284- [Agentic Retrieval in Azure AI Search](https://learn.microsoft.com/azure/search/agentic-retrieval-overview)CODE
MEDIUM…roviders/azure_content_understanding/01_document_qa.py49 analyzer_id="prebuilt-documentSearch", # RAG-optimized document analyzerCODE
MEDIUM…s/azure_content_understanding/04_invoice_processing.py83 # Default analyzer is prebuilt-documentSearch (RAG-optimized).COMMENT
MEDIUMpython/samples/02-agents/harness/console/README.md27├── agent_runner.py # HarnessAgentRunner (streaming orchestration)CODE
MEDIUMpython/samples/03-workflows/README.md121### orchestrationCOMMENT
MEDIUM…ples/03-workflows/agents/magentic_workflow_as_agent.py61 # Create a manager agent for orchestrationCOMMENT
MEDIUM…mples/03-workflows/agents/handoff_workflow_as_agent.py172 # it receives all user input first and orchestrates handoffs to specialistsCOMMENT
MEDIUM…/samples/03-workflows/orchestrations/handoff_simple.py218 # it receives all user input first and orchestrates handoffs to specialistsCOMMENT
MEDIUMpython/samples/03-workflows/orchestrations/magentic.py82 # Create a manager agent for orchestrationCOMMENT
MEDIUM…les/03-workflows/orchestrations/magentic_checkpoint.py61 # Two vanilla ChatAgents act as participants in the orchestration. They do not needCOMMENT
MEDIUM…les/03-workflows/orchestrations/magentic_checkpoint.py85 # Create a manager agent for orchestrationCOMMENT
MEDIUM…les/03-workflows/orchestrations/magentic_checkpoint.py180 # Final sanity check: display the assistant's answer as proof the orchestration reachedCOMMENT
MEDIUM…n/samples/03-workflows/functional/parallel_pipeline.py39# @workflow defines the orchestration logic. Build the definition to get aCOMMENT
MEDIUM…es/05-end-to-end/purview_agent/sample_purview_agent.py48# Sequential prompts to demonstrate good -> block -> good orchestration.COMMENT
MEDIUM…05-end-to-end/ag_ui_workflow_handoff/backend/server.py192 # Explicit handoff topology (instead of default mesh) so routing is enforced in orchestration,COMMENT
MEDIUM…samples/05-end-to-end/evaluation/red_teaming/README.md95# After: Specific safety guardrailsCOMMENT
MEDIUMpython/packages/core/AGENTS.md23├── _workflows/ # Workflow orchestration (sequential, concurrent, handoff, etc.)CODE
MEDIUM…on/packages/core/tests/core/test_serializable_mixin.py194 # Deserialize with dependency injectionCOMMENT
MEDIUM…ore/tests/workflow/test_workflow_agent_intermediate.py317 # Construct typed orchestration-internal events directly to assert they getCOMMENT
MEDIUMpython/packages/core/agent_framework/_evaluation.py1596# region Public orchestration functionsCOMMENT
MEDIUMpython/packages/core/agent_framework/_tools.py2295 # must abort the run (enforcement layers, guardrails) raises it instead ofCOMMENT
MEDIUM…hon/packages/core/agent_framework/_workflows/_const.py16# Used by all orchestration patterns (Sequential, Concurrent, GroupChat, Handoff, Magentic)COMMENT
MEDIUM…on/packages/core/agent_framework/_workflows/_events.py34 FRAMEWORK = "FRAMEWORK" # Framework-owned orchestration, regardless of module locationCODE
MEDIUM…on/packages/core/agent_framework/_workflows/_events.py126# Includes both framework lifecycle types and well-known orchestration types.COMMENT
MEDIUM…on/packages/core/agent_framework/_workflows/_events.py158# orchestration-internal events (``group_chat``, ``handoff_sent``,COMMENT
MEDIUM…hon/packages/lab/lightning/samples/train_tau2_agent.py75# - Agent filtering (training only specific agents in multi-agent setup)COMMENT
MEDIUM…hon/packages/lab/lightning/samples/train_tau2_agent.py120 # Run the multi-agent conversationCOMMENT
MEDIUM…n/packages/lab/tau2/agent_framework_lab_tau2/runner.py299 # Each executor wraps an agent or function for workflow orchestrationCOMMENT
MEDIUM…n/packages/lab/tau2/agent_framework_lab_tau2/runner.py430 # solo_mode=False: indicates multi-agent conversation (assistant + user simulator)COMMENT
MEDIUM…hon/packages/ag-ui/agent_framework_ag_ui/_agent_run.py149# Keys that are internal to AG-UI orchestration and should not be passed to chat clientsCOMMENT
MEDIUM…hon/packages/ag-ui/agent_framework_ag_ui/_agent_run.py3259 # Inject metadata for AG-UI orchestration (Feature #2: Azure-safe truncation)COMMENT
MEDIUM…hon/packages/ag-ui/agent_framework_ag_ui/_agent_run.py3285 # These are used internally for orchestration and should not be sent to the LLM providerCOMMENT
MEDIUM…/packages/ag-ui/agent_framework_ag_ui/_workflow_run.py1559 # Fall back to custom events for diagnostics, orchestration events, and custom workflow events.COMMENT
MEDIUMpython/packages/mongodb/samples/mongodb_agent_rag.py106 # and cannot write to it, which is the usual shape for RAG.COMMENT
72 more matches not shown…
Structural Annotation Overuse197 hits · 350 pts
SeverityFileLineSnippetContext
LOW⚡python/README.md224 # Step 1: Writer creates initial sloganSTRING
LOW⚡python/README.md228 # Step 2: Reviewer provides feedbackSTRING
LOW⚡python/README.md233 # Step 3: Writer refines based on feedbackSTRING
LOW…/foundry-hosted-agents/invocations/break_glass/main.py21# WARNING: This is lost on restart. Use durable storage in production.COMMENT
LOW…ents/tools/function_tool_with_approval_and_sessions.py43 # Step 1: Agent requests to call the toolCOMMENT
LOW…ents/tools/function_tool_with_approval_and_sessions.py61 # Step 2: Send approval responseCOMMENT
LOW⚡…ples/02-agents/observability/workflow_observability.py77 # Step 1: Create the executors.COMMENT
LOW⚡…ples/02-agents/observability/workflow_observability.py81 # Step 2: Build the workflow with the defined edges.COMMENT
LOW⚡…ples/02-agents/observability/workflow_observability.py86 # Step 3: Run the workflow with an initial message.COMMENT
LOW⚡…es/02-agents/skills/script_approval/script_approval.py90 # Step 1: Send the user request — the agent will try to call the scriptCOMMENT
LOW⚡…es/02-agents/skills/script_approval/script_approval.py95 # Step 2: Handle approval requests (with sessions, context isCOMMENT
LOW…-workflows/parallelism/map_reduce_and_visualization.py260 # Step 1: Create executor instances.COMMENT
LOW…-workflows/parallelism/map_reduce_and_visualization.py278 # Step 2: Build the workflow graph using fan out and fan in edges.COMMENT
LOW⚡…-workflows/parallelism/map_reduce_and_visualization.py306 # Step 3: Open the text file and read its content.COMMENT
LOW⚡…-workflows/parallelism/map_reduce_and_visualization.py310 # Step 4: Run the workflow with the raw text as input.COMMENT
LOW⚡…amples/03-workflows/composition/sub_workflow_basics.py152 # Step 1: Create the parent workflowCOMMENT
LOW⚡…amples/03-workflows/composition/sub_workflow_basics.py162 # Step 2: Test data - various text stringsCOMMENT
LOW⚡…amples/03-workflows/composition/sub_workflow_basics.py175 # Step 3: Run the workflowCOMMENT
LOW⚡…amples/03-workflows/composition/sub_workflow_basics.py178 # Step 4: Display resultsCOMMENT
LOW…amples/03-workflows/composition/sub_workflow_basics.py192 # Step 6: Display summaryCOMMENT
LOWpython/samples/03-workflows/control-flow/simple_loop.py139 # Step 1: Build the workflow with the defined edges.COMMENT
LOWpython/samples/03-workflows/control-flow/simple_loop.py155 # Step 2: Run the workflow with concise streaming output.COMMENT
LOW⚡…ples/03-workflows/control-flow/sequential_executors.py63 # Step 1: Build the workflow graph.COMMENT
LOW⚡…ples/03-workflows/control-flow/sequential_executors.py72 # Step 2: Stream events for a single input.COMMENT
LOW…ples/03-workflows/control-flow/sequential_streaming.py25# Step 1: Define methods using the executor decorator.COMMENT
LOW⚡…ples/03-workflows/control-flow/sequential_streaming.py56 # Step 1: Build the workflow with the defined edges.COMMENT
LOW⚡…ples/03-workflows/control-flow/sequential_streaming.py60 # Step 2: Run the workflow and stream events in real time.COMMENT
LOW⚡python/packages/core/README.md213 # Step 1: Writer creates initial sloganSTRING
LOW⚡python/packages/core/README.md217 # Step 2: Reviewer provides feedbackSTRING
LOW⚡python/packages/core/README.md222 # Step 3: Writer refines based on feedbackSTRING
LOW⚡python/packages/core/tests/workflow/test_workflow.py1211 # Step 1: drive stream A's body until it's suspended at its first yield.COMMENT
LOW⚡python/packages/core/tests/workflow/test_workflow.py1216 # Step 2: drop stream A; GC invalidates the weakref and schedulesCOMMENT
LOW⚡python/packages/core/tests/workflow/test_workflow.py1222 # Step 3: synchronously start stream B *before* yielding to the loop,COMMENT
LOW⚡python/packages/core/tests/workflow/test_workflow.py1228 # Step 4: yield enough times for stream A's scheduled aclose to driveCOMMENT
LOW⚡python/packages/core/tests/workflow/test_workflow.py1300 # Step 1: drive stream A's body to its first yield so it set storage_a.COMMENT
LOW⚡python/packages/core/tests/workflow/test_workflow.py1306 # Step 2: drop stream A; the weakref dies and async-gen close is scheduledCOMMENT
LOW⚡python/packages/core/tests/workflow/test_workflow.py1312 # Step 3: synchronously start stream B with its own storage and drive it toCOMMENT
LOW⚡python/packages/core/tests/workflow/test_workflow.py1319 # Step 4: yield enough for stream A's scheduled aclose to drive its bodyCOMMENT
LOW⚡…re/tests/workflow/test_request_info_event_rehydrate.py263 # Step 3: Verify the pending request info event was properly serializedCOMMENT
LOW⚡…re/tests/workflow/test_request_info_event_rehydrate.py270 # Step 4: Create a fresh workflow and restore from checkpointCOMMENT
LOW⚡…re/tests/workflow/test_request_info_event_rehydrate.py274 # Step 5: Resume from checkpoint and verify the request can be continuedCOMMENT
LOW⚡…re/tests/workflow/test_request_info_event_rehydrate.py306 # Step 7: Verify the executor state was properly restored and response was processedCOMMENT
LOW⚡…re/tests/workflow/test_request_info_event_rehydrate.py343 # Step 1: Run workflow until it emits a request_info eventCOMMENT
LOW⚡…re/tests/workflow/test_request_info_event_rehydrate.py352 # Step 2: Find the checkpoint with the pending requestCOMMENT
LOW⚡…re/tests/workflow/test_request_info_event_rehydrate.py362 # Step 3: Create a fresh workflow and restore from checkpoint WITH responses in one callCOMMENT
LOW⚡…re/tests/workflow/test_request_info_event_rehydrate.py375 # Step 4: Verify the request_info event was NOT re-emitted to the callerCOMMENT
LOW⚡…re/tests/workflow/test_request_info_event_rehydrate.py384 # Step 5: Verify the response was processed by checking executor stateCOMMENT
LOW⚡…re/tests/workflow/test_request_info_event_rehydrate.py454 # Step 4: Verify the approval request_info was NOT re-emittedCOMMENT
LOW⚡…re/tests/workflow/test_request_info_event_rehydrate.py462 # Step 5: Verify the calculation request_info WAS re-emitted (no response provided)COMMENT
LOW⚡…re/tests/workflow/test_request_info_event_rehydrate.py470 # Step 6: Verify workflow is in IDLE_WITH_PENDING_REQUESTS state (calc still pending)COMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py238 # Step 1: Run workflow to completion to ensure checkpoints are createdCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py250 # Step 2: List checkpoints to find the one with our pending requestCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py293 # Step 6: Provide response to the restored request and complete the workflowCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py416 # Step 1: Run workflow until it emits multiple request_info eventsCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py430 # Step 2: Find the checkpoint with pending requestsCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py442 # Step 3: Restore from checkpoint with ONLY the approval response (not the calculation)COMMENT
LOW⚡…thon/packages/core/tests/workflow/test_sub_workflow.py726 # Step 1: run until the first request.COMMENT
LOW⚡…thon/packages/core/tests/workflow/test_sub_workflow.py734 # Step 2: answer the first request so the sub-workflow accumulates internal stateCOMMENT
LOW…thon/packages/core/tests/workflow/test_sub_workflow.py679 # Step 1: Run workflow until first requestCOMMENT
LOW…thon/packages/core/tests/workflow/test_sub_workflow.py693 # Step 2: Resume workflow from checkpointCOMMENT
137 more matches not shown…
Empty Error Handlers63 hits · 315 pts
SeverityFileLineSnippetContext
HIGH…nts/responses/foundry_memory/provision_memory_store.py65except ResourceNotFoundError:CODE
HIGH…foundry-hosted-agents/responses/custom_storage/main.py137except CosmosResourceNotFoundError:CODE
HIGH…/providers/foundry/foundry_chat_client_with_toolbox.py60except ResourceNotFoundError:CODE
HIGH…thon/samples/02-agents/harness/console/agent_runner.py348except (AttributeError, TypeError):CODE
HIGHpython/samples/02-agents/harness/console/app.py272except NoMatches:CODE
HIGHpython/samples/02-agents/harness/console/app.py519except NoMatches:CODE
HIGHpython/samples/02-agents/harness/console/app.py525except NoMatches:CODE
HIGHpython/samples/02-agents/harness/console/app.py452except NoMatches:CODE
HIGHpython/samples/02-agents/harness/console/app.py484except Exception:CODE
HIGHpython/samples/02-agents/harness/console/app.py465except NoMatches:CODE
HIGH…les/02-agents/harness/console/components/text_input.py65except Exception:CODE
HIGH…les/02-agents/harness/console/components/text_input.py77except Exception:CODE
HIGH…02-agents/harness/console/components/list_selection.py183except NoMatches:CODE
HIGH…02-agents/harness/console/components/list_selection.py206except NoMatches:CODE
HIGH…02-agents/harness/console/components/list_selection.py218except NoMatches:CODE
HIGH…02-agents/harness/console/components/list_selection.py259except NoMatches:CODE
HIGH…02-agents/harness/console/components/list_selection.py268except NoMatches:CODE
HIGH…s/02-agents/harness/console/observers/tool_approval.py148except (AttributeError, TypeError):CODE
HIGH…ive/invoke_foundry_toolbox_mcp/toolbox_provisioning.py39except ResourceNotFoundError:CODE
HIGHpython/scripts/sample_validation/playbook.py236except OSError:CODE
HIGHpython/scripts/sample_validation/playbook.py327except OSError: # pragma: no cover - defensiveCODE
HIGHpython/scripts/sample_validation/playbook.py317except Exception: # pragma: no cover - defensiveCODE
HIGH…n/packages/foundry_hosting/tests/test_responses_int.py1092except httpx.HTTPError:CODE
HIGH…packages/tools/agent_framework_tools/shell/_session.py434except (ProcessLookupError, PermissionError, OSError):CODE
HIGH…packages/tools/agent_framework_tools/shell/_session.py171except Exception: # nosec B110 - best-effort shutdown; falls through to forced kill in finallyCODE
HIGH…packages/tools/agent_framework_tools/shell/_session.py182except (asyncio.CancelledError, Exception):CODE
HIGH…packages/tools/agent_framework_tools/shell/_session.py261except asyncio.TimeoutError:CODE
HIGH…packages/tools/agent_framework_tools/shell/_session.py165except (ConnectionResetError, BrokenPipeError):CODE
HIGH…packages/tools/agent_framework_tools/shell/_session.py249except asyncio.TimeoutError:CODE
HIGH…ackages/tools/agent_framework_tools/shell/_killtree.py131except (ProcessLookupError, PermissionError):CODE
HIGH…ackages/tools/agent_framework_tools/shell/_killtree.py120except (FileNotFoundError, OSError):CODE
HIGHpython/packages/core/tests/core/test_middleware.py1780except ValueError:CODE
HIGHpython/packages/core/tests/workflow/test_workflow.py552except Exception:CODE
HIGHpython/packages/core/agent_framework/_types.py2406except (AdditionItemMismatch, ContentError):CODE
HIGHpython/packages/core/agent_framework/_serialization.py762except TypeError:CODE
HIGHpython/packages/core/agent_framework/_serialization.py767except TypeError:CODE
HIGHpython/packages/core/agent_framework/_serialization.py772except TypeError:CODE
HIGHpython/packages/core/agent_framework/_evaluation.py1135except (json.JSONDecodeError, TypeError):CODE
HIGHpython/packages/core/agent_framework/_tools.py2172except _FunctionArgumentValidationError:CODE
HIGHpython/packages/core/agent_framework/observability.py3798except (ValueError, TypeError, AttributeError):CODE
HIGHpython/packages/core/agent_framework/_settings.py205except (ValueError, TypeError):CODE
HIGHpython/packages/core/agent_framework/_harness/_mode.py165except ValueError:CODE
HIGH…packages/gemini/agent_framework_gemini/_chat_client.py825except (json.JSONDecodeError, ValueError):CODE
HIGHpython/packages/devui/agent_framework_devui/__init__.py190except (http.client.HTTPException, OSError, TimeoutError):CODE
HIGH…hon/packages/devui/agent_framework_devui/_discovery.py777except (TypeError, AttributeError):CODE
HIGH…hon/packages/devui/agent_framework_devui/_discovery.py768except ImportError:CODE
HIGH…thon/packages/devui/agent_framework_devui/_executor.py990except (json.JSONDecodeError, TypeError):CODE
HIGHpython/packages/devui/agent_framework_devui/_server.py901except (asyncio.CancelledError, asyncio.TimeoutError):CODE
HIGH…kages/devui/tests/devui/test_openai_sdk_integration.py87except Exception:CODE
HIGH…n/packages/devui/tests/devui/test_schema_generation.py151except (TypeError, ValueError, AttributeError):CODE
HIGHpython/packages/devui/tests/devui/test_cleanup_hooks.py240except Exception:CODE
HIGHpython/packages/oracle/tests/oracle/test_settings.py179except ValueError:CODE
HIGH…hon/packages/lab/lightning/samples/train_math_agent.py97except Exception: # ruff:ignore[try-except-pass]CODE
HIGH…hon/packages/ag-ui/agent_framework_ag_ui/_agent_run.py1338except KeyError:CODE
HIGH…hon/packages/ag-ui/agent_framework_ag_ui/_agent_run.py1396except KeyError:CODE
HIGHpython/packages/ag-ui/agent_framework_ag_ui/_utils.py77except json.JSONDecodeError:CODE
HIGHpython/packages/orchestrations/tests/test_magentic.py122except Exception: # pragma: no cover - defensiveCODE
HIGH…ges/declarative/agent_framework_declarative/_models.py28except (ImportError, RuntimeError):CODE
HIGH…ative/agent_framework_declarative/_workflows/_state.py580except ValueError:CODE
HIGH…_framework_declarative/_workflows/_executors_agents.py290except json.JSONDecodeError:CODE
3 more matches not shown…
Fake / Example Data311 hits · 275 pts
SeverityFileLineSnippetContext
LOW⚡…ows/human-in-the-loop/agents_with_approval_requests.py82 "manager": "John Doe",CODE
LOW⚡…ows/human-in-the-loop/agents_with_approval_requests.py88 "manager": "John Doe",CODE
LOW⚡…ows/human-in-the-loop/agents_with_approval_requests.py94 "manager": "John Doe",CODE
LOW…ows/human-in-the-loop/agents_with_approval_requests.py109 "name": "John Doe",CODE
LOW⚡python/samples/03-workflows/resources/long_text.txt1Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt1Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt3Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt3Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt5Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt5Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt7Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt7Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt9Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt9Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt11Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt11Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt13Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt13Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt15Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt15Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt17Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt17Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt19Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt19Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt21Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt21Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt23Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt23Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt25Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt25Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt27Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt27Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt29Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt29Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt31Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt31Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt33Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt33Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt35Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt35Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt37Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt37Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt39Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt39Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt41Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt41Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt43Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt43Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt45Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt45Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt47Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt47Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt49Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt49Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt51Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt51Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt53Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt53Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt55Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOW⚡python/samples/03-workflows/resources/long_text.txt55Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
251 more matches not shown…
Modern Structural Boilerplate274 hits · 266 pts
SeverityFileLineSnippetContext
LOWpython/agent_framework_meta/__init__.py31__all__ = ["__version__"]CODE
LOWpython/samples/04-hosting/a2a/a2a_server.py30logger = logging.getLogger(__name__)CODE
LOWpython/samples/04-hosting/a2a/agent_framework_to_a2a.py30logger = logging.getLogger(__name__)CODE
LOW…/04-hosting/af-hosting/local_responses_workflow/app.py111 def set_many(self, cursors: Mapping[str, CheckpointCursor]) -> None:CODE
LOW⚡python/samples/02-agents/auto_retry.py61logger = logging.getLogger(__name__)CODE
LOW…ples/02-agents/middleware/atr_validation_middleware.py49logger = logging.getLogger(__name__)CODE
LOW…thon/samples/02-agents/devui/agent_weather/__init__.py7__all__ = ["agent"]CODE
LOWpython/samples/02-agents/devui/agent_weather/agent.py31logger = logging.getLogger(__name__)CODE
LOW…2-agents/devui/agent_content_understanding/__init__.py6__all__ = ["agent"]CODE
LOW…ent_understanding_file_search_azure_openai/__init__.py6__all__ = ["agent"]CODE
LOW…mples/02-agents/devui/workflow_with_agents/__init__.py7__all__ = ["workflow"]CODE
LOW…thon/samples/02-agents/devui/agent_foundry/__init__.py7__all__ = ["agent"]CODE
LOW…thon/samples/02-agents/devui/workflow_spam/__init__.py7__all__ = ["workflow"]CODE
LOW…ples/02-agents/providers/anthropic/anthropic_skills.py16logger = logging.getLogger(__name__)CODE
LOW…hon/samples/02-agents/observability/foundry_tracing.py48logger = logging.getLogger(__name__)CODE
LOW…d_your_own_claw/claw_step04_production_ready/hosted.py72logger = logging.getLogger(__name__)CODE
LOW…ld_your_own_claw/claw_step04_production_ready/agent.py87logger = logging.getLogger(__name__)CODE
LOW…ples/02-agents/harness/console/textual_state_driver.py134 def set_show_spinner(self, show: bool) -> None:CODE
LOW…ples/02-agents/harness/console/textual_state_driver.py220 def update_streaming_text(self, accumulated_text: str) -> None:CODE
LOW…ples/02-agents/harness/console/textual_state_driver.py262 def set_usage_text(self, usage_text: str | None) -> None:CODE
LOW…ples/02-agents/harness/console/textual_state_driver.py267 def set_mode(self, mode: str | None, mode_color: str | None = None) -> None:CODE
LOW…ples/02-agents/harness/console/textual_state_driver.py347 def set_queued_messages(self, pending: list[str]) -> None:CODE
LOW…thon/samples/02-agents/harness/console/state_driver.py61 def update_streaming_text(self, accumulated_text: str) -> None:CODE
LOW…thon/samples/02-agents/harness/console/state_driver.py133 def set_mode(self, mode: str | None, mode_color: str | None = None) -> None:CODE
LOW…thon/samples/02-agents/harness/console/state_driver.py145 def set_show_spinner(self, show: bool) -> None:CODE
LOW…thon/samples/02-agents/harness/console/state_driver.py155 def set_usage_text(self, usage_text: str | None) -> None:CODE
LOW…thon/samples/02-agents/harness/console/state_driver.py194 def set_queued_messages(self, pending: list[str]) -> None:CODE
LOW…thon/samples/02-agents/harness/console/state_driver.py266 def update_streaming_text(self, text: str) -> None:CODE
LOW…thon/samples/02-agents/harness/console/state_driver.py285 def set_show_spinner(self, show: bool) -> None:CODE
LOW…thon/samples/02-agents/harness/console/state_driver.py291 def set_mode(self, mode: str | None, mode_color: str | None = None) -> None:CODE
LOW…thon/samples/02-agents/harness/console/state_driver.py302 def set_usage_text(self, usage_text: str | None) -> None:CODE
LOW…thon/samples/02-agents/harness/console/state_driver.py329 def update_last_entry(self, entry_type, new_text: str) -> None:CODE
LOW…thon/samples/02-agents/harness/console/state_driver.py340 def set_queued_messages(self, pending: list[str]) -> None:CODE
LOWpython/samples/02-agents/harness/console/__init__.py19__all__ = [CODE
LOW…s/02-agents/harness/console/components/scroll_panel.py56 def set_streaming_entry(self, entry: OutputEntry) -> None:CODE
LOW…mples/02-agents/harness/console/components/__init__.py16__all__ = [CODE
LOW…02-agents/harness/console/components/list_selection.py209 def _update_options(self) -> None:CODE
LOW…samples/02-agents/harness/console/commands/__init__.py22__all__ = [CODE
LOW…amples/02-agents/harness/console/observers/__init__.py114__all__ = [CODE
LOW…orkflows/composition/sub_workflow_parallel_requests.py157 async def set_request_count(self, count: int, ctx: WorkflowContext) -> None:CODE
LOWpython/samples/03-workflows/orchestrations/magentic.py22logger = logging.getLogger(__name__)CODE
LOW…05-end-to-end/ag_ui_workflow_handoff/backend/server.py41logger = logging.getLogger(__name__)CODE
LOW⚡python/samples/05-end-to-end/chatkit-integration/app.py105logger = logging.getLogger(__name__)CODE
LOW…les/05-end-to-end/ag_ui_single_agent/backend/server.py49logger = logging.getLogger(__name__)CODE
LOWpython/scripts/check_md_code_blocks.py17logger = logging.getLogger(__name__)CODE
LOW…/sample_validation/create_dynamic_workflow_executor.py40logger = logging.getLogger(__name__)CODE
LOWpython/scripts/sample_validation/playbook.py36logger = logging.getLogger(__name__)CODE
LOWpython/scripts/sample_validation/__init__.py20__all__ = [CODE
LOWpython/scripts/sample_validation/replay_executor.py19logger = logging.getLogger(__name__)CODE
LOWpython/scripts/sample_validation/workflow.py50__all__ = ["ValidationConfig", "create_validation_workflow"]CODE
LOW…/scripts/dependencies/_dependency_bounds_upper_impl.py39logger = logging.getLogger(__name__)CODE
LOWpython/scripts/dependencies/upgrade_dev_dependencies.py23logger = logging.getLogger(__name__)CODE
LOW…hon/packages/foundry_hosting/tests/test_invocations.py343 def update_session(session: AgentSession) -> None:CODE
LOW…hon/packages/foundry_hosting/tests/test_invocations.py377 def update_session(session: AgentSession) -> None:CODE
LOW…hon/packages/foundry_hosting/tests/test_invocations.py583 def update_session(session: AgentSession) -> None:CODE
LOW…hon/packages/foundry_hosting/tests/test_invocations.py1967 def update_session(session: AgentSession) -> None:CODE
LOW…hon/packages/foundry_hosting/tests/test_invocations.py2002 def update_session(session: AgentSession) -> None:CODE
LOW…hosting/tests/foundry_hosting/test_native_responses.py925 async def update_response(self, response: Any, **kwargs: Any) -> None:CODE
LOW…osting/agent_framework_foundry_hosting/_invocations.py67logger = logging.getLogger(__name__)CODE
LOW…ry_hosting/agent_framework_foundry_hosting/_toolbox.py45logger = logging.getLogger(__name__)CODE
214 more matches not shown…
AI Slop Vocabulary90 hits · 244 pts
SeverityFileLineSnippetContext
MEDIUM…s/04-hosting/af-hosting/local_responses_harness/app.py95# Token budget for the harness compaction feature.COMMENT
MEDIUM…es/02-agents/middleware/agent_loop_middleware_judge.py69 # boundaries (robust to function calling, where one iteration may issue several model calls).COMMENT
MEDIUM…es/02-agents/middleware/agent_loop_middleware_todos.py64 # those boundaries — robust to the function calling this loop relies on (the todo tools issueCOMMENT
MEDIUM…-agents/middleware/agent_loop_middleware_refinement.py77 # those boundaries (robust to function calling, where one iteration may issue several modelCOMMENT
MEDIUM…thon/samples/02-agents/devui/workflow_spam/workflow.py394# Build the comprehensive 4-step workflow with branching logic and HIL supportCOMMENT
MEDIUM…es/02-agents/context_providers/redis/redis_sessions.py160 # Test comprehensive memory retrievalCOMMENT
MEDIUMpython/samples/02-agents/harness/harness_research.py11# uv run samples/02-agents/harness/harness_research.pyCOMMENT
MEDIUM⚡python/samples/02-agents/harness/harness_research.py101 # Create a harness agent with research-specific instructions.STRING
MEDIUM⚡python/samples/02-agents/harness/harness_research.py111 # Enable harness looping: while the agent is in "execute" mode and still has open todos,STRING
MEDIUM⚡python/samples/02-agents/harness/harness_research.py120 # Run the harness console with the research agent.STRING
MEDIUM…n/samples/02-agents/harness/harness_data_processing.py11# uv run samples/02-agents/harness/harness_data_processing.pyCOMMENT
MEDIUM⚡…n/samples/02-agents/harness/harness_data_processing.py108 # Create a harness agent with data-analyst instructions. Unused features areSTRING
MEDIUM…n/samples/02-agents/harness/harness_data_processing.py125 # Run the harness console. This sample has no plan/execute mode, so it usesSTRING
MEDIUM…ness/build_your_own_claw/claw_step01_meet_your_claw.py11# uv run python/samples/02-agents/harness/build_your_own_claw/claw_step01_meet_your_claw.pyCOMMENT
MEDIUM…ness/build_your_own_claw/claw_step01_meet_your_claw.py49# Reuse the shared harness console that lives in the parent ``harness/`` directory.COMMENT
MEDIUM⚡…ness/build_your_own_claw/claw_step01_meet_your_claw.py118 # credential). The harness works with ANY chat client — see the providers samples for OpenAI,COMMENT
MEDIUM⚡…ness/build_your_own_claw/claw_step01_meet_your_claw.py124 # Turn the chat client into a harness agent with finance instructions and our customCOMMENT
MEDIUM⚡…ness/build_your_own_claw/claw_step01_meet_your_claw.py134 # Run the interactive console session using the shared harness console helper.COMMENT
MEDIUM…s/build_your_own_claw/claw_step02_working_with_data.py12# uv run python/samples/02-agents/harness/build_your_own_claw/claw_step02_working_with_data.pyCOMMENT
MEDIUM…s/build_your_own_claw/claw_step02_working_with_data.py70# Reuse the shared harness console that lives in the parent ``harness/`` directory.COMMENT
MEDIUM…s/build_your_own_claw/claw_step02_working_with_data.py248 # Turn the chat client into a harness agent. On top of Post 1's defaults we point fileCOMMENT
MEDIUM…uild_your_own_claw/claw_step03_scaling_capabilities.py15# uv run python/samples/02-agents/harness/build_your_own_claw/claw_step03_scaling_capabilities.pyCOMMENT
MEDIUM…uild_your_own_claw/claw_step03_scaling_capabilities.py82# Reuse the shared harness console that lives in the parent ``harness/`` directory, and the localCOMMENT
MEDIUM…uild_your_own_claw/claw_step03_scaling_capabilities.py240 # This sub-agent doesn't need any harness machinery - it's a plain chat agent with a singleCOMMENT
MEDIUM…uild_your_own_claw/claw_step03_scaling_capabilities.py241 # tool: the same hosted web search the harness would have added. The parent still exposes theCOMMENT
MEDIUM…uild_your_own_claw/claw_step03_scaling_capabilities.py311 # Turn the chat client into a harness agent. On top of Post 2's file access and approvals weCOMMENT
MEDIUM…ld_your_own_claw/claw_step04_production_ready/evals.py114 # store=False keeps chat history client-side (managed by the harness InMemoryHistoryProvider)COMMENT
MEDIUM…thon/samples/02-agents/harness/console/agent_runner.py408 """Format token counts matching C# harness style: 📊 Tokens — input: X | output: Y | total: Z."""STRING
MEDIUM…s/05-end-to-end/workflow_evaluation/create_workflow.py105 # Generate comprehensive travel plan summaryCOMMENT
MEDIUM…foundry_hosting/tests/foundry_hosting/test_conftest.py67 # Isolate only the child harness, which needs pytest-retry but no application plugins.STRING
MEDIUM…ackages/tools/agent_framework_tools/shell/_killtree.py104 """Fallback when psutil isn't installed. Less robust on Windows."""STRING
LOW⚡python/packages/core/tests/core/test_observability.py3435 # Should not raise, should just return earlyCOMMENT
LOW⚡…ackages/core/tests/workflow/test_request_info_mixin.py184 # Create a mock context - we'll just use None since the handler doesn't use itCOMMENT
MEDIUM…hon/packages/core/tests/workflow/test_serialization.py693 # Create executors for a comprehensive workflowCOMMENT
MEDIUM…n/packages/core/tests/workflow/test_workflow_kwargs.py517 # A more comprehensive integration test would require the manager to select an agent.COMMENT
MEDIUMpython/packages/core/agent_framework/_serialization.py270 """Mixin class providing comprehensive serialization and deserialization capabilities.STRING
MEDIUMpython/packages/core/agent_framework/observability.py3712 # This is a simplified approach - in production you'd want more robust parsingCOMMENT
MEDIUMpython/packages/core/agent_framework/observability.py3782 # This is a simplified approach - in production you'd want more robust parsingCOMMENT
MEDIUMpython/packages/core/agent_framework/_harness/_agent.py562 # Warn when opting into harness features that are still experimental. create_harness_agentCOMMENT
MEDIUMpython/packages/core/agent_framework/_harness/_agent.py659 # Assemble middleware. Tool approval is enabled by default (like the .NET harness) and isCOMMENT
MEDIUM…packages/core/agent_framework/_harness/_file_memory.py90# from the other harness prefixes so the same value under a different componentCOMMENT
MEDIUM…ges/core/agent_framework/_workflows/_agent_executor.py394 """Enable seamless chaining: accept a prior AgentExecutorResponse as input.STRING
MEDIUM…ackages/core/agent_framework/_workflows/_validation.py172 # The comprehensive validation is already done during handler registration:COMMENT
MEDIUMpython/packages/devui/agent_framework_devui/_mapper.py1405 # Content type mappers - implementing our comprehensive mapping planCOMMENT
MEDIUMpython/packages/devui/agent_framework_devui/_server.py626 # Generate schema using comprehensive schema generationCOMMENT
MEDIUM…ackages/devui/agent_framework_devui/ui/assets/index.js9`).replace(vd,``)}function bd(e,t){return t=yd(t),yd(e)===t}function xd(){}function Sd(e,t,n,r,a,o){switch(n){case`childCODE
MEDIUMpython/packages/lab/tau2/samples/run_benchmark.py47 """Run comprehensive tau2 benchmark evaluation using agent framework.STRING
MEDIUMpython/packages/lab/tau2/samples/run_benchmark.py150 # Evaluate performance using tau2's comprehensive metricsCOMMENT
MEDIUMpython/packages/lab/tau2/samples/run_benchmark.py200 # Evaluate performance using tau2's comprehensive metricsCOMMENT
MEDIUM…n/packages/lab/tau2/agent_framework_lab_tau2/runner.py394 """Evaluate agent performance using tau2's comprehensive evaluation system.STRING
MEDIUM…n/packages/lab/tau2/agent_framework_lab_tau2/runner.py428 # Run comprehensive multi-dimensional evaluationCOMMENT
MEDIUM…work_ag_ui_examples/agents/research_assistant_agent.py14 """Research a topic and generate a comprehensive report.STRING
MEDIUMpython/packages/ag-ui/tests/ag_ui/test_endpoint.py12071 # Pause: the harness surfaces the provider-injected tool for approval, nothing executes yet.COMMENT
MEDIUM…n/packages/ag-ui/agent_framework_ag_ui/_a2ui/_agent.py827 # the first that parses — robust whether or not a coalesced fragment arrives,COMMENT
MEDIUM⚡python/packages/ag-ui/getting_started/server.py41# In production, you should use a more robust authentication mechanism such as:COMMENT
LOW…t_framework_declarative/_workflows/_executors_basic.py434 # No key field - just addCOMMENT
MEDIUM…light/agent_framework_hyperlight/_execute_code_tool.py360 # needed and we want dispose to remain robust during teardown.COMMENT
LOW…packages/ollama/agent_framework_ollama/_chat_client.py338 # we can just pass in None for the host, the default is set by the Ollama package.COMMENT
MEDIUM⚡…ackages/openai/tests/openai/test_openai_chat_client.py392 """Test request preparation with a comprehensive parameter set."""STRING
MEDIUM…kflows.Declarative.UnitTests/Workflows/SendActivity.cs29/// Declarative workflows utilize Power FX for defining conditions and expressions.COMMENT
30 more matches not shown…
Synthetic Comment Markers27 hits · 202 pts
SeverityFileLineSnippetContext
HIGHpython/packages/core/tests/test_security.py2608 # By default, AI-generated calls are UNTRUSTEDCOMMENT
HIGH…kflows.Declarative.UnitTests/Workflows/SendActivity.cs3// This code was generated by a tool.COMMENT
HIGH…ows.Declarative.UnitTests/Workflows/SetTextVariable.cs3// This code was generated by a tool.COMMENT
HIGH…kflows.Declarative.UnitTests/Workflows/LoopContinue.cs3// This code was generated by a tool.COMMENT
HIGH…rkflows.Declarative.UnitTests/Workflows/SetVariable.cs3// This code was generated by a tool.COMMENT
HIGH…rkflows.Declarative.UnitTests/Workflows/EditTableV2.cs3// This code was generated by a tool.COMMENT
HIGH…ive.UnitTests/Workflows/RetrieveConversationMessage.cs3// This code was generated by a tool.COMMENT
HIGH….Declarative.UnitTests/Workflows/CreateConversation.cs3// This code was generated by a tool.COMMENT
HIGH…orkflows.Declarative.UnitTests/Workflows/ParseValue.cs3// This code was generated by a tool.COMMENT
HIGH…s.AI.Workflows.Declarative.UnitTests/Workflows/Goto.cs3// This code was generated by a tool.COMMENT
HIGH…flows.Declarative.UnitTests/Workflows/ConditionElse.cs3// This code was generated by a tool.COMMENT
HIGH…lows.Declarative.UnitTests/Workflows/CancelWorkflow.cs3// This code was generated by a tool.COMMENT
HIGH…Workflows.Declarative.UnitTests/Workflows/LoopBreak.cs3// This code was generated by a tool.COMMENT
HIGH…ows.Declarative.UnitTests/Workflows/EndConversation.cs3// This code was generated by a tool.COMMENT
HIGH…Workflows.Declarative.UnitTests/Workflows/EditTable.cs3// This code was generated by a tool.COMMENT
HIGH…s.Declarative.UnitTests/Workflows/ClearAllVariables.cs3// This code was generated by a tool.COMMENT
HIGH…rative.UnitTests/Workflows/CopyConversationMessages.cs3// This code was generated by a tool.COMMENT
HIGH….Workflows.Declarative.UnitTests/Workflows/LoopEach.cs3// This code was generated by a tool.COMMENT
HIGH…larative.UnitTests/Workflows/AddConversationMessage.cs3// This code was generated by a tool.COMMENT
HIGH…Workflows.Declarative.UnitTests/Workflows/Condition.cs3// This code was generated by a tool.COMMENT
HIGH…ve.UnitTests/Workflows/RetrieveConversationMessages.cs3// This code was generated by a tool.COMMENT
HIGH…flows.Declarative.UnitTests/Workflows/ResetVariable.cs3// This code was generated by a tool.COMMENT
HIGH…rkflows.Declarative.UnitTests/Workflows/InvokeAgent.cs3// This code was generated by a tool.COMMENT
HIGH…rkflows.Declarative.UnitTests/Workflows/EndWorkflow.cs3// This code was generated by a tool.COMMENT
HIGHdotnet/src/Microsoft.Agents.AI/TextSearchProvider.cs44/// when and what to search for — the search query text is AI-generated and should be treated as untrusted input by the COMMENT
HIGH…icrosoft.Agents.AI/Memory/ChatHistoryMemoryProvider.cs48/// the AI model controls when and what to search for. The search query is AI-generated and should be treated as untrustCOMMENT
HIGH….Declarative/ObjectModel/InvokeFunctionToolExecutor.cs229 // actual AI-generated tool calls and would be rejected by the API.COMMENT
Verbosity Indicators108 hits · 199 pts
SeverityFileLineSnippetContext
LOW…ents/tools/function_tool_with_approval_and_sessions.py43 # Step 1: Agent requests to call the toolCOMMENT
LOW…ents/tools/function_tool_with_approval_and_sessions.py61 # Step 2: Send approval responseCOMMENT
LOW⚡…ples/02-agents/observability/workflow_observability.py77 # Step 1: Create the executors.COMMENT
LOW⚡…ples/02-agents/observability/workflow_observability.py81 # Step 2: Build the workflow with the defined edges.COMMENT
LOW⚡…ples/02-agents/observability/workflow_observability.py86 # Step 3: Run the workflow with an initial message.COMMENT
LOW⚡…es/02-agents/skills/script_approval/script_approval.py90 # Step 1: Send the user request — the agent will try to call the scriptCOMMENT
LOW⚡…es/02-agents/skills/script_approval/script_approval.py95 # Step 2: Handle approval requests (with sessions, context isCOMMENT
LOW…-workflows/parallelism/map_reduce_and_visualization.py260 # Step 1: Create executor instances.COMMENT
LOW…-workflows/parallelism/map_reduce_and_visualization.py278 # Step 2: Build the workflow graph using fan out and fan in edges.COMMENT
LOW⚡…-workflows/parallelism/map_reduce_and_visualization.py306 # Step 3: Open the text file and read its content.COMMENT
LOW⚡…-workflows/parallelism/map_reduce_and_visualization.py310 # Step 4: Run the workflow with the raw text as input.COMMENT
LOW⚡…amples/03-workflows/composition/sub_workflow_basics.py152 # Step 1: Create the parent workflowCOMMENT
LOW⚡…amples/03-workflows/composition/sub_workflow_basics.py162 # Step 2: Test data - various text stringsCOMMENT
LOW⚡…amples/03-workflows/composition/sub_workflow_basics.py175 # Step 3: Run the workflowCOMMENT
LOW⚡…amples/03-workflows/composition/sub_workflow_basics.py178 # Step 4: Display resultsCOMMENT
LOW…amples/03-workflows/composition/sub_workflow_basics.py192 # Step 6: Display summaryCOMMENT
LOWpython/samples/03-workflows/control-flow/simple_loop.py139 # Step 1: Build the workflow with the defined edges.COMMENT
LOWpython/samples/03-workflows/control-flow/simple_loop.py155 # Step 2: Run the workflow with concise streaming output.COMMENT
LOW⚡…ples/03-workflows/control-flow/sequential_executors.py63 # Step 1: Build the workflow graph.COMMENT
LOW⚡…ples/03-workflows/control-flow/sequential_executors.py72 # Step 2: Stream events for a single input.COMMENT
LOW…ples/03-workflows/control-flow/sequential_streaming.py25# Step 1: Define methods using the executor decorator.COMMENT
LOW⚡…ples/03-workflows/control-flow/sequential_streaming.py56 # Step 1: Build the workflow with the defined edges.COMMENT
LOW⚡…ples/03-workflows/control-flow/sequential_streaming.py60 # Step 2: Run the workflow and stream events in real time.COMMENT
LOW⚡python/packages/core/tests/workflow/test_workflow.py1211 # Step 1: drive stream A's body until it's suspended at its first yield.COMMENT
LOW⚡python/packages/core/tests/workflow/test_workflow.py1216 # Step 2: drop stream A; GC invalidates the weakref and schedulesCOMMENT
LOW⚡python/packages/core/tests/workflow/test_workflow.py1222 # Step 3: synchronously start stream B *before* yielding to the loop,COMMENT
LOW⚡python/packages/core/tests/workflow/test_workflow.py1228 # Step 4: yield enough times for stream A's scheduled aclose to driveCOMMENT
LOW⚡python/packages/core/tests/workflow/test_workflow.py1300 # Step 1: drive stream A's body to its first yield so it set storage_a.COMMENT
LOW⚡python/packages/core/tests/workflow/test_workflow.py1306 # Step 2: drop stream A; the weakref dies and async-gen close is scheduledCOMMENT
LOW⚡python/packages/core/tests/workflow/test_workflow.py1312 # Step 3: synchronously start stream B with its own storage and drive it toCOMMENT
LOW⚡python/packages/core/tests/workflow/test_workflow.py1319 # Step 4: yield enough for stream A's scheduled aclose to drive its bodyCOMMENT
LOW⚡…re/tests/workflow/test_request_info_event_rehydrate.py263 # Step 3: Verify the pending request info event was properly serializedCOMMENT
LOW⚡…re/tests/workflow/test_request_info_event_rehydrate.py270 # Step 4: Create a fresh workflow and restore from checkpointCOMMENT
LOW⚡…re/tests/workflow/test_request_info_event_rehydrate.py274 # Step 5: Resume from checkpoint and verify the request can be continuedCOMMENT
LOW⚡…re/tests/workflow/test_request_info_event_rehydrate.py306 # Step 7: Verify the executor state was properly restored and response was processedCOMMENT
LOW⚡…re/tests/workflow/test_request_info_event_rehydrate.py343 # Step 1: Run workflow until it emits a request_info eventCOMMENT
LOW⚡…re/tests/workflow/test_request_info_event_rehydrate.py352 # Step 2: Find the checkpoint with the pending requestCOMMENT
LOW⚡…re/tests/workflow/test_request_info_event_rehydrate.py362 # Step 3: Create a fresh workflow and restore from checkpoint WITH responses in one callCOMMENT
LOW⚡…re/tests/workflow/test_request_info_event_rehydrate.py375 # Step 4: Verify the request_info event was NOT re-emitted to the callerCOMMENT
LOW⚡…re/tests/workflow/test_request_info_event_rehydrate.py384 # Step 5: Verify the response was processed by checking executor stateCOMMENT
LOW⚡…re/tests/workflow/test_request_info_event_rehydrate.py454 # Step 4: Verify the approval request_info was NOT re-emittedCOMMENT
LOW⚡…re/tests/workflow/test_request_info_event_rehydrate.py462 # Step 5: Verify the calculation request_info WAS re-emitted (no response provided)COMMENT
LOW⚡…re/tests/workflow/test_request_info_event_rehydrate.py470 # Step 6: Verify workflow is in IDLE_WITH_PENDING_REQUESTS state (calc still pending)COMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py238 # Step 1: Run workflow to completion to ensure checkpoints are createdCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py250 # Step 2: List checkpoints to find the one with our pending requestCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py293 # Step 6: Provide response to the restored request and complete the workflowCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py416 # Step 1: Run workflow until it emits multiple request_info eventsCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py430 # Step 2: Find the checkpoint with pending requestsCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py442 # Step 3: Restore from checkpoint with ONLY the approval response (not the calculation)COMMENT
LOW⚡…thon/packages/core/tests/workflow/test_sub_workflow.py726 # Step 1: run until the first request.COMMENT
LOW⚡…thon/packages/core/tests/workflow/test_sub_workflow.py734 # Step 2: answer the first request so the sub-workflow accumulates internal stateCOMMENT
LOW…thon/packages/core/tests/workflow/test_sub_workflow.py679 # Step 1: Run workflow until first requestCOMMENT
LOW…thon/packages/core/tests/workflow/test_sub_workflow.py693 # Step 2: Resume workflow from checkpointCOMMENT
LOW…thon/packages/core/tests/workflow/test_sub_workflow.py756 # Step 3: answer the second request. With the sub-workflow's state restored, the two-stepCOMMENT
LOWpython/packages/core/agent_framework/security.py1945 # Step 3: Build tiered fallback_labelCOMMENT
LOW⚡…on/packages/devui/agent_framework_devui/_deployment.py44 # Step 1: Validate prerequisitesCOMMENT
LOW⚡…on/packages/devui/agent_framework_devui/_deployment.py52 # Step 2: Generate DockerfileCOMMENT
LOW⚡…on/packages/devui/agent_framework_devui/_deployment.py60 # Step 3: Generate auth tokenCOMMENT
LOW⚡…on/packages/devui/agent_framework_devui/_deployment.py68 # Step 4: Discover existing Container App EnvironmentCOMMENT
LOW⚡…on/packages/devui/agent_framework_devui/_deployment.py74 # Step 5: Build and deploy with Azure CLICOMMENT
48 more matches not shown…
Redundant / Tautological Comments116 hits · 172 pts
SeverityFileLineSnippetContext
LOW…04-hosting/container/hyperlight_codeact/call_server.py19# Set FOUNDRY_AGENT_ENDPOINT to your deployed agent endpoint, e.g.COMMENT
LOW…samples/02-agents/middleware/middleware_termination.py61 # Check if the user message contains any blocked wordsCOMMENT
LOW…samples/02-agents/middleware/middleware_termination.py104 # Check if we should terminate before processingCOMMENT
LOWpython/samples/02-agents/devui/agent_weather/agent.py95 # Check if location parameter is "atlantis"COMMENT
LOW…on/samples/02-agents/devui/workflow_fanout/workflow.py206 # Check if schema validation is enabledCOMMENT
LOW…on/samples/02-agents/devui/workflow_fanout/workflow.py242 # Check if quality validation is enabledCOMMENT
LOW…on/samples/02-agents/devui/workflow_fanout/workflow.py284 # Check if security validation is enabledCOMMENT
LOW…on/samples/02-agents/devui/workflow_fanout/workflow.py380 # Check if normalization is enabledCOMMENT
LOW…on/samples/02-agents/devui/workflow_fanout/workflow.py425 # Check if enrichment is enabledCOMMENT
LOW…on/samples/02-agents/devui/workflow_fanout/workflow.py469 # Check if aggregation is enabledCOMMENT
LOW…02-agents/context_providers/simple_context_provider.py59 # Check if we need to extract user info from user messagesCOMMENT
LOW…thon/samples/02-agents/harness/console/agent_runner.py237 # Check if there are pending questions (UI needs user input)COMMENT
LOW…s/02-agents/harness/console/observers/error_display.py38 # Check if this is an error content typeCOMMENT
LOW…amples/03-workflows/composition/sub_workflow_basics.py117 # Check if all results are collectedCOMMENT
LOW…rkflows/declarative/invoke_function_tool/workflow.yaml41 # Output the resultCOMMENT
LOW…3-workflows/declarative/customer_support/workflow.yaml118 # Check if the issue was resolved by support.COMMENT
LOW…ples/03-workflows/declarative/customer_support/main.py286 # Check if this is a SendActivity output (activity text from log_ticket, log_route, etc.)COMMENT
LOW…3-workflows/control-flow/multi_selection_edge_group.py287 # Print outputs and database events from streamingCOMMENT
LOW…to-end/evaluation/red_teaming/red_team_agent_sample.py140 # Display resultsSTRING
LOW⚡python/samples/05-end-to-end/chatkit-integration/app.py399 # Check if it's a WeatherResponse (string subclass with weather_data attribute)COMMENT
LOW⚡python/samples/05-end-to-end/chatkit-integration/app.py405 # Check if it's the city selector markerCOMMENT
LOW⚡python/samples/05-end-to-end/chatkit-integration/app.py496 # Check if it's a WeatherResponse (string subclass with weather_data attribute)COMMENT
LOWpython/samples/05-end-to-end/chatkit-integration/app.py607 # Read file contentsCOMMENT
LOWpython/scripts/task_runner.py72 # Check if there is an include tooCOMMENT
LOWpython/scripts/run_tasks_in_changed_packages.py41 # Check if the file is within this project directoryCOMMENT
LOW…es/foundry/agent_framework_foundry/_memory_provider.py192 # Check if there are any non-empty input messagesCOMMENT
LOW…packages/core/tests/core/test_middleware_with_agent.py1335 # Set metadata to pass information to run middlewareCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py2820 # Set max_iterations to 1 in additional_propertiesCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py3431 # Set max_consecutive_errors to 2COMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py3508 # Set terminate_on_unknown_calls to False (default)COMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py3544 # Set terminate_on_unknown_calls to TrueCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py5276 # Set include_detailed_errors to False (default)COMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py5314 # Set include_detailed_errors to TrueCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py5414 # Set include_detailed_errors to TrueCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py5450 # Set include_detailed_errors to False (default)COMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py6936 # Set include_detailed_errors to False (default)COMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py7009 # Set include_detailed_errors to TrueCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py7082 # Set include_detailed_errors to True to see validation detailsCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py8228 # Set max_iterations to 1 in additional_propertiesCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py8797 # Set max_consecutive_errors to 2COMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py8884 # Set terminate_on_unknown_calls to False (default)COMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py8928 # Set terminate_on_unknown_calls to TrueCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py8965 # Set include_detailed_errors to TrueCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py9008 # Set include_detailed_errors to False (default)COMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py9050 # Set include_detailed_errors to TrueCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py9090 # Set include_detailed_errors to False (default)COMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py9264 # Set result to a simple value - the framework will wrap it in FunctionResultContentCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py9740 # Set result to a simple value - the framework will wrap it in FunctionResultContentCOMMENT
LOW…ages/core/tests/core/test_middleware_context_result.py181 # Check if we want to override BEFORE calling next to avoid creating unused streamsCOMMENT
LOWpython/packages/core/tests/core/test_types.py3901 # Check if this is a list of objects that were created from dictsCOMMENT
LOWpython/packages/core/agent_framework/_serialization.py637 # Check if this is an instance-specific dependency (field:name format)COMMENT
LOWpython/packages/core/agent_framework/_tools.py751 # Check if the wrapped function is a method (has 'self' parameter)COMMENT
LOWpython/packages/core/agent_framework/_mcp.py523 # Check if 'arguments' is missing or emptyCOMMENT
LOWpython/packages/core/agent_framework/_mcp.py2513 # Check if there are more pagesCOMMENT
LOWpython/packages/core/agent_framework/_mcp.py2669 # Check if there are more pagesCOMMENT
LOW…/core/agent_framework/_workflows/_function_executor.py380 # Check if there's a context parameterCOMMENT
LOW…s/core/agent_framework/_workflows/_workflow_context.py190 # Check if it's a union type and validate each memberCOMMENT
LOW…s/core/agent_framework/_workflows/_workflow_context.py202 # Check if it's a valid typeCOMMENT
LOW…core/agent_framework/_workflows/_request_info_mixin.py221 # Check if ANY explicit type parameter was provided - if so, use ONLY explicit params.COMMENT
LOW…ckages/core/agent_framework/_workflows/_edge_runner.py462 # Check if target can handle list of message data (fan-in aggregates multiple messages)COMMENT
56 more matches not shown…
AI Structural Patterns217 hits · 169 pts
SeverityFileLineSnippetContext
LOW…ld_your_own_claw/claw_step04_production_ready/agent.py292CODE
LOW…n/samples/02-agents/harness/console/harness_console.py23CODE
LOWpython/samples/02-agents/harness/console/app.py143CODE
LOWpython/packages/foundry_hosting/tests/test_responses.py694CODE
LOW…osting/agent_framework_foundry_hosting/_invocations.py332CODE
LOW…ry_hosting/agent_framework_foundry_hosting/_toolbox.py393CODE
LOW…_hosting/agent_framework_foundry_hosting/_responses.py749CODE
LOW…ing/agent_framework_foundry_hosting/_workflow_state.py386CODE
LOW…ithub_copilot/agent_framework_github_copilot/_agent.py652CODE
LOW…ithub_copilot/agent_framework_github_copilot/_agent.py1906CODE
LOW…on/packages/tools/agent_framework_tools/shell/_tool.py148CODE
LOW…/packages/tools/agent_framework_tools/shell/_docker.py432CODE
LOW…ages/foundry/agent_framework_foundry/_foundry_evals.py1057CODE
LOW…s/foundry/agent_framework_foundry/_embedding_client.py155CODE
LOW…s/foundry/agent_framework_foundry/_embedding_client.py564CODE
LOW…ckages/foundry/agent_framework_foundry/_chat_client.py173CODE
LOW…ckages/foundry/agent_framework_foundry/_chat_client.py696CODE
LOW…ckages/foundry/agent_framework_foundry/_chat_client.py1095CODE
LOW…hon/packages/foundry/agent_framework_foundry/_agent.py192CODE
LOW…hon/packages/foundry/agent_framework_foundry/_agent.py298CODE
LOW…hon/packages/foundry/agent_framework_foundry/_agent.py575CODE
LOW…hon/packages/foundry/agent_framework_foundry/_agent.py696CODE
LOW…hon/packages/foundry/agent_framework_foundry/_agent.py992CODE
LOW…es/foundry/agent_framework_foundry/_memory_provider.py70CODE
LOW…os/agent_framework_azure_cosmos/_checkpoint_storage.py117CODE
LOW…e-cosmos/agent_framework_azure_cosmos/_vector_store.py696CODE
LOW…e-cosmos/agent_framework_azure_cosmos/_vector_store.py1191CODE
LOW…e-cosmos/agent_framework_azure_cosmos/_vector_store.py1296CODE
LOW…smos/agent_framework_azure_cosmos/_history_provider.py57CODE
LOWpython/packages/core/tests/core/test_vectors.py202CODE
LOWpython/packages/core/tests/core/test_vectors.py1332CODE
LOWpython/packages/core/tests/core/test_vectors.py1601CODE
LOWpython/packages/core/agent_framework/_types.py562CODE
LOWpython/packages/core/agent_framework/_types.py1218CODE
LOWpython/packages/core/agent_framework/_types.py2762CODE
LOWpython/packages/core/agent_framework/_types.py3095CODE
LOWpython/packages/core/agent_framework/_types.py3240CODE
LOWpython/packages/core/agent_framework/_types.py3573CODE
LOWpython/packages/core/agent_framework/_types.py3703CODE
LOWpython/packages/core/agent_framework/_vectors.py2295CODE
LOWpython/packages/core/agent_framework/_vectors.py2551CODE
LOWpython/packages/core/agent_framework/_vectors.py287CODE
LOWpython/packages/core/agent_framework/_vectors.py1588CODE
LOWpython/packages/core/agent_framework/_vectors.py1624CODE
LOWpython/packages/core/agent_framework/_vectors.py1674CODE
LOWpython/packages/core/agent_framework/_vectors.py1719CODE
LOWpython/packages/core/agent_framework/_vectors.py1952CODE
LOWpython/packages/core/agent_framework/_vectors.py1997CODE
LOWpython/packages/core/agent_framework/_vectors.py2865CODE
LOWpython/packages/core/agent_framework/_vectors.py3272CODE
LOWpython/packages/core/agent_framework/_sessions.py538CODE
LOWpython/packages/core/agent_framework/_sessions.py2333CODE
LOWpython/packages/core/agent_framework/_evaluation.py1600CODE
LOWpython/packages/core/agent_framework/_evaluation.py1804CODE
LOWpython/packages/core/agent_framework/_evaluation.py416CODE
LOWpython/packages/core/agent_framework/_tools.py1564CODE
LOWpython/packages/core/agent_framework/_tools.py1580CODE
LOWpython/packages/core/agent_framework/_tools.py1595CODE
LOWpython/packages/core/agent_framework/_tools.py571CODE
LOWpython/packages/core/agent_framework/_mcp.py890CODE
157 more matches not shown…
Cross-Language Confusion23 hits · 111 pts
SeverityFileLineSnippetContext
HIGH…s/02-agents/tools/function_tool_with_max_exceptions.py100 if (b === 0) return undefined; // or throwSTRING
HIGH…s/02-agents/tools/function_tool_with_max_exceptions.py159 if (b === 0) return undefined; // or throwSTRING
HIGH…on/packages/tools/agent_framework_tools/shell/_tool.py116 ``cd /tmp && rm -rf .`` in one call can still touch ``/tmp``.CODE
HIGH⚡python/packages/tools/tests/test_docker_shell_tool.py771 r = await shell.run("wget -q -T 2 -O- http://example.com || echo NOACCESS")CODE
HIGHpython/packages/core/tests/core/test_tools.py475 arguments='{"location": "Seattle", "unit": null}',CODE
HIGHpython/packages/core/tests/core/test_tools.py436 Regression for #5934: exclude_none dropped the explicit null, so the requiredSTRING
HIGHpython/packages/core/agent_framework/_tools.py852 # explicitly provided even when their value is null, and dropCOMMENT
HIGHpython/packages/core/agent_framework/_tools.py855 # parameter the model deliberately set to null, failing theCOMMENT
HIGH…/packages/redis/agent_framework_redis/_vector_store.py303 # Portable membership never matches an actual null, including when None is in the supplied sequence.COMMENT
HIGH…ackages/devui/tests/devui/test_ui_memory_regression.py462 jsHeapBytes: performance.memory ? performance.memory.usedJSHeapSize : null,STRING
HIGHpython/packages/orchestrations/tests/test_group_chat.py102 '"next_speaker": "agent", "final_message": null}'CODE
HIGHpython/packages/orchestrations/tests/test_group_chat.py125 '"next_speaker": null, "final_message": "agent manager final"}'CODE
HIGHpython/packages/orchestrations/tests/test_group_chat.py160 '"next_speaker": "unknown", "final_message": null} 'CODE
HIGHpython/packages/orchestrations/tests/test_group_chat.py162 '"next_speaker": "agent", "final_message": null}'CODE
HIGHpython/packages/orchestrations/tests/test_group_chat.py177 '"next_speaker": null, "final_message": "concatenated manager final"}'CODE
HIGHpython/packages/orchestrations/tests/test_group_chat.py204 '{"terminate": false, "reason": "delegate", "next_speaker": "agent", "final_message": null}\n'CODE
HIGHpython/packages/orchestrations/tests/test_group_chat.py1271 '"next_speaker": "alpha", "final_message": null}'CODE
HIGHpython/packages/orchestrations/tests/test_group_chat.py1293 '"next_speaker": null, "final_message": "dynamic manager final"}'CODE
HIGHpython/packages/monty/tests/monty/test_monty_codeact.py474 "- `empty` (null, optional) Default: null.",CODE
HIGH…ent_framework_declarative/_workflows/_executors_mcp.py139 This avoids surprising ``"[42]"`` / ``"[true]"`` / ``"[null]"`` whenSTRING
HIGH⚡…thon/packages/declarative/tests/test_workflow_state.py273 assert state._eval_simple("Local.x || Local.y") is TrueCODE
HIGH⚡…thon/packages/declarative/tests/test_workflow_state.py269 """Test || operator."""STRING
HIGH…nai/tests/openai/test_openai_chat_completion_client.py2756 The OpenAI spec sends ``"delta": {}`` (not null) on finish chunks. TheseSTRING
Magic Placeholder Names19 hits · 90 pts
SeverityFileLineSnippetContext
HIGHpython/samples/README.md166| `agent-framework-gemini` | `GeminiChatClient / GeminiEmbeddingClient` | `GOOGLE_API_KEY` | `your-api-key` |CODE
HIGHpython/samples/README.md178| `agent-framework-mistral` | `MistralChatClient / MistralEmbeddingClient` | `MISTRAL_API_KEY` | `your-api-key` |CODE
HIGH…/02-agents/context_providers/azure_ai_search/README.md205 -H "api-key: YOUR_API_KEY"CODE
HIGHpython/samples/02-agents/mcp/mcp_api_key_auth.py22 python mcp_api_key_auth.py <your_api_key>STRING
HIGHpython/packages/core/agent_framework/_serialization.py551 openai_client = AsyncOpenAI(api_key="your-api-key")STRING
HIGHpython/packages/core/agent_framework/_tools.py1839 client = OpenAIChatClient(api_key="your_api_key")STRING
HIGHpython/packages/gemini/README.md100export GOOGLE_API_KEY="your-api-key"CODE
HIGHpython/packages/devui/dev.md35OPENAI_API_KEY="your-api-key-here"CODE
HIGHpython/packages/lab/lightning/README.md55 api_key="your-api-key",CODE
HIGHpython/packages/lab/tau2/README.md69 api_key="your-api-key",CODE
HIGHpython/packages/lab/tau2/README.md74 api_key="your-api-key",CODE
HIGHpython/packages/lab/tau2/README.md131export OPENAI_API_KEY="your-api-key"CODE
HIGHpython/packages/ag-ui/README.md28 api_key="your-api-key",CODE
HIGHpython/packages/ag-ui/getting_started/README.md280# export AZURE_OPENAI_API_KEY="your-api-key"COMMENT
HIGHpython/packages/mistral/README.md27# MistralChatClient(model="mistral-large-latest", api_key="your-api-key")COMMENT
HIGHpython/packages/mistral/README.md65 # MistralEmbeddingClient(model="mistral-embed", api_key="your-api-key")COMMENT
HIGH…s/mistral/agent_framework_mistral/_embedding_client.py317 api_key="your-api-key",STRING
HIGH…ckages/mistral/agent_framework_mistral/_chat_client.py938 api_key="your-api-key",STRING
HIGH…github-copilot/Agent_With_GitHubCopilot_BYOK/README.md64 ApiKey = "your-api-key",CODE
Slop Phrases37 hits · 88 pts
SeverityFileLineSnippetContext
MEDIUMpython/devsetup.sh2# Create a virtual environment with Python 3.10 (you can change this to 3.11, 3.12 or 3.13)COMMENT
MEDIUM…mples/02-agents/tools/control_total_tool_executions.py329 Response: I'm unable to use the analysis tool right now as it has reached its limit...STRING
LOW…02-agents/context_providers/simple_context_provider.py30# In order for the State to be serialized well, we need to make sure to registerCOMMENT
MEDIUM…arness/build_your_own_claw/subprocess_script_runner.py5This is provided for demonstration purposes only.STRING
MEDIUM…aw_step04_production_ready/subprocess_script_runner.py5This is provided for demonstration purposes only.STRING
MEDIUM…n/samples/02-agents/skills/subprocess_script_runner.py5This is provided for demonstration purposes only.STRING
MEDIUM…ws/human-in-the-loop/guessing_game_with_human_input.py188 # If desired, you can add more guidance here, but keep it concise.COMMENT
MEDIUM…ows/human-in-the-loop/agents_with_approval_requests.py415. The sample automatically approves the request for demonstration purposes.STRING
MEDIUM⚡…ows/human-in-the-loop/agents_with_approval_requests.py69 # For demonstration purposes, we return a fixed date.COMMENT
MEDIUM…ows/human-in-the-loop/agents_with_approval_requests.py340 Please let me know if you need more detailed information or have any questions.STRING
MEDIUM…orkflows/agents/workflow_as_agent_human_in_the_loop.py148 # Mock a human response approval for demonstration purposes.COMMENT
MEDIUM…on/samples/05-end-to-end/workflow_evaluation/_tools.py11# Note: These are mock tools for demonstration purposes. They return simulated dataCOMMENT
MEDIUM…hon/samples/05-end-to-end/chatkit-integration/store.py53 Note: This is for demonstration purposes. In production, you shouldSTRING
MEDIUM…/05-end-to-end/chatkit-integration/attachment_store.py40 Note: This is for demonstration purposes. In production, use cloud storageSTRING
MEDIUMpython/packages/core/tests/core/test_types.py180 "I cannot provide a result.",CODE
MEDIUM…ackages/openai/tests/openai/test_openai_chat_client.py1643 mock_refusal_content.refusal = "I cannot provide that information."CODE
MEDIUM…ackages/openai/tests/openai/test_openai_chat_client.py1655 assert response.messages[0].contents[0].text == "I cannot provide that information."CODE
MEDIUM…nai/tests/openai/test_openai_chat_completion_client.py1584 refusal="I cannot provide that information.",CODE
MEDIUM…nai/tests/openai/test_openai_chat_completion_client.py1598 assert message.contents[0].text == "I cannot provide that information."CODE
MEDIUM…ts/responses/Using-E2E-Resilience/IdempotentService.cs14/// For demonstration purposes only. This service and its client should not be used as-is in production.COMMENT
MEDIUM…ed_Shared_Contributor_Setup/IdempotentServiceClient.cs13/// For demonstration purposes only. This sample client and its backing service should not be used as-is in production.COMMENT
MEDIUM…nses/Hosted-Workflow-Resilient-Long-Running/Program.cs122/// For demonstration purposes only. The workflow and its backing service should not be used as-is in production.COMMENT
MEDIUM…ry/AgentWithMemory_Step01_ChatHistoryMemory/Program.cs20// For demonstration purposes, we are using an in-memory vector store.COMMENT
MEDIUM…y/AgentWithMemory_Step05_BoundedChatHistory/Program.cs26// For demonstration purposes, we are using an in-memory vector store.COMMENT
MEDIUM…/Agents/Agent_Step03_PersistedConversations/Program.cs38// Here we'll just write the serialized session to console (for demonstration purposes).COMMENT
MEDIUM…mples/02-agents/Agents/Agent_Step12_Plugins/Program.cs106 /// The weather information is hardcoded for demonstration purposes.COMMENT
MEDIUM…uildYourOwnClaw/Claw_Step01_MeetYourClaw/StockTools.cs12/// The prices returned here are mock data for demonstration purposes only and are not realCOMMENT
MEDIUM…rOwnClaw/Claw_Step03_ScalingCapabilities/StockTools.cs12/// The prices and earnings figures returned here are mock data for demonstration purposes only andCOMMENT
MEDIUM…w_Step03_ScalingCapabilities/SubprocessScriptRunner.cs5// This is provided for demonstration purposes only.COMMENT
MEDIUM…w_Step03_ScalingCapabilities/SubprocessScriptRunner.cs19/// as a positional argument. It is intended for demonstration purposes only.COMMENT
MEDIUM…dYourOwnClaw/Claw_Step02_WorkingWithData/StockTools.cs12/// The prices returned here are mock data for demonstration purposes only and are not realCOMMENT
MEDIUM…foundry/Agent_Step06_PersistedConversations/Program.cs31// Save the serialized session to a temporary file (for demonstration purposes).COMMENT
MEDIUM…foundry/Agent_Step06_PersistedConversations/Program.cs35// Load the serialized session from the temporary file (for demonstration purposes).COMMENT
MEDIUM…AgentProviders/foundry/Agent_Step13_Plugins/Program.cs122 /// The weather information is hardcoded for demonstration purposes.COMMENT
MEDIUM…02-agents/Evaluation/Evaluation_CustomEvals/Program.cs28 && !response.Contains("I'm unable to", StringComparison.OrdinalIgnoreCase)CODE
MEDIUM…amples/02-agents/AgentSkills/SubprocessScriptRunner.cs5// This is provided for demonstration purposes only.COMMENT
MEDIUM…amples/02-agents/AgentSkills/SubprocessScriptRunner.cs17/// as a positional argument. It is intended for demonstration purposes only.COMMENT
Dead Code22 hits · 40 pts
SeverityFileLineSnippetContext
MEDIUM…-hosted-agents/invocations/telegram/tests/test_main.py54CODE
MEDIUM…packages/core/tests/core/test_middleware_with_agent.py170CODE
MEDIUM…packages/core/tests/core/test_middleware_with_agent.py171CODE
MEDIUM…packages/core/tests/core/test_middleware_with_agent.py2096CODE
MEDIUM…packages/core/tests/core/test_middleware_with_agent.py2097CODE
MEDIUM…ages/core/tests/core/test_function_invocation_logic.py1218CODE
MEDIUMpython/packages/core/tests/core/test_mcp_http_auth.py296CODE
MEDIUMpython/packages/core/tests/core/test_types.py6331CODE
MEDIUMpython/packages/core/tests/core/test_types.py6350CODE
MEDIUMpython/packages/core/tests/core/test_types.py6372CODE
MEDIUMpython/packages/core/tests/core/test_agent_hooks.py2252CODE
MEDIUMpython/packages/ag-ui/tests/ag_ui/test_http_service.py116CODE
MEDIUMpython/packages/ag-ui/tests/ag_ui/test_http_service.py161CODE
MEDIUMpython/packages/ag-ui/tests/ag_ui/test_http_service.py209CODE
MEDIUMpython/packages/ag-ui/tests/ag_ui/test_http_service.py241CODE
MEDIUMpython/packages/ag-ui/tests/ag_ui/test_http_service.py347CODE
MEDIUMpython/packages/ag-ui/tests/ag_ui/test_workflow_run.py3248CODE
MEDIUMpython/packages/ag-ui/tests/ag_ui/test_a2ui.py311CODE
MEDIUMpython/packages/ag-ui/tests/ag_ui/test_a2ui.py325CODE
MEDIUM…ges/ag-ui/tests/ag_ui/golden/test_scenario_workflow.py481CODE
MEDIUM…ting-telegram/tests/hosting_telegram/test_rendering.py211CODE
MEDIUMpython/packages/chatkit/tests/test_streaming.py29CODE
AI Response Leakage4 hits · 30 pts
SeverityFileLineSnippetContext
HIGHpython/samples/02-agents/compaction/basics.py104 # plus matching tool result messages). In this example, setting to 0 removesCOMMENT
HIGH…samples/02-agents/context_providers/mem0/mem0_basic.py35 # In this example, we associate Mem0 records with user_id.COMMENT
HIGH…n/samples/02-agents/context_providers/mem0/mem0_oss.py36 # In this example, we associate Mem0 records with user_id.COMMENT
HIGHpython/packages/ag-ui/getting_started/server.py113# In this example:COMMENT
Example Usage Blocks14 hits · 21 pts
SeverityFileLineSnippetContext
LOW…uction_ready/skills/risk-scoring/scripts/risk_score.py8# Usage:COMMENT
LOW…on_ready/skills/valuation/scripts/valuation_metrics.py8# Usage:COMMENT
LOW…our_own_claw/skills/risk-scoring/scripts/risk_score.py8# Usage:COMMENT
LOW…own_claw/skills/valuation/scripts/valuation_metrics.py8# Usage:COMMENT
LOW…/mixed_skills/skills/unit-converter/scripts/convert.py4# Usage:COMMENT
LOW…e_based_skill/skills/unit-converter/scripts/convert.py4# Usage:COMMENT
LOW…oundryHostedAgents/scripts/add-local-framework-feed.sh30# Usage:COMMENT
LOW…dy/ClawAgent/skills/risk-scoring/scripts/risk_score.py8# Usage:COMMENT
LOW…lawAgent/skills/valuation/scripts/valuation_metrics.py8# Usage:COMMENT
LOW…Capabilities/skills/risk-scoring/scripts/risk_score.py8# Usage:COMMENT
LOW…bilities/skills/valuation/scripts/valuation_metrics.py8# Usage:COMMENT
LOW…sAutoApproval/skills/unit-converter/scripts/convert.py4# Usage:COMMENT
LOW…dSkills/skills/unit-converter/scripts/convert-units.py4# Usage:COMMENT
LOW…leBasedSkills/skills/unit-converter/scripts/convert.py4# Usage:COMMENT
Overly Generic Function Names16 hits · 12 pts
SeverityFileLineSnippetContext
LOWpython/packages/foundry_hosting/tests/test_responses.py1761 def handle_request(request: Any) -> Any:CODE
LOW…ages/github_copilot/tests/test_github_copilot_agent.py2808 def my_function(arg: str) -> str:CODE
LOW…ages/foundry/tests/foundry/test_foundry_chat_client.py1054 def handle_request(request: Any) -> Any:CODE
LOW⚡python/packages/core/tests/core/test_skills.py5529 def my_function(key: str = "") -> str:CODE
LOWpython/packages/core/tests/core/test_feature_stage.py109 def my_function(value: int) -> int:CODE
LOWpython/packages/core/tests/core/test_feature_stage.py455 def my_function() -> None:STRING
LOW⚡…packages/core/tests/workflow/test_function_executor.py81 async def my_function(data: dict[str, Any], ctx: WorkflowContext[Any]) -> None:CODE
LOW…/core/agent_framework/_workflows/_function_executor.py248 def process_data(data: str):STRING
LOWpython/packages/a2a/tests/test_a2a_agent.py521 def handle_request(request: httpx.Request) -> httpx.Response:CODE
LOW⚡python/packages/lab/gaia/samples/gaia_sample.py148 async def run_task(task: Task) -> Prediction:CODE
LOW…n/packages/typesafe/tests/typesafe/test_chat_client.py258 def handle_request(request: httpx2.Request) -> httpx2.Response:CODE
LOW…/packages/declarative/tests/test_declarative_loader.py1429 def my_function():STRING
LOW…on/packages/declarative/tests/test_workflow_factory.py631 def my_function(x):CODE
LOW…es/ollama/tests/ollama/test_ollama_embedding_client.py129 def handle_request(request: httpx.Request) -> httpx.Response:CODE
LOW…ackages/openai/tests/openai/test_openai_chat_client.py6424 def handle_request(request: Any) -> Any:CODE
LOW…nai/tests/openai/test_openai_chat_completion_client.py363 def test_function(query: str) -> str:CODE
Cross-Language Confusion (JS/TS)2 hits · 10 pts
SeverityFileLineSnippetContext
HIGH…ackages/devui/agent_framework_devui/ui/assets/index.js126 print(response)CODE
HIGH…mponents/features/gallery/setup-instructions-modal.tsx175 print(response)CODE