Repository Analysis

microsoft/agent-framework

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

22.5 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of microsoft/agent-framework, a Python project with 12,114 GitHub stars. SynthScan v2.0 examined 903,603 lines of code across 4441 source files, recording 15827 pattern matches distributed across 28 syntactic categories. The overall adjusted score of 22.5 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

22.5
Adjusted Score
22.5
Raw Score
100%
Time Factor
2026-07-14
Last Push
12.1K
Stars
Python
Language
903.6K
Lines of Code
4.4K
Files
15.8K
Pattern Hits
2026-07-14
Scan Date
0.12
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 23HIGH 503MEDIUM 1829LOW 13472

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 15827 distinct pattern matches across 28 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers9059 hits · 7302 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
LOWpython/tests/samples/hosting/test_toolbox_endpoint.py60 def test_explicit_endpoint_returned_as_is(self, resolve_endpoint, monkeypatch: pytest.MonkeyPatch):CODE
LOWpython/tests/samples/hosting/test_toolbox_endpoint.py67 def test_empty_string_raises_value_error(self, resolve_endpoint, monkeypatch: pytest.MonkeyPatch):CODE
LOWpython/tests/samples/hosting/test_toolbox_endpoint.py73 def test_fallback_constructs_url_from_project_vars(self, resolve_endpoint, monkeypatch: pytest.MonkeyPatch):CODE
LOWpython/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.py48async def _start_local_kernel_process(CODE
LOW…c-kernel-migration/processes/fan_out_fan_in_process.py135async def run_semantic_kernel_process_example() -> None:CODE
LOW…c-kernel-migration/processes/fan_out_fan_in_process.py231async def run_agent_framework_workflow_example() -> str | None:CODE
LOW…/semantic-kernel-migration/processes/nested_process.py133async def run_semantic_kernel_nested_process() -> None:CODE
LOW…/semantic-kernel-migration/processes/nested_process.py252async def run_agent_framework_nested_workflow(initial_message: str) -> Sequence[str]:CODE
LOW…es/semantic-kernel-migration/orchestrations/handoff.py74def build_semantic_kernel_agents() -> tuple[list[SKAgent], OrchestrationHandoffs]:CODE
LOW…es/semantic-kernel-migration/orchestrations/handoff.py160async def run_semantic_kernel_example(initial_task: str, scripted_responses: Sequence[str]) -> str:CODE
LOW…es/semantic-kernel-migration/orchestrations/handoff.py232def _collect_handoff_requests(events: list[WorkflowEvent]) -> list[WorkflowEvent]:CODE
LOW…es/semantic-kernel-migration/orchestrations/handoff.py240def _extract_final_conversation(events: list[WorkflowEvent]) -> list[Message]:CODE
LOW…es/semantic-kernel-migration/orchestrations/handoff.py247async def run_agent_framework_example(initial_task: str, scripted_responses: Sequence[str]) -> str:CODE
LOW…semantic-kernel-migration/orchestrations/sequential.py42def build_semantic_kernel_agents() -> list[SKAgent]:CODE
LOW…semantic-kernel-migration/orchestrations/sequential.py60async def sk_agent_response_callback(CODE
LOW…semantic-kernel-migration/orchestrations/sequential.py80async def run_agent_framework_example(prompt: str) -> list[Message]:CODE
LOW…semantic-kernel-migration/orchestrations/sequential.py105async def run_semantic_kernel_example(prompt: str) -> str:CODE
LOW…semantic-kernel-migration/orchestrations/group_chat.py59def build_semantic_kernel_agents() -> list[ChatCompletionAgent]:CODE
LOW…semantic-kernel-migration/orchestrations/group_chat.py117 async def should_request_user_input(self, chat_history: ChatHistory) -> BooleanResult:CODE
LOW…semantic-kernel-migration/orchestrations/group_chat.py187async def sk_agent_response_callback(message: ChatMessageContent | Sequence[ChatMessageContent]) -> None:CODE
LOW…semantic-kernel-migration/orchestrations/group_chat.py199async def run_semantic_kernel_example(task: str) -> str:CODE
LOW…semantic-kernel-migration/orchestrations/group_chat.py229async def run_agent_framework_example(task: str) -> str:CODE
LOW…ic-kernel-migration/orchestrations/concurrent_basic.py41def build_semantic_kernel_agents() -> list[ChatCompletionAgent]:CODE
LOW…ic-kernel-migration/orchestrations/concurrent_basic.py59async def run_semantic_kernel_example(prompt: str) -> Sequence[ChatMessageContent]:CODE
LOW…ic-kernel-migration/orchestrations/concurrent_basic.py77def _print_semantic_kernel_outputs(outputs: Sequence[ChatMessageContent]) -> None:CODE
LOW…ic-kernel-migration/orchestrations/concurrent_basic.py93async def run_agent_framework_example(prompt: str) -> Sequence[list[Message]]:CODE
LOW…ic-kernel-migration/orchestrations/concurrent_basic.py118def _print_agent_framework_outputs(conversations: Sequence[Sequence[Message]]) -> None:CODE
LOW…s/semantic-kernel-migration/orchestrations/magentic.py52async def build_semantic_kernel_agents() -> list[ChatCompletionAgent | OpenAIAssistantAgent]:CODE
LOW…s/semantic-kernel-migration/orchestrations/magentic.py82def sk_agent_response_callback(CODE
LOW…s/semantic-kernel-migration/orchestrations/magentic.py97async def run_semantic_kernel_example(prompt: str) -> Sequence[ChatMessageContent]:CODE
LOW…s/semantic-kernel-migration/orchestrations/magentic.py120def _print_semantic_kernel_outputs(outputs: Sequence[ChatMessageContent]) -> None:CODE
LOW…s/semantic-kernel-migration/orchestrations/magentic.py136async def run_agent_framework_example(prompt: str) -> str | None:CODE
LOW…s/semantic-kernel-migration/orchestrations/magentic.py193def _print_agent_framework_output(result: str | None) -> None:CODE
LOW…ask/05_multi_agent_orchestration_concurrency/worker.py78def multi_agent_concurrent_orchestration(CODE
LOW…rabletask/07_single_agent_orchestration_hitl/worker.py120def content_generation_hitl_orchestration(CODE
LOW…etask/04_single_agent_orchestration_chaining/worker.py75def single_agent_chaining_orchestration(CODE
LOW…sk/06_multi_agent_orchestration_conditionals/worker.py128def spam_detection_orchestration(context: OrchestrationContext, payload_raw: Any) -> Generator[Task[Any], Any, str]:CODE
LOW…osting/durabletask/03_single_agent_streaming/worker.py75 async def on_streaming_response_update(CODE
LOW…hosting/durabletask/03_single_agent_streaming/tools.py147def _get_weather_recommendation(condition: str) -> str:CODE
LOW…ingle_agent_streaming/redis_stream_response_handler.py35class RedisStreamResponseHandler:CODE
LOW…osting/durabletask/03_single_agent_streaming/README.md90 async def on_streaming_response_update(self, update, context):CODE
LOWpython/samples/04-hosting/a2a/README.md90def resolve_tenant_user_scope(context):CODE
LOWpython/samples/04-hosting/a2a/invoice_data.py65def _random_date_within_last_two_months() -> datetime:CODE
LOW…oundry-hosted-agents/responses/using_deployed_agent.py38async def create_hosted_agent_session(CODE
LOW…sting/foundry-hosted-agents/responses/06_files/main.py42def _toolbox_name_from_endpoint(endpoint: str) -> str:CODE
LOW…_multi_agent_orchestration_concurrency/function_app.py70def multi_agent_concurrent_orchestration(context: DurableOrchestrationContext) -> Generator[Any, Any, dict[str, str]]:CODE
LOW…_multi_agent_orchestration_concurrency/function_app.py101async def start_multi_agent_concurrent_orchestration(CODE
LOW…ure_functions/09_workflow_shared_state/function_app.py138async def submit_to_email_assistant(detection: DetectionResult, ctx: WorkflowContext[AgentExecutorRequest]) -> None:CODE
LOW…ons/07_single_agent_orchestration_hitl/function_app.py93def content_generation_hitl_orchestration(context: DurableOrchestrationContext) -> Generator[Any, Any, dict[str, str]]:CODE
LOW…04_single_agent_orchestration_chaining/function_app.py57def single_agent_orchestration(context: DurableOrchestrationContext) -> Generator[Any, Any, str]:CODE
LOW…04_single_agent_orchestration_chaining/function_app.py81async def start_single_agent_orchestration(CODE
LOW…hosting/azure_functions/03_reliable_streaming/tools.py143def _get_weather_recommendation(condition: str) -> str:CODE
LOW…03_reliable_streaming/redis_stream_response_handler.py35class RedisStreamResponseHandler:CODE
8999 more matches not shown…
Decorative Section Separators1068 hits · 3500 pts
SeverityFileLineSnippetContext
MEDIUMpython/tests/samples/hosting/test_toolbox_endpoint.py16# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tests/samples/hosting/test_toolbox_endpoint.py19# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tests/samples/hosting/test_toolbox_endpoint.py28# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tests/samples/hosting/test_toolbox_endpoint.py30# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tests/samples/hosting/test_toolbox_endpoint.py49# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/tests/samples/hosting/test_toolbox_endpoint.py51# ---------------------------------------------------------------------------COMMENT
MEDIUM…ples/04-hosting/durabletask/09_workflow_hitl/worker.py76# ============================================================================COMMENT
MEDIUM…ples/04-hosting/durabletask/09_workflow_hitl/worker.py78# ============================================================================COMMENT
MEDIUM…ples/04-hosting/durabletask/09_workflow_hitl/worker.py136# ============================================================================COMMENT
MEDIUM…ples/04-hosting/durabletask/09_workflow_hitl/worker.py138# ============================================================================COMMENT
MEDIUM…s/04-hosting/durabletask/12_subworkflow_hitl/worker.py69# ============================================================================COMMENT
MEDIUM…s/04-hosting/durabletask/12_subworkflow_hitl/worker.py71# ============================================================================COMMENT
MEDIUM…s/04-hosting/durabletask/12_subworkflow_hitl/worker.py109# ============================================================================COMMENT
MEDIUM…s/04-hosting/durabletask/12_subworkflow_hitl/worker.py111# ============================================================================COMMENT
MEDIUM…s/04-hosting/durabletask/12_subworkflow_hitl/worker.py167# ============================================================================COMMENT
MEDIUM…s/04-hosting/durabletask/12_subworkflow_hitl/worker.py169# ============================================================================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…ure_functions/09_workflow_shared_state/function_app.py170# ============================================================================COMMENT
MEDIUM…ure_functions/09_workflow_shared_state/function_app.py172# ============================================================================COMMENT
MEDIUM…ure_functions/09_workflow_shared_state/function_app.py234# ============================================================================COMMENT
MEDIUM…ure_functions/09_workflow_shared_state/function_app.py236# ============================================================================COMMENT
MEDIUM…g/azure_functions/11_workflow_parallel/function_app.py59# ============================================================================COMMENT
MEDIUM…g/azure_functions/11_workflow_parallel/function_app.py61# ============================================================================COMMENT
MEDIUM…g/azure_functions/11_workflow_parallel/function_app.py138# ============================================================================COMMENT
MEDIUM…g/azure_functions/11_workflow_parallel/function_app.py140# ============================================================================COMMENT
MEDIUM…g/azure_functions/11_workflow_parallel/function_app.py328# ============================================================================COMMENT
MEDIUM…g/azure_functions/11_workflow_parallel/function_app.py330# ============================================================================COMMENT
MEDIUM…g/azure_functions/11_workflow_parallel/function_app.py440# ============================================================================COMMENT
MEDIUM…g/azure_functions/11_workflow_parallel/function_app.py442# ============================================================================COMMENT
MEDIUM…ng/azure_functions/13_subworkflow_hitl/function_app.py63# ============================================================================COMMENT
MEDIUM…ng/azure_functions/13_subworkflow_hitl/function_app.py65# ============================================================================COMMENT
MEDIUM…ng/azure_functions/13_subworkflow_hitl/function_app.py103# ============================================================================COMMENT
MEDIUM…ng/azure_functions/13_subworkflow_hitl/function_app.py105# ============================================================================COMMENT
MEDIUM…ng/azure_functions/13_subworkflow_hitl/function_app.py161# ============================================================================COMMENT
MEDIUM…ng/azure_functions/13_subworkflow_hitl/function_app.py163# ============================================================================COMMENT
MEDIUM…ng/azure_functions/13_subworkflow_hitl/function_app.py216# ============================================================================COMMENT
MEDIUM…ng/azure_functions/13_subworkflow_hitl/function_app.py218# ============================================================================COMMENT
MEDIUM…sting/azure_functions/12_workflow_hitl/function_app.py60# ============================================================================COMMENT
MEDIUM…sting/azure_functions/12_workflow_hitl/function_app.py62# ============================================================================COMMENT
MEDIUM…sting/azure_functions/12_workflow_hitl/function_app.py120# ============================================================================COMMENT
MEDIUM…sting/azure_functions/12_workflow_hitl/function_app.py122# ============================================================================COMMENT
MEDIUM…sting/azure_functions/12_workflow_hitl/function_app.py141# ============================================================================COMMENT
MEDIUM…sting/azure_functions/12_workflow_hitl/function_app.py143# ============================================================================COMMENT
MEDIUM…sting/azure_functions/12_workflow_hitl/function_app.py304# ============================================================================COMMENT
MEDIUM…sting/azure_functions/12_workflow_hitl/function_app.py306# ============================================================================COMMENT
MEDIUM…sting/azure_functions/12_workflow_hitl/function_app.py362# ============================================================================COMMENT
MEDIUM…sting/azure_functions/12_workflow_hitl/function_app.py364# ============================================================================COMMENT
MEDIUM…sting/azure_functions/12_workflow_hitl/function_app.py400# ============================================================================COMMENT
MEDIUM…sting/azure_functions/12_workflow_hitl/function_app.py402# ============================================================================COMMENT
MEDIUMpython/samples/02-agents/auto_retry.py65# =============================================================================COMMENT
MEDIUMpython/samples/02-agents/auto_retry.py67# =============================================================================COMMENT
MEDIUMpython/samples/02-agents/auto_retry.py111# =============================================================================COMMENT
MEDIUMpython/samples/02-agents/auto_retry.py113# =============================================================================COMMENT
1008 more matches not shown…
Over-Commented Block1446 hits · 1436 pts
SeverityFileLineSnippetContext
LOW…n-migration/single_agent/03_agent_thread_and_stream.py1# /// scriptCOMMENT
LOW…mples/autogen-migration/single_agent/01_basic_agent.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
LOW…multi_agent_orchestration_concurrency/requirements.txt1# Agent Framework packagesCOMMENT
LOW…04-hosting/durabletask/02_multi_agent/requirements.txt1# Agent Framework packagesCOMMENT
LOW…sk/07_single_agent_orchestration_hitl/requirements.txt1# Agent Framework packagesCOMMENT
LOW…4_single_agent_orchestration_chaining/requirements.txt1# Agent Framework packagesCOMMENT
LOW…ulti_agent_orchestration_conditionals/requirements.txt1# Agent Framework packagesCOMMENT
LOW…4-hosting/durabletask/01_single_agent/requirements.txt1# Agent Framework packagesCOMMENT
LOW…esponses/13_declarative_customer_support/workflow.yaml1# A multi-turn customer-support triage workflow defined declaratively.COMMENT
LOW…/04_foundry_toolbox/scripts/list-foundry-connectors.sh1#!/usr/bin/env bashCOMMENT
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…g/azure_functions/13_subworkflow_hitl/requirements.txt1# Agent Framework packagesCOMMENT
LOW…on/samples/04-hosting/af-hosting/local_telegram/app.py1# /// scriptCOMMENT
LOW…es/04-hosting/af-hosting/local_telegram/polling_app.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…/03-workflows/_start-here/step1_executors_and_edges.py61PrerequisitesCOMMENT
LOW…/03-workflows/_start-here/step1_executors_and_edges.py121COMMENT
LOW…03-workflows/declarative/invoke_mcp_tool/workflow.yaml1#COMMENT
LOW…orkflows/declarative/invoke_http_request/workflow.yaml1#COMMENT
LOW…flows/declarative/agent_to_function_tool/workflow.yaml1# Agent to Function Tool WorkflowCOMMENT
LOW…amples/05-end-to-end/m365-agent/m365_agent_demo/app.py1# /// scriptCOMMENT
LOW…valuation/foundry_evals/evaluate_with_rubric_sample.py101 print(f"Portal: {r.report_url}")COMMENT
LOW…d-to-end/evaluation/self_reflection/self_reflection.py1# /// scriptCOMMENT
LOW…to-end/evaluation/red_teaming/red_team_agent_sample.py1# /// scriptCOMMENT
LOWpython/samples/05-end-to-end/chatkit-integration/app.py1# /// scriptCOMMENT
LOWpython/scripts/integration_test_report/aggregate.py101 testcases = list(root.findall("testcase"))COMMENT
LOW…_hosting/agent_framework_foundry_hosting/_responses.py681COMMENT
LOW…_hosting/agent_framework_foundry_hosting/_responses.py721 self._checkpoint_storage_path, write_context_id, user_id=user_idCOMMENT
LOW…etask/agent_framework_durabletask/_workflows/naming.py41 "workflow_orchestrator_name",COMMENT
LOW…etask/agent_framework_durabletask/_workflows/naming.py61# :func:`validate_executor_id`), so only the structural hops carry the separator.COMMENT
LOW…agent_framework_durabletask/_workflows/orchestrator.py921COMMENT
LOW…packages/core/tests/core/test_middleware_with_agent.py2261COMMENT
LOW…packages/core/tests/core/test_middleware_with_agent.py2281# self.description = "Test agent"COMMENT
LOW…packages/core/tests/core/test_middleware_with_agent.py2301# # Test run (non-streaming)COMMENT
LOWpython/packages/core/tests/core/test_agents.py3141#COMMENT
LOWpython/packages/core/agent_framework/_serialization.py241COMMENT
LOWpython/packages/core/agent_framework/_mcp.py81_MCP_PROGRESSIVE_LOAD_TOOL_NAME = "load_tool"COMMENT
LOWpython/packages/core/agent_framework/_mcp.py2121 user_meta = _validate_mcp_meta(kwargs.get("_meta"))COMMENT
1386 more matches not shown…
Cross-File Repetition236 hits · 1180 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
HIGH…ask/05_multi_agent_orchestration_concurrency/worker.py0create a configured durabletaskschedulerworker. args: taskhub: task hub name (defaults to taskhub env var or "default") STRING
HIGH…amples/04-hosting/durabletask/02_multi_agent/worker.py0create a configured durabletaskschedulerworker. args: taskhub: task hub name (defaults to taskhub env var or "default") STRING
HIGH…rabletask/07_single_agent_orchestration_hitl/worker.py0create a configured durabletaskschedulerworker. args: taskhub: task hub name (defaults to taskhub env var or "default") STRING
HIGH…etask/04_single_agent_orchestration_chaining/worker.py0create a configured durabletaskschedulerworker. args: taskhub: task hub name (defaults to taskhub env var or "default") STRING
HIGH…sk/06_multi_agent_orchestration_conditionals/worker.py0create a configured durabletaskschedulerworker. args: taskhub: task hub name (defaults to taskhub env var or "default") STRING
HIGH…mples/04-hosting/durabletask/01_single_agent/worker.py0create a configured durabletaskschedulerworker. args: taskhub: task hub name (defaults to taskhub env var or "default") STRING
HIGH…osting/durabletask/03_single_agent_streaming/worker.py0create a configured durabletaskschedulerworker. args: taskhub: task hub name (defaults to taskhub env var or "default") STRING
HIGH…ask/05_multi_agent_orchestration_concurrency/worker.py0set up the worker with agents registered. args: worker: the durabletaskschedulerworker instance returns: durableaiagentwSTRING
HIGH…etask/04_single_agent_orchestration_chaining/worker.py0set up the worker with agents registered. args: worker: the durabletaskschedulerworker instance returns: durableaiagentwSTRING
HIGH…amples/04-hosting/durabletask/02_multi_agent/worker.py0set up the worker with agents registered. args: worker: the durabletaskschedulerworker instance returns: durableaiagentwSTRING
HIGH…mples/04-hosting/durabletask/01_single_agent/worker.py0set up the worker with agents registered. args: worker: the durabletaskschedulerworker instance returns: durableaiagentwSTRING
HIGH…ask/05_multi_agent_orchestration_concurrency/client.py0create a configured durableaiagentclient. args: taskhub: task hub name (defaults to taskhub env var or "default") endpoiSTRING
HIGH…rabletask/07_single_agent_orchestration_hitl/client.py0create a configured durableaiagentclient. args: taskhub: task hub name (defaults to taskhub env var or "default") endpoiSTRING
HIGH…etask/04_single_agent_orchestration_chaining/client.py0create a configured durableaiagentclient. args: taskhub: task hub name (defaults to taskhub env var or "default") endpoiSTRING
HIGH…sk/06_multi_agent_orchestration_conditionals/client.py0create a configured durableaiagentclient. args: taskhub: task hub name (defaults to taskhub env var or "default") endpoiSTRING
HIGH…amples/04-hosting/durabletask/02_multi_agent/client.py0create a configured durableaiagentclient. args: taskhub: task hub name (defaults to taskhub env var or "default") endpoiSTRING
HIGH…mples/04-hosting/durabletask/01_single_agent/client.py0create a configured durableaiagentclient. args: taskhub: task hub name (defaults to taskhub env var or "default") endpoiSTRING
HIGH…osting/durabletask/03_single_agent_streaming/client.py0create a configured durableaiagentclient. args: taskhub: task hub name (defaults to taskhub env var or "default") endpoiSTRING
HIGH…ask/05_multi_agent_orchestration_concurrency/sample.py0main entry point - runs both worker and client in single process.STRING
HIGH…amples/04-hosting/durabletask/02_multi_agent/sample.py0main entry point - runs both worker and client in single process.STRING
HIGH…rabletask/07_single_agent_orchestration_hitl/sample.py0main entry point - runs both worker and client in single process.STRING
HIGH…etask/04_single_agent_orchestration_chaining/sample.py0main entry point - runs both worker and client in single process.STRING
HIGH…sk/06_multi_agent_orchestration_conditionals/sample.py0main entry point - runs both worker and client in single process.STRING
HIGH…osting/durabletask/03_single_agent_streaming/sample.py0main entry point - runs both worker and client in single process.STRING
HIGH…mples/04-hosting/durabletask/01_single_agent/sample.py0main entry point - runs both worker and client in single process.STRING
HIGH…04-hosting/durabletask/10_workflow_streaming/worker.py0create a microsoft foundry chat client using azureclicredential.STRING
HIGH…ples/04-hosting/durabletask/09_workflow_hitl/worker.py0create a microsoft foundry chat client using azureclicredential.STRING
HIGH…amples/04-hosting/durabletask/11_subworkflow/worker.py0create a microsoft foundry chat client using azureclicredential.STRING
HIGH…n/samples/04-hosting/durabletask/08_workflow/worker.py0create a microsoft foundry chat client using azureclicredential.STRING
HIGH…04-hosting/durabletask/10_workflow_streaming/worker.py0register the workflow (agents + activities + orchestrator) on the worker.STRING
HIGH…ples/04-hosting/durabletask/09_workflow_hitl/worker.py0register the workflow (agents + activities + orchestrator) on the worker.STRING
HIGH…n/samples/04-hosting/durabletask/08_workflow/worker.py0register the workflow (agents + activities + orchestrator) on the worker.STRING
HIGH…osting/durabletask/03_single_agent_streaming/worker.py0create a new redis stream handler for each request. this avoids event loop conflicts in azure functions by creating a frSTRING
HIGH…osting/durabletask/03_single_agent_streaming/client.py0create a new redis stream handler for each request. this avoids event loop conflicts in azure functions by creating a frSTRING
HIGH…/azure_functions/03_reliable_streaming/function_app.py0create a new redis stream handler for each request. this avoids event loop conflicts in azure functions by creating a frSTRING
HIGH…osting/durabletask/03_single_agent_streaming/worker.py0you are an expert travel planner who creates detailed, personalized travel itineraries. when asked to plan a trip, you sSTRING
HIGH…/azure_functions/03_reliable_streaming/function_app.py0you are an expert travel planner who creates detailed, personalized travel itineraries. when asked to plan a trip, you sSTRING
HIGH…eAgents/AzureFunctions/08_ReliableStreaming/Program.cs0you are an expert travel planner who creates detailed, personalized travel itineraries. when asked to plan a trip, you sSTRING
HIGH…ableAgents/ConsoleApps/07_ReliableStreaming/Program.cs0you are an expert travel planner who creates detailed, personalized travel itineraries. when asked to plan a trip, you sSTRING
HIGH…hosting/durabletask/03_single_agent_streaming/tools.py0local events in {destination} around {date}: • {eventlist} 💡 tip: book popular events in advance as they may sell out quSTRING
HIGH…hosting/azure_functions/03_reliable_streaming/tools.py0local events in {destination} around {date}: • {eventlist} 💡 tip: book popular events in advance as they may sell out quSTRING
HIGH…bleAgents/AzureFunctions/08_ReliableStreaming/Tools.cs0local events in {destination} around {date}: • {eventlist} 💡 tip: book popular events in advance as they may sell out quSTRING
HIGH…ableAgents/ConsoleApps/07_ReliableStreaming/Program.cs0local events in {destination} around {date}: • {eventlist} 💡 tip: book popular events in advance as they may sell out quSTRING
HIGH…ure_functions/09_workflow_shared_state/function_app.py0structured output returned by the spam detection agent.STRING
HIGH…les/03-workflows/state-management/state_with_agents.py0structured output returned by the spam detection agent.STRING
HIGH…es/03-workflows/control-flow/switch_case_edge_group.py0structured output returned by the spam detection agent.STRING
HIGH…ure_functions/09_workflow_shared_state/function_app.py0structured output returned by the email assistant agent.STRING
HIGH…les/03-workflows/state-management/state_with_agents.py0structured output returned by the email assistant agent.STRING
HIGH…es/03-workflows/control-flow/switch_case_edge_group.py0structured output returned by the email assistant agent.STRING
HIGH…ure_functions/09_workflow_shared_state/function_app.py0build foundry chat client configuration from environment variables.STRING
HIGH…_functions/10_workflow_no_shared_state/function_app.py0build foundry chat client configuration from environment variables.STRING
HIGH…sting/azure_functions/12_workflow_hitl/function_app.py0build foundry chat client configuration from environment variables.STRING
HIGH…ure_functions/09_workflow_shared_state/function_app.py0launch the function app or devui. args: durable: if true, returns agentfunctionapp for azure functions. if false, launchSTRING
HIGH…ng/azure_functions/13_subworkflow_hitl/function_app.py0launch the function app or devui. args: durable: if true, returns agentfunctionapp for azure functions. if false, launchSTRING
HIGH…sting/azure_functions/12_workflow_hitl/function_app.py0launch the function app or devui. args: durable: if true, returns agentfunctionapp for azure functions. if false, launchSTRING
HIGH…/04-hosting/af-hosting/local_responses_workflow/app.py0run the webhook sample with hypercorn for local development.STRING
176 more matches not shown…
Self-Referential Comments385 hits · 1176 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.py23 # 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.py158 # Create a manager agent for orchestrationCOMMENT
MEDIUMpython/samples/01-get-started/03_multi_turn.py33 # Create a session to maintain conversation historyCOMMENT
MEDIUM…ask/05_multi_agent_orchestration_concurrency/worker.py200 # Create a worker using the helper functionCOMMENT
MEDIUM…ask/05_multi_agent_orchestration_concurrency/sample.py41 # Create the client using helper functionCOMMENT
MEDIUM…ask/05_multi_agent_orchestration_concurrency/sample.py43 # Define the promptCOMMENT
MEDIUM…amples/04-hosting/durabletask/02_multi_agent/worker.py161 # Create a worker using the helper functionCOMMENT
MEDIUM…amples/04-hosting/durabletask/02_multi_agent/sample.py39 # Create the client using helper functionCOMMENT
MEDIUM…rabletask/07_single_agent_orchestration_hitl/worker.py358 # Create a worker using the helper functionCOMMENT
MEDIUM…rabletask/07_single_agent_orchestration_hitl/sample.py41 # Create the client using helper functionCOMMENT
MEDIUM…etask/04_single_agent_orchestration_chaining/worker.py102 # Create a new session for the conversation - this will be shared across both runsCOMMENT
MEDIUM…etask/04_single_agent_orchestration_chaining/worker.py192 # Create a worker using the helper functionCOMMENT
MEDIUM…etask/04_single_agent_orchestration_chaining/sample.py44 # Create the client using helper functionCOMMENT
MEDIUM…sk/06_multi_agent_orchestration_conditionals/worker.py290 # Create a worker using the helper functionCOMMENT
MEDIUM…sk/06_multi_agent_orchestration_conditionals/sample.py47 # Create the client using helper functionCOMMENT
MEDIUM…osting/durabletask/03_single_agent_streaming/worker.py53 # Create a new Redis client in the current event loopCOMMENT
MEDIUM…osting/durabletask/03_single_agent_streaming/worker.py221 # Create the Redis streaming callbackCOMMENT
MEDIUM…osting/durabletask/03_single_agent_streaming/worker.py241 # Create a worker using the helper functionCOMMENT
MEDIUM…osting/durabletask/03_single_agent_streaming/client.py47 # Create a new Redis client in the current event loopCOMMENT
MEDIUM…osting/durabletask/03_single_agent_streaming/client.py147 # Create a new session for the conversationCOMMENT
MEDIUM…osting/durabletask/03_single_agent_streaming/client.py182 # Create the clientCOMMENT
MEDIUM…osting/durabletask/03_single_agent_streaming/sample.py41 # Create the client using helper functionCOMMENT
MEDIUM…mples/04-hosting/durabletask/01_single_agent/worker.py108 # Create a worker using the helper functionCOMMENT
MEDIUM…mples/04-hosting/durabletask/01_single_agent/client.py74 # Create a new session for the conversationCOMMENT
MEDIUM…mples/04-hosting/durabletask/01_single_agent/sample.py39 # Create the client using helper functionCOMMENT
MEDIUMpython/samples/04-hosting/a2a/a2a_server.py80 # Create the LLM clientCOMMENT
MEDIUMpython/samples/04-hosting/a2a/a2a_server.py88 # Create the Agent Framework agent for the chosen typeCOMMENT
MEDIUM…undry-hosted-agents/invocations/02_break_glass/main.py22# Create the agentCOMMENT
MEDIUM…dry-hosted-agents/responses/04_foundry_toolbox/main.py26 # Create the chat clientCOMMENT
MEDIUM…sting/foundry-hosted-agents/responses/06_files/main.py100 # Create the toolboxCOMMENT
MEDIUM…sting/foundry-hosted-agents/responses/06_files/main.py120 # Create the chat clientCOMMENT
MEDIUM…/azure_functions/03_reliable_streaming/function_app.py53 # Create a new Redis client in the current event loopCOMMENT
MEDIUM…/azure_functions/03_reliable_streaming/function_app.py152# Create the Redis streaming callbackCOMMENT
MEDIUM…/azure_functions/03_reliable_streaming/function_app.py156# Create the travel planner agentCOMMENT
MEDIUM…-hosting/azure_functions/08_mcp_server/function_app.py67# Create the AgentFunctionApp with selective trigger configurationCOMMENT
MEDIUM…sting/azure_functions/12_workflow_hitl/function_app.py264 # Create the final moderation resultCOMMENT
MEDIUM…sting/azure_functions/12_workflow_hitl/function_app.py346 # Create the agent requestCOMMENT
MEDIUM…sting/azure_functions/12_workflow_hitl/function_app.py372 # Create the content analysis agentCOMMENT
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.py139 # Create a typed agent - IDE will autocomplete options!COMMENT
MEDIUMpython/samples/02-agents/response_stream.py178 # 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.py37# 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.py295 # Create the main agent's Foundry chat client using the configured deployment.COMMENT
MEDIUM…n/samples/02-agents/security/email_security_example.py302 # Create a separate Foundry client for quarantine operations.COMMENT
MEDIUM…n/samples/02-agents/security/email_security_example.py321 # 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
325 more matches not shown…
Docstring Block Structure197 hits · 985 pts
SeverityFileLineSnippetContext
HIGHpython/CODING_STANDARD.md514Create a new client with the specified configuration. Args: model: The model ID to use. If not provided, STRING
HIGHpython/CODING_STANDARD.md548Create a new agent with the specified configuration. Args: name: The name of the agent. client: TheSTRING
HIGH…rabletask/07_single_agent_orchestration_hitl/worker.py123Human-in-the-loop orchestration for content generation with approval workflow. This orchestration: 1. GeneratesSTRING
HIGH…etask/04_single_agent_orchestration_chaining/worker.py78Orchestration that runs the writer agent twice on the same thread. This demonstrates chaining behavior where the ouSTRING
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…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.py59Get the filesystem path for an attachment. Args: attachment_id: Identifier used as the attachment fSTRING
HIGH…ry_hosting/agent_framework_foundry_hosting/_toolbox.py199Return a :class:`~agent_framework.SkillsProvider` backed by this toolbox. A Foundry toolbox can serve Agent SkiSTRING
HIGH…_hosting/agent_framework_foundry_hosting/_responses.py1068Converts an Item to a Message. Args: item: The Item to convert. approval_storage: An optional ApproSTRING
HIGH…_hosting/agent_framework_foundry_hosting/_responses.py1361Converts an OutputItem to a Message. Args: item (OutputItem): The OutputItem to convert. approval_sSTRING
HIGH…_hosting/agent_framework_foundry_hosting/_responses.py1642Converts an OutputMessageContent to a Content object. Args: content (OutputMessageContent): The OutputMessaSTRING
HIGH…_hosting/agent_framework_foundry_hosting/_responses.py1689Converts a MessageContent to a Content object. Args: content (MessageContent): The MessageContent to converSTRING
HIGH…_hosting/agent_framework_foundry_hosting/_responses.py1777Converts a Content object to an async sequence of ResponseStreamEvent objects. Args: stream: The ResponseEvSTRING
HIGH…ckages/durabletask/tests/integration_tests/conftest.py148Wait for an orchestration to complete. Args: instance_id: The orchestration instance ID STRING
HIGH…ckages/durabletask/tests/integration_tests/conftest.py183Wait for an orchestration to complete and return its output. Args: instance_id: The orchestration iSTRING
HIGH…kages/durabletask/agent_framework_durabletask/_shim.py37Retrieve a DurableAIAgent shim for the specified agent. Args: agent_name: Name of the agent to retrSTRING
HIGH…kages/durabletask/agent_framework_durabletask/_shim.py96Execute the agent via the injected provider. Args: messages: The message(s) to send to the agent STRING
HIGH…kages/durabletask/agent_framework_durabletask/_shim.py147Convert supported message inputs to a single string. Args: messages: The messages to normalize STRING
HIGH…ges/durabletask/agent_framework_durabletask/_models.py247Parses a string representation of an agent session ID. Args: session_id_string: A string in the forSTRING
HIGH…bletask/agent_framework_durabletask/_response_utils.py15Convert raw payloads into AgentResponse instance. Args: agent_response: The response to convert, can be an STRING
HIGH…agent_framework_durabletask/_workflows/registration.py93Yield ``workflow`` and every nested sub-workflow, deduped by name. A host registers the orchestration primitives foSTRING
HIGH…etask/agent_framework_durabletask/_workflows/naming.py90Return the durable orchestration name for a workflow. Args: workflow_name: The workflow's name. Must satisfSTRING
HIGH…etask/agent_framework_durabletask/_workflows/client.py155Wait for a workflow orchestration to complete and return its output. Args: instance_id: The instancSTRING
HIGH…etask/agent_framework_durabletask/_workflows/client.py200Start the workflow and, by default, await its output. The async counterpart to ``start_workflow`` + ``await_worSTRING
HIGH…etask/agent_framework_durabletask/_workflows/client.py272Stream the workflow's events as typed :class:`WorkflowEvent` objects. Yields the workflow's events (``executor_STRING
HIGH…ask/agent_framework_durabletask/_workflows/activity.py38Execute a single non-agent workflow executor and return its serialized result. This is the host-agnostic activity bSTRING
HIGH…ges/azurefunctions/tests/integration_tests/conftest.py164Wait for an orchestration to complete. Args: status_url: URL to poll for orchestration status STRING
HIGH…ges/azurefunctions/tests/integration_tests/conftest.py195Wait for an orchestration to complete and have output available. This is a specialized version of wait_for_orchSTRING
HIGH…tions/agent_framework_azurefunctions/_orchestration.py158Get the current run request from the orchestration context. Args: message: The message to send to tSTRING
HIGH…/azurefunctions/agent_framework_azurefunctions/_app.py868Return a DurableAIAgent proxy for a registered agent. Args: context: Durable Functions orchestratioSTRING
HIGH…/azurefunctions/agent_framework_azurefunctions/_app.py1151Handle an MCP tool invocation. This method processes MCP tool requests and delegates to the agent entity. STRING
HIGH…ithub_copilot/agent_framework_github_copilot/_agent.py511Get 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.py702Internal method to stream updates from GitHub Copilot. Args: messages: The message(s) to send to thSTRING
HIGH…ithub_copilot/agent_framework_github_copilot/_agent.py1079Get 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.py184Resolve 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.py190Generate embeddings for text and/or image inputs. Text inputs (``str`` or ``Content`` with ``type="text"``) areSTRING
HIGH…ckages/foundry/agent_framework_foundry/_chat_client.py636Create 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.py233Load a checkpoint from Cosmos DB by ID. Args: checkpoint_id: The unique ID of the checkpoint to loaSTRING
HIGHpython/packages/core/agent_framework/_types.py85Detect media type from base64-encoded data by examining magic bytes. This function examines the binary signature (mSTRING
HIGHpython/packages/core/agent_framework/_types.py171Extract base64 data string from data URI. Args: content: The Content instance to extract data from. ReSTRING
HIGHpython/packages/core/agent_framework/_types.py200Extract and decode binary data from data URI. Args: content: The Content instance to extract data from. STRING
HIGHpython/packages/core/agent_framework/_types.py425Add 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.py652Create data content from raw binary data. Use this to create content from binary data (images, audio, documentsSTRING
HIGHpython/packages/core/agent_framework/_types.py728Create 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.py1568Check 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.py1599Parse arguments from function_call, mcp_server_tool_call, or search_tool_call content. If arguments cannot be pSTRING
HIGHpython/packages/core/agent_framework/_types.py1875Prepend 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.py3569Validate and normalize chat options dictionary. Validates numeric constraints and converts types as needed. ArSTRING
HIGHpython/packages/core/agent_framework/_types.py3628Normalize tools into a list. Converts callables to FunctionTool objects and preserves existing tool objects. ASTRING
HIGHpython/packages/core/agent_framework/_types.py3663Validate and normalize tools into a list. Converts callables to FunctionTool objects, expands MCP tools to their coSTRING
HIGHpython/packages/core/agent_framework/_types.py3714Validate and normalize tool_choice to a ToolMode dict. Args: tool_choice: The tool choice value to validateSTRING
HIGHpython/packages/core/agent_framework/_types.py3756Merge two chat options dictionaries. Values from override take precedence over base. Lists and dicts are combinSTRING
HIGHpython/packages/core/agent_framework/_serialization.py396Create an instance from a dictionary with optional dependency injection. This method reconstructs an object froSTRING
HIGHpython/packages/core/agent_framework/_serialization.py564Create an instance from a JSON string. This is a convenience method that parses the JSON string using ``json.loSTRING
HIGHpython/packages/core/agent_framework/_evaluation.py1642Run an agent against test queries and evaluate the results. The simplest path for evaluating an agent during develoSTRING
HIGHpython/packages/core/agent_framework/_telemetry.py100Prepend "agent-framework" to the User-Agent in the headers. When user agent telemetry is disabled through the ``AGESTRING
HIGHpython/packages/core/agent_framework/_tools.py150Parse 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.py591Run 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.py1408Invoke a function call requested by the agent, applying middleware that is defined. Args: function_call_conSTRING
137 more matches not shown…
Unused Imports903 hits · 798 pts
SeverityFileLineSnippetContext
LOW…c-kernel-migration/processes/fan_out_fan_in_process.py41CODE
LOW…c-kernel-migration/processes/fan_out_fan_in_process.py42CODE
LOWpython/samples/04-hosting/a2a/agent_definitions.py9CODE
LOW…oundry-hosted-agents/responses/using_deployed_agent.py3CODE
LOW…ing/af-hosting/local_responses_workflow/call_server.py19CODE
LOW…/04-hosting/af-hosting/local_responses_workflow/app.py46CODE
LOW…on/samples/04-hosting/af-hosting/local_telegram/app.py45CODE
LOW…es/04-hosting/af-hosting/local_telegram/polling_app.py27CODE
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/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…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…/samples/02-agents/observability/advanced_zero_code.py17CODE
LOW…observability/configure_otel_providers_with_env_var.py19CODE
LOW…arness/build_your_own_claw/subprocess_script_runner.py8CODE
LOW…ples/02-agents/harness/console/textual_state_driver.py10CODE
LOWpython/samples/02-agents/harness/console/formatters.py23CODE
LOW…thon/samples/02-agents/harness/console/state_driver.py10CODE
LOW…thon/samples/02-agents/harness/console/agent_runner.py13CODE
LOW…n/samples/02-agents/harness/console/harness_console.py9CODE
LOWpython/samples/02-agents/harness/console/__init__.py10CODE
LOWpython/samples/02-agents/harness/console/__init__.py10CODE
LOWpython/samples/02-agents/harness/console/__init__.py11CODE
LOWpython/samples/02-agents/harness/console/__init__.py12CODE
LOWpython/samples/02-agents/harness/console/__init__.py13CODE
LOWpython/samples/02-agents/harness/console/__init__.py13CODE
LOWpython/samples/02-agents/harness/console/__init__.py13CODE
LOWpython/samples/02-agents/harness/console/app.py9CODE
LOWpython/samples/02-agents/harness/console/app_state.py11CODE
LOW…s/02-agents/harness/console/components/scroll_panel.py5CODE
LOW…les/02-agents/harness/console/components/text_input.py5CODE
LOW…mples/02-agents/harness/console/components/__init__.py9CODE
LOW…mples/02-agents/harness/console/components/__init__.py10CODE
LOW…mples/02-agents/harness/console/components/__init__.py11CODE
LOW…mples/02-agents/harness/console/components/__init__.py12CODE
LOW…mples/02-agents/harness/console/components/__init__.py13CODE
LOW…mples/02-agents/harness/console/components/__init__.py14CODE
LOW…ples/02-agents/harness/console/components/mode_help.py5CODE
LOW…s/02-agents/harness/console/components/agent_status.py5CODE
LOW…es/02-agents/harness/console/components/prompt_rule.py5CODE
LOW…02-agents/harness/console/components/list_selection.py5CODE
LOW…les/02-agents/harness/console/commands/mode_handler.py5CODE
LOW…samples/02-agents/harness/console/commands/__init__.py9CODE
843 more matches not shown…
Modern AI Meta-Vocabulary224 hits · 708 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.md1335For more information, see the [announcement blog post](https://devblogs.microsoft.com/foundry/introducing-microsoft-agenCODE
MEDIUMpython/samples/AGENTS.md17│ ├── orchestrations/ # Multi-agent orchestration patternsCODE
MEDIUM…es/semantic-kernel-migration/orchestrations/handoff.py52# Semantic Kernel orchestration pathCOMMENT
MEDIUM…es/semantic-kernel-migration/orchestrations/handoff.py185# Agent Framework orchestration pathCOMMENT
MEDIUM…semantic-kernel-migration/orchestrations/sequential.py38# Semantic Kernel orchestration pathCOMMENT
MEDIUM…semantic-kernel-migration/orchestrations/sequential.py76# Agent Framework orchestration pathCOMMENT
MEDIUM…semantic-kernel-migration/orchestrations/group_chat.py55# Semantic Kernel orchestration pathCOMMENT
MEDIUM…semantic-kernel-migration/orchestrations/group_chat.py225# Agent Framework orchestration pathCOMMENT
MEDIUM…ic-kernel-migration/orchestrations/concurrent_basic.py37# Semantic Kernel orchestration pathCOMMENT
MEDIUM…ic-kernel-migration/orchestrations/concurrent_basic.py89# Agent Framework orchestration pathCOMMENT
MEDIUM…s/semantic-kernel-migration/orchestrations/magentic.py48# Semantic Kernel orchestration pathCOMMENT
MEDIUM…s/semantic-kernel-migration/orchestrations/magentic.py132# Agent Framework orchestration pathCOMMENT
MEDIUM…s/semantic-kernel-migration/orchestrations/magentic.py158 # Create a manager agent for orchestrationCOMMENT
MEDIUM…ask/05_multi_agent_orchestration_concurrency/worker.py96 # Wrap the orchestration context to access agentsCOMMENT
MEDIUM…ask/05_multi_agent_orchestration_concurrency/worker.py188 # Register the orchestration functionCOMMENT
MEDIUM…ask/05_multi_agent_orchestration_concurrency/client.py66 # Start the orchestration with the prompt as inputCOMMENT
MEDIUM…ask/05_multi_agent_orchestration_concurrency/sample.py47 # Run the client to start the orchestrationCOMMENT
MEDIUM…amples/04-hosting/durabletask/11_subworkflow/worker.py150 # workflow. On the durable host this node runs as a child orchestration.COMMENT
MEDIUM…amples/04-hosting/durabletask/11_subworkflow/worker.py187 # orchestration, deduped by workflow name.COMMENT
MEDIUM…amples/04-hosting/durabletask/11_subworkflow/client.py32# The client targets the outer workflow; the sub-workflow runs as a child orchestration.COMMENT
MEDIUM…s/04-hosting/durabletask/12_subworkflow_hitl/worker.py135 # host this pauses the child orchestration running this inner workflow.COMMENT
MEDIUM…s/04-hosting/durabletask/12_subworkflow_hitl/worker.py209 # durable host this node runs as a child orchestration, and the inner pauseCOMMENT
MEDIUM…s/04-hosting/durabletask/12_subworkflow_hitl/worker.py246 # sub-workflow (each as its own durable orchestration).COMMENT
MEDIUM…s/04-hosting/durabletask/12_subworkflow_hitl/client.py89 # the host resolves it to the owning child orchestration.COMMENT
MEDIUM…rabletask/07_single_agent_orchestration_hitl/worker.py162 # Wrap the orchestration context to access agentsCOMMENT
MEDIUM…rabletask/07_single_agent_orchestration_hitl/worker.py346 # Register the orchestration functionCOMMENT
MEDIUM…rabletask/07_single_agent_orchestration_hitl/client.py209 # Start the orchestrationCOMMENT
MEDIUM…rabletask/07_single_agent_orchestration_hitl/client.py223 # Wait for orchestration to reach notification pointCOMMENT
MEDIUM…rabletask/07_single_agent_orchestration_hitl/sample.py36 # Register agent, orchestration, and activities using helper functionCOMMENT
MEDIUM…etask/04_single_agent_orchestration_chaining/worker.py96 # Wrap the orchestration context to access agentsCOMMENT
MEDIUM…etask/04_single_agent_orchestration_chaining/worker.py180 # Register the orchestration functionCOMMENT
MEDIUM…etask/04_single_agent_orchestration_chaining/client.py67 # Start the orchestrationCOMMENT
MEDIUM…sk/06_multi_agent_orchestration_conditionals/worker.py157 # Wrap the orchestration context to access agentsCOMMENT
MEDIUM…sk/06_multi_agent_orchestration_conditionals/worker.py278 # Register the orchestration functionCOMMENT
MEDIUM…sk/06_multi_agent_orchestration_conditionals/client.py76 # Start the orchestration with the email payloadCOMMENT
MEDIUM…-hosted-agents/responses/08_azure_search_rag/README.md11### RAG via Azure AI SearchCOMMENT
MEDIUM…-hosted-agents/responses/08_azure_search_rag/README.md159## How RAG works in this sampleCOMMENT
MEDIUM…_multi_agent_orchestration_concurrency/function_app.py31# 1. Define agent names shared across the orchestration.COMMENT
MEDIUM…_multi_agent_orchestration_concurrency/function_app.py36# 2. Instantiate both agents that the orchestration will run concurrently.COMMENT
MEDIUM…_multi_agent_orchestration_concurrency/function_app.py68# 4. Durable Functions orchestration that runs both agents in parallel.COMMENT
MEDIUM…_multi_agent_orchestration_concurrency/function_app.py98# 5. HTTP endpoint to accept prompts and start the concurrent orchestration.COMMENT
MEDIUM…_multi_agent_orchestration_concurrency/function_app.py139# 6. HTTP endpoint to retrieve orchestration status and aggregated outputs.COMMENT
MEDIUM…ons/07_single_agent_orchestration_hitl/function_app.py29# 1. Define orchestration constants used throughout the workflow.COMMENT
MEDIUM…ons/07_single_agent_orchestration_hitl/function_app.py178# 5. HTTP endpoint that starts the human-in-the-loop orchestration.COMMENT
MEDIUM…ons/07_single_agent_orchestration_hitl/function_app.py227# 6. Endpoint that delivers human approval or rejection back into the orchestration.COMMENT
MEDIUM…04_single_agent_orchestration_chaining/function_app.py27# 1. Define the agent name used across the orchestration.COMMENT
MEDIUM…04_single_agent_orchestration_chaining/function_app.py31# 2. Create the writer agent that will be invoked twice within the orchestration.COMMENT
MEDIUM…04_single_agent_orchestration_chaining/function_app.py51# 3. Register the agent with AgentFunctionApp so HTTP and orchestration triggers are exposed.COMMENT
MEDIUM…04_single_agent_orchestration_chaining/function_app.py78# 5. HTTP endpoint to kick off the orchestration and return the status query URI.COMMENT
MEDIUM…04_single_agent_orchestration_chaining/function_app.py108# 6. HTTP endpoint to fetch orchestration status using the original instance ID.COMMENT
MEDIUM…multi_agent_orchestration_conditionals/function_app.py29# 1. Define agent names shared across the orchestration.COMMENT
MEDIUM…multi_agent_orchestration_conditionals/function_app.py148# 5. HTTP starter endpoint launches the orchestration for each email payload.COMMENT
MEDIUM…ng/azure_functions/13_subworkflow_hitl/function_app.py129 # host this pauses the child orchestration running this inner workflow.COMMENT
MEDIUM…ng/azure_functions/13_subworkflow_hitl/function_app.py203 # durable host this node runs as a child orchestration, and the inner pauseCOMMENT
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
164 more matches not shown…
Excessive Try-Catch Wrapping461 hits · 447 pts
SeverityFileLineSnippetContext
LOW…ask/05_multi_agent_orchestration_concurrency/client.py107 except Exception as e:CODE
LOW…ask/05_multi_agent_orchestration_concurrency/sample.py49 except Exception as e:CODE
LOW…amples/04-hosting/durabletask/02_multi_agent/client.py113 except Exception as e:CODE
LOW…amples/04-hosting/durabletask/02_multi_agent/sample.py44 except Exception as e:CODE
LOW…rabletask/07_single_agent_orchestration_hitl/client.py171 except Exception as e:CODE
LOW…rabletask/07_single_agent_orchestration_hitl/client.py277 except Exception as e:CODE
LOW…rabletask/07_single_agent_orchestration_hitl/sample.py46 except Exception as e:CODE
LOW…etask/04_single_agent_orchestration_chaining/client.py106 except Exception as e:CODE
LOW…etask/04_single_agent_orchestration_chaining/sample.py52 except Exception as e:CODE
LOW…sk/06_multi_agent_orchestration_conditionals/client.py134 except Exception as e:CODE
LOW…sk/06_multi_agent_orchestration_conditionals/sample.py70 except Exception as e:CODE
LOW…n/samples/04-hosting/durabletask/08_workflow/worker.py118 except Exception:CODE
LOW…osting/durabletask/03_single_agent_streaming/worker.py117 except Exception as ex:CODE
LOW…osting/durabletask/03_single_agent_streaming/worker.py147 except Exception as ex:CODE
LOW…osting/durabletask/03_single_agent_streaming/client.py133 except Exception as ex:CODE
LOW…ingle_agent_streaming/redis_stream_response_handler.py189 except Exception as ex:CODE
LOW…osting/durabletask/03_single_agent_streaming/sample.py46 except Exception as e:CODE
LOW…mples/04-hosting/durabletask/01_single_agent/client.py101 except Exception as e:CODE
LOW…mples/04-hosting/durabletask/01_single_agent/client.py116 except Exception as e:CODE
LOW…mples/04-hosting/durabletask/01_single_agent/sample.py44 except Exception as e:CODE
MEDIUMpython/samples/04-hosting/a2a/a2a_server.py74 print("Error: FOUNDRY_PROJECT_ENDPOINT environment variable is not set.")CODE
MEDIUMpython/samples/04-hosting/a2a/a2a_server.py77 print("Error: FOUNDRY_MODEL environment variable is not set.")CODE
LOW…sting/foundry-hosted-agents/responses/02_tools/main.py48 except Exception as e:CODE
LOW…sting/foundry-hosted-agents/responses/06_files/main.py74 except Exception as e:CODE
LOW…sting/foundry-hosted-agents/responses/06_files/main.py83 except Exception as e:CODE
LOW…sting/foundry-hosted-agents/responses/06_files/main.py93 except Exception as e:CODE
LOW…ons/07_single_agent_orchestration_hitl/function_app.py165 except Exception as ex:CODE
LOW…03_reliable_streaming/redis_stream_response_handler.py187 except Exception as ex:CODE
LOW…/azure_functions/03_reliable_streaming/function_app.py118 except Exception as ex:CODE
LOW…/azure_functions/03_reliable_streaming/function_app.py148 except Exception as ex:CODE
LOW…/azure_functions/03_reliable_streaming/function_app.py239 except Exception as ex:CODE
LOW…/azure_functions/03_reliable_streaming/function_app.py280 except Exception as ex:CODE
LOW…multi_agent_orchestration_conditionals/function_app.py117 except Exception as ex:CODE
LOW…multi_agent_orchestration_conditionals/function_app.py141 except Exception as ex:CODE
LOW…_functions/10_workflow_no_shared_state/function_app.py161 except Exception: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…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.py264 except Exception as e:CODE
MEDIUM…ples/02-agents/conversations/redis_history_provider.py265 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
401 more matches not shown…
Deep Nesting404 hits · 330 pts
SeverityFileLineSnippetContext
LOW…les/autogen-migration/single_agent/04_agent_as_tool.py56CODE
LOW…es/autogen-migration/orchestrations/04_magentic_one.py74CODE
LOW…n/samples/autogen-migration/orchestrations/03_swarm.py105CODE
LOW…-migration/orchestrations/01_round_robin_group_chat.py102CODE
LOW…rabletask/07_single_agent_orchestration_hitl/worker.py120CODE
LOW…rabletask/07_single_agent_orchestration_hitl/client.py126CODE
LOW…ingle_agent_streaming/redis_stream_response_handler.py117CODE
LOW…03_reliable_streaming/redis_stream_response_handler.py115CODE
LOW…on/samples/04-hosting/af-hosting/local_telegram/app.py151CODE
LOW…es/04-hosting/af-hosting/local_telegram/polling_app.py122CODE
LOW…2-agents/middleware/override_result_with_middleware.py117CODE
LOWpython/samples/02-agents/middleware/chat_middleware.py108CODE
LOW…samples/02-agents/tools/function_tool_with_approval.py86CODE
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.py34CODE
LOW…02-agents/context_providers/code_act/monty_code_act.py60CODE
LOW…mples/02-agents/context_providers/code_act/code_act.py48CODE
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.py223CODE
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…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.py54CODE
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
344 more matches not shown…
Modern Structural Boilerplate315 hits · 320 pts
SeverityFileLineSnippetContext
LOWpython/agent_framework_meta/__init__.py31__all__ = ["__version__"]CODE
LOW…ask/05_multi_agent_orchestration_concurrency/worker.py35logger = logging.getLogger(__name__)CODE
LOW…ask/05_multi_agent_orchestration_concurrency/client.py26logger = logging.getLogger(__name__)CODE
LOW…ask/05_multi_agent_orchestration_concurrency/sample.py26logger = logging.getLogger(__name__)CODE
LOW…04-hosting/durabletask/10_workflow_streaming/worker.py48logger = logging.getLogger(__name__)CODE
LOW…04-hosting/durabletask/10_workflow_streaming/client.py35logger = logging.getLogger(__name__)CODE
LOW…amples/04-hosting/durabletask/02_multi_agent/worker.py33logger = logging.getLogger(__name__)CODE
LOW…amples/04-hosting/durabletask/02_multi_agent/client.py30logger = logging.getLogger(__name__)CODE
LOW…amples/04-hosting/durabletask/02_multi_agent/sample.py24logger = logging.getLogger(__name__)CODE
LOW…ples/04-hosting/durabletask/09_workflow_hitl/worker.py63logger = logging.getLogger(__name__)CODE
LOW…ples/04-hosting/durabletask/09_workflow_hitl/client.py34logger = logging.getLogger(__name__)CODE
LOW…amples/04-hosting/durabletask/11_subworkflow/worker.py65logger = logging.getLogger(__name__)CODE
LOW…amples/04-hosting/durabletask/11_subworkflow/client.py30logger = logging.getLogger(__name__)CODE
LOW…s/04-hosting/durabletask/12_subworkflow_hitl/worker.py63logger = logging.getLogger(__name__)CODE
LOW…s/04-hosting/durabletask/12_subworkflow_hitl/client.py36logger = logging.getLogger(__name__)CODE
LOW…rabletask/07_single_agent_orchestration_hitl/worker.py37logger = logging.getLogger(__name__)CODE
LOW…rabletask/07_single_agent_orchestration_hitl/client.py27logger = logging.getLogger(__name__)CODE
LOW…etask/04_single_agent_orchestration_chaining/worker.py34logger = logging.getLogger(__name__)CODE
LOW…etask/04_single_agent_orchestration_chaining/client.py26logger = logging.getLogger(__name__)CODE
LOW…etask/04_single_agent_orchestration_chaining/sample.py29logger = logging.getLogger(__name__)CODE
LOW…sk/06_multi_agent_orchestration_conditionals/worker.py37logger = logging.getLogger(__name__)CODE
LOW…sk/06_multi_agent_orchestration_conditionals/client.py24logger = logging.getLogger(__name__)CODE
LOW…n/samples/04-hosting/durabletask/08_workflow/worker.py53logger = logging.getLogger(__name__)CODE
LOW…n/samples/04-hosting/durabletask/08_workflow/client.py27logger = logging.getLogger(__name__)CODE
LOW…osting/durabletask/03_single_agent_streaming/worker.py40logger = logging.getLogger(__name__)CODE
LOW…osting/durabletask/03_single_agent_streaming/client.py34logger = logging.getLogger(__name__)CODE
LOW…osting/durabletask/03_single_agent_streaming/sample.py26logger = logging.getLogger(__name__)CODE
LOW…mples/04-hosting/durabletask/01_single_agent/worker.py31logger = logging.getLogger(__name__)CODE
LOW…mples/04-hosting/durabletask/01_single_agent/client.py29logger = logging.getLogger(__name__)CODE
LOW…mples/04-hosting/durabletask/01_single_agent/sample.py24logger = logging.getLogger(__name__)CODE
LOW…ndry-hosted-agents/responses/09_foundry_skills/main.py44logger = logging.getLogger(__name__)CODE
LOW…hosting/foundry-hosted-agents/responses/03_mcp/main.py15logger = logging.getLogger(__name__)CODE
LOW…_multi_agent_orchestration_concurrency/function_app.py29logger = logging.getLogger(__name__)CODE
LOW…hosting/azure_functions/02_multi_agent/function_app.py24logger = logging.getLogger(__name__)CODE
LOW…ure_functions/09_workflow_shared_state/function_app.py44logger = logging.getLogger(__name__)CODE
LOW…ons/07_single_agent_orchestration_hitl/function_app.py27logger = logging.getLogger(__name__)CODE
LOW…04_single_agent_orchestration_chaining/function_app.py25logger = logging.getLogger(__name__)CODE
LOW…/azure_functions/03_reliable_streaming/function_app.py40logger = logging.getLogger(__name__)CODE
LOW…multi_agent_orchestration_conditionals/function_app.py27logger = logging.getLogger(__name__)CODE
LOW…g/azure_functions/11_workflow_parallel/function_app.py50logger = logging.getLogger(__name__)CODE
LOW…_functions/10_workflow_no_shared_state/function_app.py47logger = logging.getLogger(__name__)CODE
LOW…ng/azure_functions/13_subworkflow_hitl/function_app.py57logger = logging.getLogger(__name__)CODE
LOW…sting/azure_functions/12_workflow_hitl/function_app.py50logger = logging.getLogger(__name__)CODE
LOW…/04-hosting/af-hosting/local_responses_workflow/app.py111 def set_many(self, cursors: Mapping[str, CheckpointCursor]) -> None:CODE
LOWpython/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…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.py14logger = logging.getLogger(__name__)CODE
LOW…hon/samples/02-agents/observability/foundry_tracing.py44logger = 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
255 more matches not shown…
Structural Annotation Overuse169 hits · 297 pts
SeverityFileLineSnippetContext
LOWpython/README.md223 # Step 1: Writer creates initial sloganSTRING
LOWpython/README.md227 # Step 2: Reviewer provides feedbackSTRING
LOWpython/README.md232 # Step 3: Writer refines based on feedbackSTRING
LOW…thon/samples/01-get-started/07_first_graph_workflow.py29# Step 1: A class-based executor that converts text to uppercaseCOMMENT
LOW…thon/samples/01-get-started/07_first_graph_workflow.py40# Step 2: A function-based executor that reverses the string and yields outputCOMMENT
LOW…undry-hosted-agents/invocations/02_break_glass/main.py19# 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…gent_framework_durabletask/_workflows/serialization.py335 # NOTE: This function is general-purpose. Callers that handle untrustedCOMMENT
LOWpython/packages/core/README.md187 # Step 1: Writer creates initial sloganSTRING
LOWpython/packages/core/README.md191 # Step 2: Reviewer provides feedbackSTRING
LOWpython/packages/core/README.md196 # Step 3: Writer refines based on feedbackSTRING
LOWpython/packages/core/tests/workflow/test_workflow.py959 # Step 1: drive stream A's body until it's suspended at its first yield.COMMENT
LOWpython/packages/core/tests/workflow/test_workflow.py964 # Step 2: drop stream A; GC invalidates the weakref and schedulesCOMMENT
LOWpython/packages/core/tests/workflow/test_workflow.py970 # Step 3: synchronously start stream B *before* yielding to the loop,COMMENT
LOWpython/packages/core/tests/workflow/test_workflow.py976 # Step 4: yield enough times for stream A's scheduled aclose to driveCOMMENT
LOWpython/packages/core/tests/workflow/test_workflow.py1048 # Step 1: drive stream A's body to its first yield so it set storage_a.COMMENT
LOWpython/packages/core/tests/workflow/test_workflow.py1054 # Step 2: drop stream A; the weakref dies and async-gen close is scheduledCOMMENT
LOWpython/packages/core/tests/workflow/test_workflow.py1060 # Step 3: synchronously start stream B with its own storage and drive it toCOMMENT
LOWpython/packages/core/tests/workflow/test_workflow.py1067 # Step 4: yield enough for stream A's scheduled aclose to drive its bodyCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py174 # Step 3: Verify the pending request info event was properly serializedCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py181 # Step 4: Create a fresh workflow and restore from checkpointCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py185 # Step 5: Resume from checkpoint and verify the request can be continuedCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py217 # Step 7: Verify the executor state was properly restored and response was processedCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py254 # Step 1: Run workflow until it emits a request_info eventCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py263 # Step 2: Find the checkpoint with the pending requestCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py273 # Step 3: Create a fresh workflow and restore from checkpoint WITH responses in one callCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py286 # Step 4: Verify the request_info event was NOT re-emitted to the callerCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py295 # Step 5: Verify the response was processed by checking executor stateCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py365 # Step 4: Verify the approval request_info was NOT re-emittedCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py373 # Step 5: Verify the calculation request_info WAS re-emitted (no response provided)COMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py381 # Step 6: Verify workflow is in IDLE_WITH_PENDING_REQUESTS state (calc still pending)COMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py149 # Step 1: Run workflow to completion to ensure checkpoints are createdCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py161 # Step 2: List checkpoints to find the one with our pending requestCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py204 # Step 6: Provide response to the restored request and complete the workflowCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py327 # Step 1: Run workflow until it emits multiple request_info eventsCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py341 # Step 2: Find the checkpoint with pending requestsCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py353 # Step 3: Restore from checkpoint with ONLY the approval response (not the calculation)COMMENT
LOW…thon/packages/core/tests/workflow/test_sub_workflow.py587 # Step 1: Run workflow until first requestCOMMENT
109 more matches not shown…
Fake / Example Data294 hits · 259 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
LOWpython/samples/03-workflows/resources/long_text.txt1Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt1Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt3Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt3Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt5Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt5Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt7Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt7Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt9Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt9Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt11Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt11Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt13Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt13Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt15Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt15Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt17Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt17Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt19Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt19Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt21Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt21Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt23Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt23Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt25Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt25Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt27Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt27Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt29Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt29Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt31Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt31Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt33Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt33Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt35Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt35Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt37Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt37Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt39Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt39Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt41Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt41Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt43Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt43Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt45Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt45Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt47Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt47Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt49Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt49Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt51Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt51Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt53Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt53Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt55Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
LOWpython/samples/03-workflows/resources/long_text.txt55Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In iCODE
234 more matches not shown…
Verbosity Indicators134 hits · 245 pts
SeverityFileLineSnippetContext
LOW…thon/samples/01-get-started/07_first_graph_workflow.py29# Step 1: A class-based executor that converts text to uppercaseCOMMENT
LOW…thon/samples/01-get-started/07_first_graph_workflow.py40# Step 2: A function-based executor that reverses the string and yields outputCOMMENT
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
LOWpython/packages/core/tests/workflow/test_workflow.py959 # Step 1: drive stream A's body until it's suspended at its first yield.COMMENT
LOWpython/packages/core/tests/workflow/test_workflow.py964 # Step 2: drop stream A; GC invalidates the weakref and schedulesCOMMENT
LOWpython/packages/core/tests/workflow/test_workflow.py970 # Step 3: synchronously start stream B *before* yielding to the loop,COMMENT
LOWpython/packages/core/tests/workflow/test_workflow.py976 # Step 4: yield enough times for stream A's scheduled aclose to driveCOMMENT
LOWpython/packages/core/tests/workflow/test_workflow.py1048 # Step 1: drive stream A's body to its first yield so it set storage_a.COMMENT
LOWpython/packages/core/tests/workflow/test_workflow.py1054 # Step 2: drop stream A; the weakref dies and async-gen close is scheduledCOMMENT
LOWpython/packages/core/tests/workflow/test_workflow.py1060 # Step 3: synchronously start stream B with its own storage and drive it toCOMMENT
LOWpython/packages/core/tests/workflow/test_workflow.py1067 # Step 4: yield enough for stream A's scheduled aclose to drive its bodyCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py174 # Step 3: Verify the pending request info event was properly serializedCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py181 # Step 4: Create a fresh workflow and restore from checkpointCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py185 # Step 5: Resume from checkpoint and verify the request can be continuedCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py217 # Step 7: Verify the executor state was properly restored and response was processedCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py254 # Step 1: Run workflow until it emits a request_info eventCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py263 # Step 2: Find the checkpoint with the pending requestCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py273 # Step 3: Create a fresh workflow and restore from checkpoint WITH responses in one callCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py286 # Step 4: Verify the request_info event was NOT re-emitted to the callerCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py295 # Step 5: Verify the response was processed by checking executor stateCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py365 # Step 4: Verify the approval request_info was NOT re-emittedCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py373 # Step 5: Verify the calculation request_info WAS re-emitted (no response provided)COMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py381 # Step 6: Verify workflow is in IDLE_WITH_PENDING_REQUESTS state (calc still pending)COMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py149 # Step 1: Run workflow to completion to ensure checkpoints are createdCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py161 # Step 2: List checkpoints to find the one with our pending requestCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py204 # Step 6: Provide response to the restored request and complete the workflowCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py327 # Step 1: Run workflow until it emits multiple request_info eventsCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py341 # Step 2: Find the checkpoint with pending requestsCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py353 # Step 3: Restore from checkpoint with ONLY the approval response (not the calculation)COMMENT
LOW…thon/packages/core/tests/workflow/test_sub_workflow.py587 # Step 1: Run workflow until first requestCOMMENT
LOW…thon/packages/core/tests/workflow/test_sub_workflow.py601 # Step 2: Resume workflow from checkpointCOMMENT
LOWpython/packages/core/agent_framework/security.py1213 # Step 1: Extract labels from input argumentsCOMMENT
LOWpython/packages/core/agent_framework/security.py1216 # Step 2: Get tool's source_integrity declaration (may be None)COMMENT
LOWpython/packages/core/agent_framework/security.py1222 # 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
74 more matches not shown…
AI Slop Vocabulary88 hits · 236 pts
SeverityFileLineSnippetContext
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.py12# uv run samples/02-agents/harness/harness_research.pyCOMMENT
MEDIUMpython/samples/02-agents/harness/harness_research.py102 # Create a harness agent with research-specific instructions.STRING
MEDIUMpython/samples/02-agents/harness/harness_research.py112 # Enable harness looping: while the agent is in "execute" mode and still has open todos,STRING
MEDIUMpython/samples/02-agents/harness/harness_research.py121 # Run the harness console with the research agent.STRING
MEDIUM…n/samples/02-agents/harness/harness_data_processing.py12# uv run samples/02-agents/harness/harness_data_processing.pyCOMMENT
MEDIUM…n/samples/02-agents/harness/harness_data_processing.py109 # Create a harness agent with data-analyst instructions. Unused features areSTRING
MEDIUM…n/samples/02-agents/harness/harness_data_processing.py126 # 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.py12# 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.py50# Reuse the shared harness console that lives in the parent ``harness/`` directory.COMMENT
MEDIUM…ness/build_your_own_claw/claw_step01_meet_your_claw.py119 # 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.py125 # 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.py135 # Run the interactive console session using the shared harness console helper.COMMENT
MEDIUM…s/build_your_own_claw/claw_step02_working_with_data.py13# 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.py71# Reuse the shared harness console that lives in the parent ``harness/`` directory.COMMENT
MEDIUM…s/build_your_own_claw/claw_step02_working_with_data.py249 # 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.py16# 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.py83# Reuse the shared harness console that lives in the parent ``harness/`` directory, and the localCOMMENT
MEDIUM…uild_your_own_claw/claw_step03_scaling_capabilities.py241 # 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.py242 # 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.py312 # Turn the chat client into a harness agent. On top of Post 2's file access and approvals weCOMMENT
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
LOW…integration_tests/test_03_dt_single_agent_streaming.py118 # Don't raise an error, just return what we haveCOMMENT
MEDIUM…ackages/tools/agent_framework_tools/shell/_killtree.py104 """Fallback when psutil isn't installed. Less robust on Windows."""STRING
LOWpython/packages/core/tests/core/test_observability.py2461 # 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.py507 # A more comprehensive integration test would require the manager to select an agent.COMMENT
MEDIUMpython/packages/core/agent_framework/_serialization.py138 """Mixin class providing comprehensive serialization and deserialization capabilities.STRING
MEDIUMpython/packages/core/agent_framework/observability.py2838 # This is a simplified approach - in production you'd want more robust parsingCOMMENT
MEDIUMpython/packages/core/agent_framework/observability.py2908 # This is a simplified approach - in production you'd want more robust parsingCOMMENT
MEDIUMpython/packages/core/agent_framework/_harness/_agent.py578 # Assemble middleware. Tool approval is enabled by default (like the .NET harness) and isCOMMENT
MEDIUM…ges/core/agent_framework/_workflows/_agent_executor.py219 """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.py1311 # 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(wE,"")}function Uy(t,s){return s=Hy(s),Hy(t)===s}function $c(){}function xt(t,s,i,u,p,v){switch(i){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.py391 """Evaluate agent performance using tau2's comprehensive evaluation system.STRING
MEDIUM…n/packages/lab/tau2/agent_framework_lab_tau2/runner.py425 # 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/getting_started/server.py41# In production, you should use a more robust authentication mechanism such as:COMMENT
LOW…t_framework_declarative/_workflows/_executors_basic.py428 # No key field - just addCOMMENT
MEDIUM…light/agent_framework_hyperlight/_execute_code_tool.py270 # needed and we want dispose to remain robust during teardown.COMMENT
LOW…packages/ollama/agent_framework_ollama/_chat_client.py334 # 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.py367 """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
MEDIUM…ows.Declarative.UnitTests/Workflows/SetTextVariable.cs29/// Declarative workflows utilize Power FX for defining conditions and expressions.COMMENT
MEDIUM…kflows.Declarative.UnitTests/Workflows/LoopContinue.cs29/// Declarative workflows utilize Power FX for defining conditions and expressions.COMMENT
MEDIUM…rkflows.Declarative.UnitTests/Workflows/SetVariable.cs29/// Declarative workflows utilize Power FX for defining conditions and expressions.COMMENT
MEDIUM…rkflows.Declarative.UnitTests/Workflows/EditTableV2.cs29/// Declarative workflows utilize Power FX for defining conditions and expressions.COMMENT
MEDIUM…ive.UnitTests/Workflows/RetrieveConversationMessage.cs29/// Declarative workflows utilize Power FX for defining conditions and expressions.COMMENT
MEDIUM….Declarative.UnitTests/Workflows/CreateConversation.cs29/// Declarative workflows utilize Power FX for defining conditions and expressions.COMMENT
28 more matches not shown…
Hallucination Indicators23 hits · 230 pts
SeverityFileLineSnippetContext
CRITICAL…/responses/10_foundry_memory/provision_memory_store.py33from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…gents/responses/08_azure_search_rag/provision_index.py25from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…agents/responses/09_foundry_skills/provision_skills.py32from 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.py193 from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…ive/invoke_foundry_toolbox_mcp/toolbox_provisioning.py24 from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…ages/foundry/tests/foundry/test_foundry_chat_client.py21from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…n/packages/foundry/tests/foundry/test_foundry_agent.py27from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…ckages/foundry/agent_framework_foundry/_chat_client.py301 from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…hon/packages/foundry/agent_framework_foundry/_agent.py761 service_session = await self.client.project_client.beta.agents.create_session(**create_session_kwargs)CODE
CRITICAL…hon/packages/foundry/agent_framework_foundry/_agent.py849 from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICALpython/packages/core/tests/core/test_mcp.py5471 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.py1222 from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…h/agent_framework_azure_ai_search/_context_provider.py32from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…AI.CosmosNoSql.UnitTests/CosmosCheckpointStoreTests.cs53 options.TypeInfoResolver = new System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver();CODE
CRITICAL…ts.AI.Foundry.Hosting.UnitTests/InputConverterTests.cs1152 new MessageContent[] { new Azure.AI.AgentServer.Responses.Models.TextContent("plain text") });CODE
CRITICAL…ts.AI.Foundry.Hosting.UnitTests/InputConverterTests.cs1271 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.cs314 string[] locationSegments = pcRequest.ContentToProcess.ProtectedAppMetadata.ApplicationLocation.DataType.Split('CODE
CRITICAL…oft.Agents.AI.CosmosNoSql/CosmosChatHistoryProvider.cs60 options.TypeInfoResolver = new System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver();CODE
CRITICAL…g.AgentFramework.DevUI/DevUIAggregatorHostedService.cs720 System.Net.Http.Headers.MediaTypeHeaderValue.Parse(context.Request.ContentType);CODE
Synthetic Comment Markers27 hits · 202 pts
SeverityFileLineSnippetContext
HIGHpython/packages/core/tests/test_security.py1469 # 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.cs214 // actual AI-generated tool calls and would be rejected by the API.COMMENT
Redundant / Tautological Comments131 hits · 196 pts
SeverityFileLineSnippetContext
LOW…rabletask/07_single_agent_orchestration_hitl/worker.py248 # Check if we've exhausted attemptsCOMMENT
LOW…rabletask/07_single_agent_orchestration_hitl/client.py149 # Check if we're waiting for approval by examining custom statusCOMMENT
LOW…04-hosting/container/hyperlight_codeact/call_server.py19# Set FOUNDRY_AGENT_ENDPOINT to your deployed agent endpoint, e.g.COMMENT
LOW…ons/07_single_agent_orchestration_hitl/function_app.py149 # Check if we've exhausted attemptsCOMMENT
LOW…ons/07_single_agent_orchestration_hitl/function_app.py300 # Check if status is None or if the instance doesn't exist (runtime_status is None)COMMENT
LOW…2-agents/middleware/override_result_with_middleware.py65 # Check if there's a result to override (agent called weather function)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.py45 # 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.py139 # Display resultsSTRING
LOWpython/samples/05-end-to-end/chatkit-integration/app.py399 # Check if it's a WeatherResponse (string subclass with weather_data attribute)COMMENT
LOWpython/samples/05-end-to-end/chatkit-integration/app.py405 # Check if it's the city selector markerCOMMENT
LOWpython/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.py599 # Read file contentsCOMMENT
LOWpython/scripts/task_runner.py70 # 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…ckages/durabletask/tests/integration_tests/conftest.py170 # Check if failed or terminatedCOMMENT
LOW…ckages/durabletask/tests/integration_tests/conftest.py254 # Check if we're waiting for approval by examining custom statusCOMMENT
LOW…ckages/durabletask/tests/integration_tests/conftest.py451 # Check if process is still runningCOMMENT
LOW…ges/durabletask/agent_framework_durabletask/_models.py263 # Check if string is in @name@key formatCOMMENT
LOW…ges/azurefunctions/tests/integration_tests/conftest.py351 # Check if required env vars are setCOMMENT
LOW…es/foundry/agent_framework_foundry/_memory_provider.py185 # Check if there are any non-empty input messagesCOMMENT
LOW…packages/core/tests/core/test_middleware_with_agent.py1185 # Set metadata to pass information to run middlewareCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py1194 # Set max_iterations to 1 in additional_propertiesCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py1805 # Set max_consecutive_errors to 2COMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py1882 # Set terminate_on_unknown_calls to False (default)COMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py1918 # Set terminate_on_unknown_calls to TrueCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py2000 # Set include_detailed_errors to False (default)COMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py2036 # Set include_detailed_errors to TrueCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py2135 # Set include_detailed_errors to TrueCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py2171 # Set include_detailed_errors to False (default)COMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py2596 # Set include_detailed_errors to False (default)COMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py2661 # Set include_detailed_errors to TrueCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py2726 # Set include_detailed_errors to True to see validation detailsCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py3156 # Set max_iterations to 1 in additional_propertiesCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py3318 # Set max_consecutive_errors to 2COMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py3405 # Set terminate_on_unknown_calls to False (default)COMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py3450 # Set terminate_on_unknown_calls to TrueCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py3484 # Set include_detailed_errors to TrueCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py3526 # Set include_detailed_errors to False (default)COMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py3566 # Set include_detailed_errors to TrueCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py3606 # Set include_detailed_errors to False (default)COMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py3780 # Set result to a simple value - the framework will wrap it in FunctionResultContentCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py3836 # 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.py2822 # Check if this is a list of objects that were created from dictsCOMMENT
71 more matches not shown…
AI Structural Patterns145 hits · 118 pts
SeverityFileLineSnippetContext
LOW…multi_agent_orchestration_conditionals/function_app.py145CODE
LOW…n/samples/02-agents/harness/console/harness_console.py23CODE
LOWpython/samples/02-agents/harness/console/app.py143CODE
LOW…ges/durabletask/agent_framework_durabletask/_models.py125CODE
LOW…/azurefunctions/agent_framework_azurefunctions/_app.py211CODE
LOW…ithub_copilot/agent_framework_github_copilot/_agent.py298CODE
LOW…ithub_copilot/agent_framework_github_copilot/_agent.py1244CODE
LOW…on/packages/tools/agent_framework_tools/shell/_tool.py139CODE
LOW…/packages/tools/agent_framework_tools/shell/_docker.py328CODE
LOW…ages/foundry/agent_framework_foundry/_foundry_evals.py976CODE
LOW…s/foundry/agent_framework_foundry/_embedding_client.py117CODE
LOW…s/foundry/agent_framework_foundry/_embedding_client.py368CODE
LOW…ckages/foundry/agent_framework_foundry/_chat_client.py155CODE
LOW…ckages/foundry/agent_framework_foundry/_chat_client.py584CODE
LOW…ckages/foundry/agent_framework_foundry/_chat_client.py957CODE
LOW…hon/packages/foundry/agent_framework_foundry/_agent.py178CODE
LOW…hon/packages/foundry/agent_framework_foundry/_agent.py279CODE
LOW…hon/packages/foundry/agent_framework_foundry/_agent.py542CODE
LOW…hon/packages/foundry/agent_framework_foundry/_agent.py626CODE
LOW…hon/packages/foundry/agent_framework_foundry/_agent.py935CODE
LOW…es/foundry/agent_framework_foundry/_memory_provider.py68CODE
LOW…os/agent_framework_azure_cosmos/_checkpoint_storage.py114CODE
LOW…smos/agent_framework_azure_cosmos/_history_provider.py42CODE
LOWpython/packages/core/agent_framework/_types.py478CODE
LOWpython/packages/core/agent_framework/_types.py1094CODE
LOWpython/packages/core/agent_framework/_types.py2254CODE
LOWpython/packages/core/agent_framework/_types.py2538CODE
LOWpython/packages/core/agent_framework/_types.py2660CODE
LOWpython/packages/core/agent_framework/_types.py2945CODE
LOWpython/packages/core/agent_framework/_sessions.py188CODE
LOWpython/packages/core/agent_framework/_sessions.py1120CODE
LOWpython/packages/core/agent_framework/_evaluation.py1629CODE
LOWpython/packages/core/agent_framework/_evaluation.py1833CODE
LOWpython/packages/core/agent_framework/_evaluation.py415CODE
LOWpython/packages/core/agent_framework/_tools.py1120CODE
LOWpython/packages/core/agent_framework/_tools.py1136CODE
LOWpython/packages/core/agent_framework/_tools.py1151CODE
LOWpython/packages/core/agent_framework/_tools.py306CODE
LOWpython/packages/core/agent_framework/_mcp.py401CODE
LOWpython/packages/core/agent_framework/_mcp.py2699CODE
LOWpython/packages/core/agent_framework/_mcp.py2888CODE
LOWpython/packages/core/agent_framework/_mcp.py3135CODE
LOWpython/packages/core/agent_framework/security.py2234CODE
LOWpython/packages/core/agent_framework/security.py3380CODE
LOWpython/packages/core/agent_framework/observability.py364CODE
LOWpython/packages/core/agent_framework/observability.py1993CODE
LOWpython/packages/core/agent_framework/observability.py2009CODE
LOWpython/packages/core/agent_framework/observability.py2025CODE
LOWpython/packages/core/agent_framework/observability.py2040CODE
LOWpython/packages/core/agent_framework/_agents.py755CODE
LOWpython/packages/core/agent_framework/_agents.py949CODE
LOWpython/packages/core/agent_framework/_agents.py964CODE
LOWpython/packages/core/agent_framework/_agents.py979CODE
LOWpython/packages/core/agent_framework/_agents.py993CODE
LOWpython/packages/core/agent_framework/_agents.py1714CODE
LOWpython/packages/core/agent_framework/_agents.py1730CODE
LOWpython/packages/core/agent_framework/_agents.py1746CODE
LOWpython/packages/core/agent_framework/_agents.py1761CODE
LOWpython/packages/core/agent_framework/_agents.py1793CODE
LOWpython/packages/core/agent_framework/_middleware.py140CODE
85 more matches not shown…
Magic Placeholder Names20 hits · 95 pts
SeverityFileLineSnippetContext
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.py23 python mcp_api_key_auth.py <your_api_key>STRING
HIGHpython/packages/core/agent_framework/_serialization.py441 openai_client = AsyncOpenAI(api_key="your-api-key")STRING
HIGHpython/packages/core/agent_framework/_tools.py1357 client = OpenAIChatClient(api_key="your_api_key")STRING
HIGHpython/packages/gemini/README.md26export GEMINI_API_KEY="your-api-key"CODE
HIGHpython/packages/gemini/README.md27# or: export GOOGLE_API_KEY="your-api-key"COMMENT
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.md26 api_key="your-api-key",CODE
HIGH…s/mistral/agent_framework_mistral/_embedding_client.py236 api_key="your-api-key",STRING
HIGH…ples/04-hosting/DurableAgents/AzureFunctions/README.md62export AZURE_OPENAI_API_KEY="your-api-key"CODE
HIGH…ples/04-hosting/DurableAgents/AzureFunctions/README.md68$env:AZURE_OPENAI_API_KEY="your-api-key"CODE
HIGH…rableAgents/AzureFunctions/07_AgentAsMcpTool/README.md42 "AZURE_OPENAI_API_KEY": "your-api-key-if-not-using-rbac"CODE
HIGH…samples/04-hosting/DurableAgents/ConsoleApps/README.md61export AZURE_OPENAI_API_KEY="your-api-key"CODE
HIGH…samples/04-hosting/DurableAgents/ConsoleApps/README.md67$env:AZURE_OPENAI_API_KEY="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…hosting/durabletask/03_single_agent_streaming/tools.py3"""Mock travel tools for demonstration purposes.STRING
MEDIUM…hosting/azure_functions/03_reliable_streaming/tools.py3"""Mock travel tools for demonstration purposes.STRING
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
MEDIUM…arness/build_your_own_claw/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.py34 Note: This is for demonstration purposes. In production, use cloud storageSTRING
MEDIUM…ackages/openai/tests/openai/test_openai_chat_client.py1131 assert response.messages[0].contents[0].text == "I cannot provide that information."CODE
MEDIUM…ackages/openai/tests/openai/test_openai_chat_client.py1119 mock_refusal_content.refusal = "I cannot provide that information."CODE
MEDIUM…nai/tests/openai/test_openai_chat_completion_client.py1219 refusal="I cannot provide that information.",CODE
MEDIUM…nai/tests/openai/test_openai_chat_completion_client.py1233 assert message.contents[0].text == "I cannot provide that information."CODE
MEDIUM…bleAgents/AzureFunctions/08_ReliableStreaming/Tools.cs8/// Mock travel tools that return hardcoded data for demonstration purposes.COMMENT
MEDIUM…bleAgents/AzureFunctions/08_ReliableStreaming/Tools.cs15 /// Returns mock weather data for demonstration purposes.COMMENT
MEDIUM…bleAgents/AzureFunctions/08_ReliableStreaming/Tools.cs67 /// Returns mock event data for demonstration purposes.STRING
MEDIUM…ableAgents/ConsoleApps/07_ReliableStreaming/Program.cs67// Mock travel tools that return hardcoded data for demonstration purposes.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
Cross-Language Confusion17 hits · 76 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.py108 ``cd /tmp && rm -rf .`` in one call can still touch ``/tmp``.CODE
HIGH…packages/tools/agent_framework_tools/shell/_session.py356 " if ($LASTEXITCODE -ne $null) { $__af_rc = $LASTEXITCODE }"CODE
HIGHpython/packages/tools/tests/test_docker_shell_tool.py265 r = await shell.run("wget -q -T 2 -O- http://example.com || echo NOACCESS")CODE
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.py96 '"next_speaker": "agent", "final_message": null}'CODE
HIGHpython/packages/orchestrations/tests/test_group_chat.py119 '"next_speaker": null, "final_message": "agent manager final"}'CODE
HIGHpython/packages/orchestrations/tests/test_group_chat.py154 '"next_speaker": "unknown", "final_message": null} 'CODE
HIGHpython/packages/orchestrations/tests/test_group_chat.py156 '"next_speaker": "agent", "final_message": null}'CODE
HIGHpython/packages/orchestrations/tests/test_group_chat.py171 '"next_speaker": null, "final_message": "concatenated manager final"}'CODE
HIGHpython/packages/orchestrations/tests/test_group_chat.py965 '"next_speaker": "alpha", "final_message": null}'CODE
HIGHpython/packages/orchestrations/tests/test_group_chat.py987 '"next_speaker": null, "final_message": "dynamic manager final"}'CODE
HIGH…ent_framework_declarative/_workflows/_executors_mcp.py131 This avoids surprising ``"[42]"`` / ``"[true]"`` / ``"[null]"`` whenSTRING
HIGH…thon/packages/declarative/tests/test_workflow_state.py270 assert state._eval_simple("Local.x || Local.y") is TrueCODE
HIGH…thon/packages/declarative/tests/test_workflow_state.py266 """Test || operator."""STRING
HIGH…nai/tests/openai/test_openai_chat_completion_client.py2002 The OpenAI spec sends ``"delta": {}`` (not null) on finish chunks. TheseSTRING
Dead Code18 hits · 31 pts
SeverityFileLineSnippetContext
MEDIUM…packages/core/tests/core/test_middleware_with_agent.py129CODE
MEDIUM…packages/core/tests/core/test_middleware_with_agent.py130CODE
MEDIUM…packages/core/tests/core/test_middleware_with_agent.py1945CODE
MEDIUM…packages/core/tests/core/test_middleware_with_agent.py1946CODE
MEDIUMpython/packages/core/tests/core/test_types.py4291CODE
MEDIUMpython/packages/core/tests/core/test_types.py4310CODE
MEDIUMpython/packages/core/tests/core/test_types.py4332CODE
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.py965CODE
MEDIUMpython/packages/ag-ui/tests/ag_ui/test_workflow_run.py2091CODE
MEDIUM…ges/ag-ui/tests/ag_ui/golden/test_scenario_workflow.py453CODE
MEDIUM…ges/ag-ui/tests/ag_ui/golden/test_scenario_workflow.py475CODE
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 Blocks9 hits · 14 pts
SeverityFileLineSnippetContext
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…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
Cross-Language Confusion (JS/TS)2 hits · 10 pts
SeverityFileLineSnippetContext
HIGH…ackages/devui/agent_framework_devui/ui/assets/index.js130 print(response)CODE
HIGH…mponents/features/gallery/setup-instructions-modal.tsx175 print(response)CODE
Overly Generic Function Names10 hits · 8 pts
SeverityFileLineSnippetContext
LOW…ages/github_copilot/tests/test_github_copilot_agent.py1953 def my_function(arg: str) -> str:CODE
LOWpython/packages/core/tests/core/test_skills.py3403 def my_function(key: str = "") -> str:CODE
LOWpython/packages/core/tests/core/test_feature_stage.py84 def my_function(value: int) -> int:CODE
LOWpython/packages/core/tests/core/test_feature_stage.py413 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.py244 def process_data(data: str):STRING
LOWpython/packages/lab/gaia/samples/gaia_sample.py148 async def run_task(task: Task) -> Prediction:CODE
LOW…/packages/declarative/tests/test_declarative_loader.py1337 def my_function():STRING
LOW…on/packages/declarative/tests/test_workflow_factory.py339 def my_function(x):CODE
LOW…nai/tests/openai/test_openai_chat_completion_client.py319 def test_function(query: str) -> str:CODE
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…g.AzureFunctions.IntegrationTests/SamplesValidation.cs229 // TODO: Add validation for the approval caseCOMMENT