Repository Analysis

microsoft/agent-framework

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

20.4 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of microsoft/agent-framework, a Python project with 13,182 GitHub stars. SynthScan v2.0 examined 955,291 lines of code across 4433 source files, recording 16291 pattern matches distributed across 27 syntactic categories. The overall adjusted score of 20.4 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).

20.4
Adjusted Score
20.4
Raw Score
100%
Time Factor
2026-08-28
Last Push
13.2K
Stars
Python
Language
955.3K
Lines of Code
4.4K
Files
16.3K
Pattern Hits
2026-08-29
Scan Date
0.11
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 25HIGH 452MEDIUM 1569LOW 14245

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 16291 distinct pattern matches across 27 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 Identifiers9828 hits · 7608 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.py49async def _start_local_kernel_process(CODE
LOW…c-kernel-migration/processes/fan_out_fan_in_process.py136async def run_semantic_kernel_process_example() -> None:CODE
LOW…c-kernel-migration/processes/fan_out_fan_in_process.py232async def run_agent_framework_workflow_example() -> str | None:CODE
LOW…/semantic-kernel-migration/processes/nested_process.py134async def run_semantic_kernel_nested_process() -> None:CODE
LOW…/semantic-kernel-migration/processes/nested_process.py253async def run_agent_framework_nested_workflow(initial_message: str) -> Sequence[str]:CODE
LOW…es/semantic-kernel-migration/orchestrations/handoff.py75def build_semantic_kernel_agents() -> tuple[list[SKAgent], OrchestrationHandoffs]:CODE
LOW…es/semantic-kernel-migration/orchestrations/handoff.py161async def run_semantic_kernel_example(initial_task: str, scripted_responses: Sequence[str]) -> str:CODE
LOW…es/semantic-kernel-migration/orchestrations/handoff.py233def _collect_handoff_requests(events: list[WorkflowEvent]) -> list[WorkflowEvent]:CODE
LOW…es/semantic-kernel-migration/orchestrations/handoff.py241def _extract_final_conversation(events: list[WorkflowEvent]) -> list[Message]:CODE
LOW…es/semantic-kernel-migration/orchestrations/handoff.py248async def run_agent_framework_example(initial_task: str, scripted_responses: Sequence[str]) -> str:CODE
LOW…semantic-kernel-migration/orchestrations/sequential.py43def build_semantic_kernel_agents() -> list[SKAgent]:CODE
LOW…semantic-kernel-migration/orchestrations/sequential.py61async def sk_agent_response_callback(CODE
LOW…semantic-kernel-migration/orchestrations/sequential.py81async def run_agent_framework_example(prompt: str) -> list[Message]:CODE
LOW…semantic-kernel-migration/orchestrations/sequential.py106async def run_semantic_kernel_example(prompt: str) -> str:CODE
LOW…semantic-kernel-migration/orchestrations/group_chat.py60def build_semantic_kernel_agents() -> list[ChatCompletionAgent]:CODE
LOW…semantic-kernel-migration/orchestrations/group_chat.py118 async def should_request_user_input(self, chat_history: ChatHistory) -> BooleanResult:CODE
LOW…semantic-kernel-migration/orchestrations/group_chat.py188async def sk_agent_response_callback(message: ChatMessageContent | Sequence[ChatMessageContent]) -> None:CODE
LOW…semantic-kernel-migration/orchestrations/group_chat.py200async def run_semantic_kernel_example(task: str) -> str:CODE
LOW…semantic-kernel-migration/orchestrations/group_chat.py230async def run_agent_framework_example(task: str) -> str:CODE
LOW…ic-kernel-migration/orchestrations/concurrent_basic.py42def build_semantic_kernel_agents() -> list[ChatCompletionAgent]:CODE
LOW…ic-kernel-migration/orchestrations/concurrent_basic.py60async def run_semantic_kernel_example(prompt: str) -> Sequence[ChatMessageContent]:CODE
LOW…ic-kernel-migration/orchestrations/concurrent_basic.py78def _print_semantic_kernel_outputs(outputs: Sequence[ChatMessageContent]) -> None:CODE
LOW…ic-kernel-migration/orchestrations/concurrent_basic.py94async def run_agent_framework_example(prompt: str) -> Sequence[list[Message]]:CODE
LOW…ic-kernel-migration/orchestrations/concurrent_basic.py119def _print_agent_framework_outputs(conversations: Sequence[Sequence[Message]]) -> None:CODE
LOW…s/semantic-kernel-migration/orchestrations/magentic.py53async def build_semantic_kernel_agents() -> list[ChatCompletionAgent | OpenAIAssistantAgent]:CODE
LOW…s/semantic-kernel-migration/orchestrations/magentic.py83def sk_agent_response_callback(CODE
LOW…s/semantic-kernel-migration/orchestrations/magentic.py98async def run_semantic_kernel_example(prompt: str) -> Sequence[ChatMessageContent]:CODE
LOW…s/semantic-kernel-migration/orchestrations/magentic.py121def _print_semantic_kernel_outputs(outputs: Sequence[ChatMessageContent]) -> None:CODE
LOW…s/semantic-kernel-migration/orchestrations/magentic.py137async def run_agent_framework_example(prompt: str) -> str | None:CODE
LOW…s/semantic-kernel-migration/orchestrations/magentic.py194def _print_agent_framework_output(result: str | None) -> None:CODE
LOWpython/samples/04-hosting/a2a/README.md109def resolve_tenant_user_scope(context):CODE
LOWpython/samples/04-hosting/a2a/invoice_data.py65def _random_date_within_last_two_months() -> datetime:CODE
LOW…/foundry-hosted-agents/invocations/break_glass/main.py42def get_session_partition_key() -> str:CODE
LOW…oundry-hosted-agents/responses/using_deployed_agent.py52async def run_service_managed_session(CODE
LOW…s/resilient_long_running_workflow/verify_resiliency.py81def _create_streaming_background_response(payload: dict[str, Any], progress: dict[str, Any]) -> None:CODE
LOW…/04-hosting/af-hosting/local_responses_workflow/app.py147def workflow_prompt_from_messages(messages: Any) -> str:CODE
LOW…/04-hosting/af-hosting/local_responses_workflow/app.py181def response_from_workflow_result(result: Any) -> AgentResponse[Any]:CODE
LOWpython/samples/02-agents/auto_retry.py151async def rate_limit_retry_middleware(CODE
LOWpython/samples/02-agents/auto_retry.py200async def class_based_middleware_example() -> None:CODE
LOWpython/samples/02-agents/auto_retry.py220async def function_based_middleware_example() -> None:CODE
LOWpython/samples/02-agents/typed_options.py36async def demo_anthropic_chat_client() -> None:CODE
LOWpython/samples/02-agents/typed_options.py109async def demo_openai_chat_client_reasoning_models() -> None:CODE
LOWpython/samples/02-agents/background_responses.py67async def streaming_with_resumption() -> None:CODE
LOW…les/02-agents/middleware/runtime_context_delegation.py66 async def inject_context_middleware(CODE
LOW…2-agents/middleware/override_result_with_middleware.py59async def weather_override_middleware(context: ChatContext, call_next: Callable[[], Awaitable[None]]) -> None:CODE
LOW…2-agents/middleware/override_result_with_middleware.py92async def validate_weather_middleware(context: ChatContext, call_next: Callable[[], Awaitable[None]]) -> None:CODE
LOW…n/samples/02-agents/middleware/decorator_middleware.py68async def simple_function_middleware(context, call_next): # type: ignore - parameters intentionally untyped to demonstrCODE
LOW…ples/02-agents/middleware/function_based_middleware.py51async def security_agent_middleware(CODE
LOW…ples/02-agents/middleware/function_based_middleware.py70async def logging_function_middleware(CODE
LOW…gents/middleware/exception_handling_with_middleware.py43async def exception_handling_middleware(CODE
9768 more matches not shown…
Decorative Section Separators946 hits · 3064 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
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
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
MEDIUMpython/samples/02-agents/auto_retry.py145# =============================================================================COMMENT
MEDIUMpython/samples/02-agents/auto_retry.py147# =============================================================================COMMENT
MEDIUMpython/samples/02-agents/auto_retry.py176# =============================================================================COMMENT
MEDIUMpython/samples/02-agents/auto_retry.py178# =============================================================================COMMENT
MEDIUMpython/samples/02-agents/response_stream.py147 # =========================================================================COMMENT
MEDIUMpython/samples/02-agents/response_stream.py149 # =========================================================================COMMENT
MEDIUMpython/samples/02-agents/response_stream.py173 # =========================================================================COMMENT
MEDIUMpython/samples/02-agents/response_stream.py175 # =========================================================================COMMENT
MEDIUMpython/samples/02-agents/response_stream.py186 # =========================================================================COMMENT
MEDIUMpython/samples/02-agents/response_stream.py188 # =========================================================================COMMENT
MEDIUMpython/samples/02-agents/response_stream.py220 # =========================================================================COMMENT
MEDIUMpython/samples/02-agents/response_stream.py222 # =========================================================================COMMENT
MEDIUMpython/samples/02-agents/response_stream.py244 # =========================================================================COMMENT
MEDIUMpython/samples/02-agents/response_stream.py246 # =========================================================================COMMENT
MEDIUMpython/samples/02-agents/response_stream.py275 # =========================================================================COMMENT
MEDIUMpython/samples/02-agents/response_stream.py277 # =========================================================================COMMENT
MEDIUMpython/samples/02-agents/response_stream.py317 # =========================================================================COMMENT
MEDIUMpython/samples/02-agents/response_stream.py319 # =========================================================================COMMENT
MEDIUM…les/02-agents/middleware/runtime_context_delegation.py262# ================================================================COMMENT
MEDIUM…les/02-agents/middleware/runtime_context_delegation.py376# ===================================================================COMMENT
MEDIUM…n/samples/02-agents/security/email_security_example.py81# =============================================================================COMMENT
MEDIUM…n/samples/02-agents/security/email_security_example.py83# =============================================================================COMMENT
MEDIUM…n/samples/02-agents/security/email_security_example.py167# =============================================================================COMMENT
MEDIUM…n/samples/02-agents/security/email_security_example.py169# =============================================================================COMMENT
MEDIUM…n/samples/02-agents/security/email_security_example.py245# =============================================================================COMMENT
MEDIUM…n/samples/02-agents/security/email_security_example.py247# =============================================================================COMMENT
MEDIUM…les/02-agents/security/repo_confidentiality_example.py69# =============================================================================COMMENT
MEDIUM…les/02-agents/security/repo_confidentiality_example.py71# =============================================================================COMMENT
MEDIUM…les/02-agents/security/repo_confidentiality_example.py102# =============================================================================COMMENT
MEDIUM…les/02-agents/security/repo_confidentiality_example.py104# =============================================================================COMMENT
MEDIUM…les/02-agents/security/repo_confidentiality_example.py135 # =========================================================================COMMENT
MEDIUM…les/02-agents/security/repo_confidentiality_example.py139 # =========================================================================COMMENT
MEDIUM…les/02-agents/security/repo_confidentiality_example.py161 # =====================================================================COMMENT
MEDIUM…les/02-agents/security/repo_confidentiality_example.py164 # =====================================================================COMMENT
MEDIUM…les/02-agents/security/repo_confidentiality_example.py194# =============================================================================COMMENT
MEDIUM…les/02-agents/security/repo_confidentiality_example.py196# =============================================================================COMMENT
MEDIUMpython/samples/02-agents/mcp/mcp_long_running_task.py42# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/samples/02-agents/mcp/mcp_long_running_task.py44# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/samples/02-agents/mcp/mcp_long_running_task.py123# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/samples/02-agents/mcp/mcp_long_running_task.py125# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/samples/02-agents/mcp/mcp_long_running_task.py168# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/samples/02-agents/mcp/mcp_long_running_task.py170# ---------------------------------------------------------------------------COMMENT
886 more matches not shown…
Over-Commented Block1502 hits · 1492 pts
SeverityFileLineSnippetContext
LOW…n-migration/single_agent/03_agent_thread_and_stream.py1# /// scriptCOMMENT
LOW…s/autogen-migration/single_agent/02_agent_with_tool.py1# /// scriptCOMMENT
LOW…mples/autogen-migration/single_agent/01_basic_agent.py1# /// scriptCOMMENT
LOW…c-kernel-migration/processes/fan_out_fan_in_process.py1# /// scriptCOMMENT
LOW…/semantic-kernel-migration/processes/nested_process.py1# /// scriptCOMMENT
LOW…hat_completion/03_chat_completion_thread_and_stream.py1# /// scriptCOMMENT
LOW…-migration/chat_completion/01_basic_chat_completion.py1# /// scriptCOMMENT
LOW…ration/chat_completion/02_chat_completion_with_tool.py1# /// scriptCOMMENT
LOW…es/semantic-kernel-migration/orchestrations/handoff.py1# /// scriptCOMMENT
LOW…semantic-kernel-migration/orchestrations/sequential.py1# /// scriptCOMMENT
LOW…semantic-kernel-migration/orchestrations/group_chat.py1# /// scriptCOMMENT
LOW…ic-kernel-migration/orchestrations/concurrent_basic.py1# /// scriptCOMMENT
LOW…s/semantic-kernel-migration/orchestrations/magentic.py1# /// scriptCOMMENT
LOW…igration/copilot_studio/02_copilot_studio_streaming.py1# /// scriptCOMMENT
LOW…ration/copilot_studio/01_basic_copilot_studio_agent.py1# /// scriptCOMMENT
LOW…enai_responses/03_responses_agent_structured_output.py1# /// scriptCOMMENT
LOW…migration/openai_responses/01_basic_responses_agent.py1# /// scriptCOMMENT
LOW…ation/openai_responses/02_responses_agent_with_tool.py1# /// scriptCOMMENT
LOWpython/samples/04-hosting/mcp/manual_app.py1# /// scriptCOMMENT
LOWpython/samples/04-hosting/mcp/session_app.py1# /// scriptCOMMENT
LOWpython/samples/04-hosting/mcp/agent_app.py1# /// scriptCOMMENT
LOWpython/samples/04-hosting/mcp/fastmcp_app.py1# /// scriptCOMMENT
LOWpython/samples/04-hosting/mcp/workflow_app.py1# /// scriptCOMMENT
LOW…ses/foundry_toolbox/scripts/list-foundry-connectors.sh1#!/usr/bin/env bashCOMMENT
LOW…s/responses/declarative_customer_support/workflow.yaml1# A multi-turn customer-support triage workflow defined declaratively.COMMENT
LOW…ents/responses/foundry_toolbox_mcp_skills/toolbox.yaml1# toolbox.yamlCOMMENT
LOW…04-hosting/container/hyperlight_codeact/call_server.py1# /// scriptCOMMENT
LOW…-hosting/container/hyperlight_codeact/requirements.txt1# agent-framework, agent-framework-foundry-hosting, and agent-framework-hyperlightCOMMENT
LOW…s/04-hosting/af-hosting/local_responses_harness/app.py241# Sample output:COMMENT
LOW…on/samples/04-hosting/af-hosting/local_telegram/app.py1# /// scriptCOMMENT
LOW…es/04-hosting/af-hosting/local_telegram/polling_app.py1# /// scriptCOMMENT
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…es/02-agents/context_providers/file_memory_provider.py61 # Here we use a file-system backed store rooted at a localCOMMENT
LOW…oviders/file_access_data_processing/data_processing.py141# quantity, unit_price, region, salesperson.COMMENT
LOWpython/samples/02-agents/harness/harness_research.py1# /// scriptCOMMENT
LOW…n/samples/02-agents/harness/harness_data_processing.py1# /// scriptCOMMENT
LOW…ness/build_your_own_claw/claw_step01_meet_your_claw.py1# /// scriptCOMMENT
LOW…s/build_your_own_claw/claw_step02_working_with_data.py1# /// scriptCOMMENT
LOW…uild_your_own_claw/claw_step03_scaling_capabilities.py1# /// scriptCOMMENT
LOW…d_your_own_claw/claw_step04_production_ready/hosted.py1# /// scriptCOMMENT
LOW…ld_your_own_claw/claw_step04_production_ready/evals.py1# /// scriptCOMMENT
LOW…ld_your_own_claw/claw_step04_production_ready/agent.py1# /// scriptCOMMENT
LOW…r_own_claw/claw_step04_production_ready/console_app.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
LOW…les/05-end-to-end/ag_ui_single_agent/backend/server.py1# /// scriptCOMMENT
LOWpython/scripts/integration_test_report/aggregate.py101 testcases = list(root.findall("testcase"))COMMENT
1442 more matches not shown…
Self-Referential Comments343 hits · 1042 pts
SeverityFileLineSnippetContext
MEDIUMpython/devsetup.sh2# Create a virtual environment with Python 3.10 (you can change this to 3.11, 3.12 or 3.13)COMMENT
MEDIUM…n-migration/single_agent/03_agent_thread_and_stream.py69 # Create a session to maintain stateCOMMENT
MEDIUM…s/autogen-migration/single_agent/02_agent_with_tool.py35 # Define a simple tool functionCOMMENT
MEDIUM…les/autogen-migration/single_agent/04_agent_as_tool.py25 # Create a specialized writer agentCOMMENT
MEDIUM…s/semantic-kernel-migration/orchestrations/magentic.py159 # Create a manager agent for orchestrationCOMMENT
MEDIUMpython/samples/01-get-started/03_multi_turn.py33 # Create a session to maintain conversation historyCOMMENT
MEDIUMpython/samples/04-hosting/a2a/a2a_server.py163 # Create the LLM clientCOMMENT
MEDIUMpython/samples/04-hosting/a2a/a2a_server.py171 # Create the Agent Framework agent for the chosen typeCOMMENT
MEDIUM…/foundry-hosted-agents/invocations/break_glass/main.py23# Create the agentCOMMENT
MEDIUM…oundry-hosted-agents/responses/foundry_toolbox/main.py25 # Create the chat clientCOMMENT
MEDIUM…-hosting/foundry-hosted-agents/responses/files/main.py53 # Create the chat clientCOMMENT
MEDIUM…agents/responses/foundry_toolbox_mcp_skills/agent.yaml15 # Create the skills and toolbox from the bundled skills/ folder andCOMMENT
MEDIUM…sponses/foundry_toolbox_mcp_skills/agent.manifest.yaml34 # Create the skills and toolbox from the bundled skills/ folder andCOMMENT
MEDIUMpython/samples/02-agents/typed_options.py65 # Create a typed agent for Anthropic - IDE knows Anthropic-specific options!COMMENT
MEDIUMpython/samples/02-agents/typed_options.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
MEDIUM…/providers/foundry/foundry_chat_client_with_session.py75 # Create a new session that will be reusedCOMMENT
MEDIUM…/providers/foundry/foundry_chat_client_with_session.py126 # Create a new agent instance but use the existing session with its message historyCOMMENT
MEDIUM…rs/azure/openai_chat_completion_client_with_session.py75 # Create a new session that will be reusedCOMMENT
MEDIUM…rs/azure/openai_chat_completion_client_with_session.py126 # Create a new agent instance but use the existing session with its message historyCOMMENT
MEDIUM…2-agents/providers/azure/openai_client_with_session.py73 # Create a new session that will be reusedCOMMENT
MEDIUM…2-agents/providers/azure/openai_client_with_session.py133 # Create a session with the existing IDCOMMENT
MEDIUM…roviders/azure/openai_client_with_structured_output.py32 # Create an Azure OpenAI Chat agentCOMMENT
MEDIUM…roviders/azure/openai_client_with_structured_output.py58 # Create an Azure OpenAI Chat agentCOMMENT
MEDIUM…s/providers/anthropic/anthropic_claude_with_session.py76 # Create a session to maintain conversation contextCOMMENT
MEDIUM…ples/02-agents/providers/anthropic/anthropic_skills.py40 # Create a agent with the pptx skill enabledCOMMENT
MEDIUM…ples/02-agents/providers/openai/client_with_session.py72 # Create a new session that will be reusedCOMMENT
MEDIUM…ples/02-agents/providers/openai/client_with_session.py135 # Create a session with the existing IDCOMMENT
MEDIUM…/02-agents/providers/openai/client_image_generation.py62 # Create an agent with customized image generation optionsCOMMENT
MEDIUM…ents/providers/openai/client_with_structured_output.py31 # Create an OpenAI Chat agentCOMMENT
MEDIUM…ents/providers/openai/client_with_structured_output.py57 # Create an OpenAI Chat agentCOMMENT
MEDIUM…roviders/openai/chat_completion_client_with_session.py70 # Create a new session that will be reusedCOMMENT
MEDIUM…roviders/openai/chat_completion_client_with_session.py119 # Create a new agent instance but use the existing session with its message historyCOMMENT
MEDIUM…amples/02-agents/providers/openai/client_with_shell.py35 # Create a hosted shell tool with the default auto container environmentCOMMENT
MEDIUM…2-agents/providers/openai/client_with_agent_as_tool.py42 # Create a specialized writer agentCOMMENT
MEDIUM…n/samples/02-agents/context_providers/todo_provider.py64 # Create the TodoProvider and attach it to the agent as a context provider. The providerCOMMENT
MEDIUM…02-agents/context_providers/azure_ai_foundry_memory.py63 # Create a memory storeCOMMENT
MEDIUM…02-agents/context_providers/azure_ai_foundry_memory.py77 # Create the chat clientCOMMENT
MEDIUM…02-agents/context_providers/azure_ai_foundry_memory.py79 # Create the Foundry Memory context providerCOMMENT
MEDIUM…02-agents/context_providers/azure_ai_foundry_memory.py89 # Create an agent with the memory context providerCOMMENT
MEDIUM…02-agents/context_providers/simple_context_provider.py119 # Create the memory providerCOMMENT
MEDIUM…02-agents/context_providers/simple_context_provider.py122 # Create the agent with memoryCOMMENT
MEDIUM…02-agents/context_providers/simple_context_provider.py128 # Create a new session for the conversationCOMMENT
MEDIUM…les/02-agents/context_providers/agent_mode_provider.py92 # Create the agent and attach the mode provider as a context provider.COMMENT
283 more matches not shown…
Docstring Block Structure204 hits · 1020 pts
SeverityFileLineSnippetContext
HIGHpython/CODING_STANDARD.md515Create a new client with the specified configuration. Args: model: The model ID to use. If not provided, STRING
HIGHpython/CODING_STANDARD.md549Create a new agent with the specified configuration. Args: name: The name of the agent. client: TheSTRING
HIGH…arness/build_your_own_claw/subprocess_script_runner.py26Run a skill script as a local Python subprocess. Uses ``FileSkillScript.full_path`` as the script path, converts theSTRING
HIGH…aw_step04_production_ready/subprocess_script_runner.py26Run a skill script as a local Python subprocess. Uses ``FileSkillScript.full_path`` as the script path, converts theSTRING
HIGH…amples/02-agents/harness/console/observers/__init__.py64Build observers with planning support (structured output in plan mode). Replaces TextOutputObserver with PlanningOuSTRING
HIGH…n/samples/02-agents/skills/subprocess_script_runner.py21Run a skill script as a local Python subprocess. Uses ``FileSkillScript.full_path`` as the script path, converts theSTRING
HIGH…/05-end-to-end/chatkit-integration/attachment_store.py65Get the filesystem path for an attachment. Args: attachment_id: Identifier used as the attachment fSTRING
HIGH…osting/agent_framework_foundry_hosting/_state_store.py116Load a workflow checkpoint from the store. Args: checkpoint_id: The ID of the checkpoint to load. STRING
HIGH…ry_hosting/agent_framework_foundry_hosting/_toolbox.py279Return a :class:`~agent_framework.SkillsProvider` backed by this toolbox. A Foundry toolbox can serve Agent SkiSTRING
HIGH…_hosting/agent_framework_foundry_hosting/_responses.py1387Converts an Item to a Message. Args: item: The Item to convert. approval_storage: An optional ApproSTRING
HIGH…_hosting/agent_framework_foundry_hosting/_responses.py1655Converts an OutputItem to a Message. Args: item (OutputItem): The OutputItem to convert. approval_sSTRING
HIGH…_hosting/agent_framework_foundry_hosting/_responses.py1907Converts an OutputMessageContent to a Content object. Args: content (OutputMessageContent): The OutputMessaSTRING
HIGH…_hosting/agent_framework_foundry_hosting/_responses.py1954Converts a MessageContent to a Content object. Args: content (MessageContent): The MessageContent to converSTRING
HIGH…ithub_copilot/agent_framework_github_copilot/_agent.py761Get 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.py957Internal method to stream updates from GitHub Copilot. Args: messages: The message(s) to send to thSTRING
HIGH…ithub_copilot/agent_framework_github_copilot/_agent.py1400Get 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.py186Resolve 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.py199Generate embeddings for text and/or image inputs. Text inputs (``str`` or ``Content`` with ``type="text"``) areSTRING
HIGH…ckages/foundry/agent_framework_foundry/_chat_client.py665Create 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.py237Load a checkpoint from Cosmos DB by ID. Args: checkpoint_id: The unique ID of the checkpoint to loaSTRING
HIGHpython/packages/core/agent_framework/_types.py87Detect media type from base64-encoded data by examining magic bytes. This function examines the binary signature (mSTRING
HIGHpython/packages/core/agent_framework/_types.py177Extract base64 data string from data URI. Args: content: The Content instance to extract data from. ReSTRING
HIGHpython/packages/core/agent_framework/_types.py206Extract and decode binary data from data URI. Args: content: The Content instance to extract data from. STRING
HIGHpython/packages/core/agent_framework/_types.py431Add 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.py660Create data content from raw binary data. Use this to create content from binary data (images, audio, documentsSTRING
HIGHpython/packages/core/agent_framework/_types.py736Create 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.py1587Check 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.py1618Parse arguments from function_call, mcp_server_tool_call, or search_tool_call content. If arguments cannot be pSTRING
HIGHpython/packages/core/agent_framework/_types.py1894Prepend 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.py3739Validate and normalize chat options dictionary. Validates numeric constraints and converts types as needed. ArSTRING
HIGHpython/packages/core/agent_framework/_types.py3798Normalize tools into a list. Converts callables to FunctionTool objects and preserves existing tool objects. ASTRING
HIGHpython/packages/core/agent_framework/_types.py3833Validate and normalize tools into a list. Converts callables to FunctionTool objects, expands MCP tools to their coSTRING
HIGHpython/packages/core/agent_framework/_types.py3884Validate and normalize tool_choice to a ToolMode dict. Args: tool_choice: The tool choice value to validateSTRING
HIGHpython/packages/core/agent_framework/_types.py3958Merge two chat options dictionaries. Values from override take precedence over base. Lists and dicts are combinSTRING
HIGHpython/packages/core/agent_framework/_serialization.py422Create an instance from a dictionary with optional dependency injection. This method reconstructs an object froSTRING
HIGHpython/packages/core/agent_framework/_serialization.py592Create an instance from a JSON string. This is a convenience method that parses the JSON string using ``json.loSTRING
HIGHpython/packages/core/agent_framework/_sessions.py1827Return a copy of the stored session, or ``None`` when absent. Args: session_id: Opaque caller-selecSTRING
HIGHpython/packages/core/agent_framework/_evaluation.py1643Run an agent against test queries and evaluate the results. The simplest path for evaluating an agent during develoSTRING
HIGHpython/packages/core/agent_framework/_telemetry.py180Prepend "agent-framework" to the User-Agent in the headers. When user agent telemetry is disabled through the ``AGESTRING
HIGHpython/packages/core/agent_framework/_tools.py155Parse 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.py596Run 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.py1447Invoke a function call requested by the agent, applying middleware that is defined. Args: function_call_conSTRING
HIGHpython/packages/core/agent_framework/_mcp.py2047Call a tool with the given arguments. Args: tool_name: The name of the tool to call. KeywoSTRING
HIGHpython/packages/core/agent_framework/_mcp.py2625Call a prompt with the given arguments. Args: prompt_name: The name of the prompt to retrieve. STRING
HIGHpython/packages/core/agent_framework/security.py213Combine multiple labels using the most restrictive policy. The combined label will be: - UNTRUSTED if any inputSTRING
HIGHpython/packages/core/agent_framework/security.py271Check if writing data with context_label to a destination with max_allowed confidentiality is permitted. This functSTRING
HIGHpython/packages/core/agent_framework/security.py365Retrieve content and its label by variable ID. Args: var_id: The variable ID. Returns: STRING
HIGHpython/packages/core/agent_framework/security.py2570Make an isolated LLM call with labeled data. This tool creates a quarantined LLM context where untrusted content caSTRING
HIGHpython/packages/core/agent_framework/security.py2833Inspect the content of a stored variable. This tool retrieves content from the ContentVariableStore and adds it to STRING
HIGHpython/packages/core/agent_framework/security.py2925Store untrusted content and return a variable reference. This function is used to store potentially malicious conteSTRING
HIGHpython/packages/core/agent_framework/security.py3107Auto-assign FIDES security labels to every tool loaded from an MCP server. Reads the MCP ``ToolAnnotations`` hints STRING
HIGHpython/packages/core/agent_framework/observability.py513Create OTLP exporters for a given endpoint and protocol. Args: endpoint: The OTLP endpoint URL (used for alSTRING
HIGHpython/packages/core/agent_framework/observability.py850Create an OpenTelemetry Resource from environment variables and parameters. This function reads standard OpenTelemeSTRING
HIGHpython/packages/core/agent_framework/observability.py990Settings for Agent Framework Observability. If the environment variables are not found, the settings can be loaSTRING
HIGHpython/packages/core/agent_framework/observability.py1380Returns a Tracer for use by the given instrumentation library. This function is a convenience wrapper for trace.getSTRING
HIGHpython/packages/core/agent_framework/observability.py1431Returns a Meter for Agent Framework. This is a convenience wrapper for metrics.get_meter() replicating the behaviorSTRING
HIGHpython/packages/core/agent_framework/observability.py1612Configure otel providers and enable instrumentation for the application with OpenTelemetry. This method creates theSTRING
HIGHpython/packages/core/agent_framework/observability.py2663Starts a span for the given function. Args: attributes: The span attributes. Returns: trace.trSTRING
HIGHpython/packages/core/agent_framework/_agents.py519Get the chat conversation id to forward to generic chat clients. Args: session: The active session STRING
HIGHpython/packages/core/agent_framework/_agents.py619Create a FunctionTool that wraps this agent. Keyword Args: name: The name for the tool. If None, usSTRING
144 more matches not shown…
Cross-File Repetition175 hits · 875 pts
SeverityFileLineSnippetContext
HIGHpython/README.md0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGHpython/samples/02-agents/mcp/agent_as_mcp_server.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGHpython/packages/core/README.md0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…/tests/AgentConformance.IntegrationTests/MenuPlugin.cs0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGHpython/samples/04-hosting/mcp/manual_app.py0start and stop native mcp and model-client resources.STRING
HIGHpython/samples/04-hosting/mcp/session_app.py0start and stop native mcp and model-client resources.STRING
HIGHpython/samples/04-hosting/mcp/agent_app.py0start and stop native mcp and model-client resources.STRING
HIGH…/04-hosting/af-hosting/local_responses_workflow/app.py0run the webhook sample with hypercorn for local development.STRING
HIGH…s/04-hosting/af-hosting/local_responses_harness/app.py0run the webhook sample with hypercorn for local development.STRING
HIGH…n/samples/04-hosting/af-hosting/local_responses/app.py0run the webhook sample with hypercorn for local development.STRING
HIGH…on/samples/04-hosting/af-hosting/local_telegram/app.py0run the webhook sample with hypercorn for local development.STRING
HIGH…gents/providers/github_copilot/github_copilot_basic.py0example of non-streaming response (get the complete result at once).STRING
HIGH…les/02-agents/providers/foundry/foundry_chat_client.py0example of non-streaming response (get the complete result at once).STRING
HIGH…les/02-agents/providers/foundry/foundry_local_agent.py0example of non-streaming response (get the complete result at once).STRING
HIGH…-agents/providers/foundry/foundry_chat_client_basic.py0example of non-streaming response (get the complete result at once).STRING
HIGH…providers/azure/openai_chat_completion_client_basic.py0example of non-streaming response (get the complete result at once).STRING
HIGH…mples/02-agents/providers/azure/openai_client_basic.py0example of non-streaming response (get the complete result at once).STRING
HIGH…mples/02-agents/providers/anthropic/anthropic_basic.py0example of non-streaming response (get the complete result at once).STRING
HIGH…mples/02-agents/providers/ollama/ollama_agent_basic.py0example of non-streaming response (get the complete result at once).STRING
HIGH…nts/providers/ollama/ollama_with_openai_chat_client.py0example of non-streaming response (get the complete result at once).STRING
HIGH…-agents/providers/copilotstudio/copilotstudio_basic.py0example of non-streaming response (get the complete result at once).STRING
HIGH…les/02-agents/providers/mistral/mistral_agent_basic.py0example of non-streaming response (get the complete result at once).STRING
HIGH…hon/samples/02-agents/providers/openai/client_basic.py0example of non-streaming response (get the complete result at once).STRING
HIGH…gents/providers/openai/chat_completion_client_basic.py0example of non-streaming response (get the complete result at once).STRING
HIGH…gents/providers/github_copilot/github_copilot_basic.py0example of streaming response (get results as they are generated).STRING
HIGH…les/02-agents/providers/foundry/foundry_chat_client.py0example of streaming response (get results as they are generated).STRING
HIGH…les/02-agents/providers/foundry/foundry_local_agent.py0example of streaming response (get results as they are generated).STRING
HIGH…-agents/providers/foundry/foundry_chat_client_basic.py0example of streaming response (get results as they are generated).STRING
HIGH…providers/azure/openai_chat_completion_client_basic.py0example of streaming response (get results as they are generated).STRING
HIGH…mples/02-agents/providers/azure/openai_client_basic.py0example of streaming response (get results as they are generated).STRING
HIGH…les/02-agents/providers/anthropic/anthropic_foundry.py0example of streaming response (get results as they are generated).STRING
HIGH…es/02-agents/providers/anthropic/anthropic_advanced.py0example of streaming response (get results as they are generated).STRING
HIGH…ples/02-agents/providers/anthropic/anthropic_skills.py0example of streaming response (get results as they are generated).STRING
HIGH…mples/02-agents/providers/anthropic/anthropic_basic.py0example of streaming response (get results as they are generated).STRING
HIGH…mples/02-agents/providers/ollama/ollama_agent_basic.py0example of streaming response (get results as they are generated).STRING
HIGH…nts/providers/ollama/ollama_with_openai_chat_client.py0example of streaming response (get results as they are generated).STRING
HIGH…-agents/providers/copilotstudio/copilotstudio_basic.py0example of streaming response (get results as they are generated).STRING
HIGH…les/02-agents/providers/mistral/mistral_agent_basic.py0example of streaming response (get results as they are generated).STRING
HIGH…hon/samples/02-agents/providers/openai/client_basic.py0example of streaming response (get results as they are generated).STRING
HIGH…gents/providers/openai/chat_completion_client_basic.py0example of streaming response (get results as they are generated).STRING
HIGH…/github_copilot/github_copilot_with_file_operations.py0permission handler that prompts the user for approval.STRING
HIGH…gents/providers/anthropic/anthropic_claude_with_mcp.py0permission handler that prompts the user for approval.STRING
HIGH…nthropic/anthropic_claude_with_multiple_permissions.py0permission handler that prompts the user for approval.STRING
HIGH…nts/providers/anthropic/anthropic_claude_with_shell.py0permission handler that prompts the user for approval.STRING
HIGH…ers/foundry/foundry_chat_client_with_function_tools.py0example showing tools defined when creating the agent.STRING
HIGH…s/providers/azure/openai_client_with_function_tools.py0example showing tools defined when creating the agent.STRING
HIGH…e/openai_chat_completion_client_with_function_tools.py0example showing tools defined when creating the agent.STRING
HIGH…es/02-agents/providers/openai/client_with_local_mcp.py0example showing tools defined when creating the agent.STRING
HIGH…-agents/providers/openai/client_with_function_tools.py0example showing tools defined when creating the agent.STRING
HIGH…viders/openai/chat_completion_client_with_local_mcp.py0example showing tools defined when creating the agent.STRING
HIGH…s/openai/chat_completion_client_with_function_tools.py0example showing tools defined when creating the agent.STRING
HIGH…ers/foundry/foundry_chat_client_with_function_tools.py0example showing both agent-level tools and run-method tools.STRING
HIGH…s/providers/azure/openai_client_with_function_tools.py0example showing both agent-level tools and run-method tools.STRING
HIGH…e/openai_chat_completion_client_with_function_tools.py0example showing both agent-level tools and run-method tools.STRING
HIGH…-agents/providers/openai/client_with_function_tools.py0example showing both agent-level tools and run-method tools.STRING
HIGH…s/openai/chat_completion_client_with_function_tools.py0example showing both agent-level tools and run-method tools.STRING
HIGH…/providers/foundry/foundry_chat_client_with_session.py0example showing automatic session creation (service-managed session).STRING
HIGH…rs/azure/openai_chat_completion_client_with_session.py0example showing automatic session creation (service-managed session).STRING
HIGH…roviders/openai/chat_completion_client_with_session.py0example showing automatic session creation (service-managed session).STRING
HIGH…/providers/foundry/foundry_chat_client_with_session.py0example showing session persistence across multiple conversations.STRING
115 more matches not shown…
Unused Imports897 hits · 810 pts
SeverityFileLineSnippetContext
LOW…c-kernel-migration/processes/fan_out_fan_in_process.py42CODE
LOW…c-kernel-migration/processes/fan_out_fan_in_process.py43CODE
LOWpython/samples/04-hosting/a2a/agent_definitions.py9CODE
LOWpython/samples/04-hosting/mcp/manual_app.py23CODE
LOWpython/samples/04-hosting/mcp/session_app.py33CODE
LOWpython/samples/04-hosting/mcp/agent_app.py30CODE
LOWpython/samples/04-hosting/mcp/fastmcp_app.py27CODE
LOWpython/samples/04-hosting/mcp/workflow_app.py21CODE
LOW…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…ting/af-hosting/local_responses_harness/call_server.py22CODE
LOW…s/04-hosting/af-hosting/local_responses_harness/app.py72CODE
LOW…on/samples/04-hosting/af-hosting/local_telegram/app.py43CODE
LOW…es/04-hosting/af-hosting/local_telegram/polling_app.py26CODE
LOW…4-hosting/af-hosting/local_responses/call_server_af.py29CODE
LOW…s/04-hosting/af-hosting/local_responses/call_server.py24CODE
LOW…n/samples/04-hosting/af-hosting/local_responses/app.py50CODE
LOW…samples/02-agents/tools/function_tool_with_approval.py12CODE
LOW…tools/local_code_interpreter/local_code_interpreter.py3CODE
LOW…de_interpreter/local_code_interpreter_manual_wiring.py3CODE
LOW…tools/monty_code_interpreter/monty_code_interpreter.py3CODE
LOW…de_interpreter/monty_code_interpreter_manual_wiring.py3CODE
LOWpython/samples/02-agents/security/github_mcp_example.py23CODE
LOW…thon/samples/02-agents/devui/agent_weather/__init__.py5CODE
LOW…2-agents/devui/agent_content_understanding/__init__.py4CODE
LOW…ent_understanding_file_search_azure_openai/__init__.py4CODE
LOW…mples/02-agents/devui/workflow_with_agents/__init__.py5CODE
LOW…thon/samples/02-agents/devui/agent_foundry/__init__.py5CODE
LOW…thon/samples/02-agents/devui/workflow_spam/__init__.py5CODE
LOW…les/02-agents/providers/foundry/foundry_local_agent.py4CODE
LOW…oviders/foundry/foundry_chat_client_with_hosted_mcp.py22CODE
LOW…hon/samples/02-agents/providers/custom/custom_agent.py4CODE
LOW…s/02-agents/providers/openai/client_with_hosted_mcp.py11CODE
LOW…samples/02-agents/compaction/agent_client_overrides.py3CODE
LOW…02-agents/context_providers/code_act/monty_code_act.py3CODE
LOW…mples/02-agents/context_providers/code_act/code_act.py3CODE
LOW…ervability/configure_otel_providers_with_parameters.py20CODE
LOW…/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…d_your_own_claw/claw_step04_production_ready/hosted.py44CODE
LOW…ld_your_own_claw/claw_step04_production_ready/evals.py35CODE
LOW…aw_step04_production_ready/subprocess_script_runner.py8CODE
LOW…ld_your_own_claw/claw_step04_production_ready/agent.py34CODE
LOW…r_own_claw/claw_step04_production_ready/console_app.py39CODE
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
837 more matches not shown…
Excessive Try-Catch Wrapping445 hits · 418 pts
SeverityFileLineSnippetContext
LOWpython/samples/04-hosting/a2a/a2a_server.py119 except Exception:CODE
MEDIUMpython/samples/04-hosting/a2a/a2a_server.py157 print("Error: FOUNDRY_PROJECT_ENDPOINT environment variable is not set.")CODE
MEDIUMpython/samples/04-hosting/a2a/a2a_server.py160 print("Error: FOUNDRY_MODEL environment variable is not set.")CODE
LOWpython/samples/04-hosting/a2a/agent_framework_to_a2a.py95 except Exception:CODE
LOW…-hosting/foundry-hosted-agents/responses/tools/main.py47 except Exception as e:CODE
LOW…-hosting/foundry-hosted-agents/responses/files/main.py20 except Exception as e:CODE
LOW…-hosting/foundry-hosted-agents/responses/files/main.py29 except Exception as e:CODE
LOW…-hosting/foundry-hosted-agents/responses/files/main.py39 except Exception as e:CODE
LOW…mples/02-agents/devui/workflow_with_agents/workflow.py50 except Exception:CODE
LOW…mples/02-agents/devui/workflow_with_agents/workflow.py62 except Exception:CODE
LOW…/02-agents/providers/anthropic/anthropic_with_shell.py48 except Exception as e:CODE
LOW…/02-agents/providers/openai/client_image_generation.py42 except Exception:CODE
LOW…/02-agents/providers/openai/client_image_generation.py47 except Exception:CODE
LOW…/providers/openai/client_streaming_image_generation.py37 except Exception as e:CODE
LOW…02-agents/context_providers/azure_ai_foundry_memory.py69 except Exception as e:CODE
LOW…02-agents/context_providers/azure_ai_foundry_memory.py133 except Exception as e:CODE
MEDIUM…02-agents/context_providers/azure_ai_foundry_memory.py134 print(f"An error occurred: {e}")CODE
LOW…s/azure_content_understanding/04_invoice_processing.py162 except Exception:CODE
LOW…thon/samples/02-agents/harness/console/agent_runner.py212 except Exception as ex:CODE
LOWpython/samples/02-agents/harness/console/app.py484 except Exception:CODE
LOW…les/02-agents/harness/console/components/text_input.py65 except Exception:CODE
LOW…les/02-agents/harness/console/components/text_input.py77 except Exception:CODE
LOW…/02-agents/harness/console/commands/session_handler.py63 except Exception as ex:CODE
LOW…/02-agents/harness/console/commands/session_handler.py91 except Exception as ex:CODE
LOW…ples/02-agents/conversations/redis_history_provider.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
LOW…es/05-end-to-end/purview_agent/sample_purview_agent.py292 except Exception as ex: # pragma: no cover - demo resilienceCODE
LOW…es/05-end-to-end/purview_agent/sample_purview_agent.py297 except Exception as ex: # pragma: no cover - demo resilienceCODE
LOW…es/05-end-to-end/purview_agent/sample_purview_agent.py302 except Exception as ex: # pragma: no cover - demo resilienceCODE
LOW…es/05-end-to-end/purview_agent/sample_purview_agent.py307 except Exception as ex: # pragma: no cover - demo resilienceCODE
LOW…es/05-end-to-end/workflow_evaluation/run_evaluation.py96 except Exception as e:CODE
LOW…s/05-end-to-end/workflow_evaluation/create_workflow.py128 except Exception:CODE
LOW…s/05-end-to-end/workflow_evaluation/create_workflow.py175 except Exception as e:CODE
MEDIUM…s/05-end-to-end/workflow_evaluation/create_workflow.py176 print(f"Error during workflow execution: {e}")CODE
LOW…05-end-to-end/ag_ui_workflow_handoff/backend/server.py353 except Exception as e:CODE
LOW…d-to-end/evaluation/self_reflection/self_reflection.py332 except Exception as e:CODE
LOW…d-to-end/evaluation/self_reflection/self_reflection.py463 except Exception as e:CODE
LOW…to-end/evaluation/red_teaming/red_team_agent_sample.py94 except Exception as e:STRING
MEDIUM…to-end/evaluation/red_teaming/red_team_agent_sample.py95 print(f"Error calling Azure OpenAI: {e!s}")STRING
LOWpython/samples/05-end-to-end/chatkit-integration/app.py240 except Exception as e:CODE
LOWpython/samples/05-end-to-end/chatkit-integration/app.py330 except Exception as e:CODE
LOWpython/samples/05-end-to-end/chatkit-integration/app.py450 except Exception as e:CODE
LOWpython/samples/05-end-to-end/chatkit-integration/app.py578 except Exception as e:CODE
LOWpython/samples/05-end-to-end/chatkit-integration/app.py624 except Exception as e:CODE
LOWpython/samples/05-end-to-end/chatkit-integration/app.py655 except Exception as e:CODE
LOW…/sample_validation/create_dynamic_workflow_executor.py218 except Exception as ex:CODE
LOW…/sample_validation/create_dynamic_workflow_executor.py229 except Exception as restart_ex:CODE
LOW…/sample_validation/create_dynamic_workflow_executor.py296 except Exception as ex: # pragma: no cover - defensive; never fail validation over cachingCODE
LOWpython/scripts/sample_validation/playbook.py143 except Exception as ex:CODE
LOWpython/scripts/sample_validation/playbook.py317 except Exception: # pragma: no cover - defensiveCODE
LOWpython/scripts/sample_validation/discovery.py46 except Exception:CODE
LOWpython/scripts/sample_validation/discovery.py121 except Exception as e:CODE
385 more matches not shown…
Modern AI Meta-Vocabulary129 hits · 394 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.md1577For 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.py53# Semantic Kernel orchestration pathCOMMENT
MEDIUM…es/semantic-kernel-migration/orchestrations/handoff.py186# Agent Framework orchestration pathCOMMENT
MEDIUM…semantic-kernel-migration/orchestrations/sequential.py39# Semantic Kernel orchestration pathCOMMENT
MEDIUM…semantic-kernel-migration/orchestrations/sequential.py77# Agent Framework orchestration pathCOMMENT
MEDIUM…semantic-kernel-migration/orchestrations/group_chat.py56# Semantic Kernel orchestration pathCOMMENT
MEDIUM…semantic-kernel-migration/orchestrations/group_chat.py226# Agent Framework orchestration pathCOMMENT
MEDIUM…ic-kernel-migration/orchestrations/concurrent_basic.py38# Semantic Kernel orchestration pathCOMMENT
MEDIUM…ic-kernel-migration/orchestrations/concurrent_basic.py90# Agent Framework orchestration pathCOMMENT
MEDIUM…s/semantic-kernel-migration/orchestrations/magentic.py49# Semantic Kernel orchestration pathCOMMENT
MEDIUM…s/semantic-kernel-migration/orchestrations/magentic.py133# Agent Framework orchestration pathCOMMENT
MEDIUM…s/semantic-kernel-migration/orchestrations/magentic.py159 # Create a manager agent for orchestrationCOMMENT
MEDIUM…dry-hosted-agents/responses/azure_search_rag/README.md11### RAG via Azure AI SearchCOMMENT
MEDIUM…dry-hosted-agents/responses/azure_search_rag/README.md159## How RAG works in this sampleCOMMENT
MEDIUM…s/function_tool_from_dict_with_dependency_injection.py54 # Create the FunctionTool using dependency injectionCOMMENT
MEDIUM…xt_providers/azure_ai_search/search_context_agentic.py24- See: https://techcommunity.microsoft.com/blog/azure-ai-foundry-blog/foundry-iq-boost-response-relevance-by-36-with-ageSTRING
MEDIUM…xt_providers/azure_ai_search/search_context_agentic.py47# Sample queries to demonstrate agentic RAGCOMMENT
MEDIUM…xt_providers/azure_ai_search/search_context_agentic.py47# Sample queries to demonstrate agentic RAGCOMMENT
MEDIUM…xt_providers/azure_ai_search/search_context_agentic.py71 # Create Azure AI Search context provider with agentic mode (recommended for accuracy)COMMENT
MEDIUM…t_providers/azure_ai_search/search_context_semantic.py39# Sample queries to demonstrate RAGCOMMENT
MEDIUM…/02-agents/context_providers/azure_ai_search/README.md11| [`search_context_agentic.py`](search_context_agentic.py) | **Agentic mode** (recommended for most scenarios): Uses KnoCODE
MEDIUM…/02-agents/context_providers/azure_ai_search/README.md177# Create search provider with agentic modeCOMMENT
MEDIUM…/02-agents/context_providers/azure_ai_search/README.md182 mode="agentic", # Enable agentic retrievalCODE
MEDIUM…/02-agents/context_providers/azure_ai_search/README.md284- [Agentic Retrieval in Azure AI Search](https://learn.microsoft.com/azure/search/agentic-retrieval-overview)CODE
MEDIUM…roviders/azure_content_understanding/01_document_qa.py49 analyzer_id="prebuilt-documentSearch", # RAG-optimized document analyzerCODE
MEDIUM…s/azure_content_understanding/04_invoice_processing.py83 # Default analyzer is prebuilt-documentSearch (RAG-optimized).COMMENT
MEDIUMpython/samples/02-agents/harness/console/README.md27├── agent_runner.py # HarnessAgentRunner (streaming orchestration)CODE
MEDIUMpython/samples/03-workflows/README.md117### orchestrationCOMMENT
MEDIUM…ples/03-workflows/agents/magentic_workflow_as_agent.py61 # Create a manager agent for orchestrationCOMMENT
MEDIUM…mples/03-workflows/agents/handoff_workflow_as_agent.py172 # it receives all user input first and orchestrates handoffs to specialistsCOMMENT
MEDIUM…/samples/03-workflows/orchestrations/handoff_simple.py218 # it receives all user input first and orchestrates handoffs to specialistsCOMMENT
MEDIUMpython/samples/03-workflows/orchestrations/magentic.py82 # Create a manager agent for orchestrationCOMMENT
MEDIUM…les/03-workflows/orchestrations/magentic_checkpoint.py61 # Two vanilla ChatAgents act as participants in the orchestration. They do not needCOMMENT
MEDIUM…les/03-workflows/orchestrations/magentic_checkpoint.py85 # Create a manager agent for orchestrationCOMMENT
MEDIUM…les/03-workflows/orchestrations/magentic_checkpoint.py180 # Final sanity check: display the assistant's answer as proof the orchestration reachedCOMMENT
MEDIUM…n/samples/03-workflows/functional/parallel_pipeline.py39# @workflow defines the orchestration logic. Build the definition to get aCOMMENT
MEDIUM…es/05-end-to-end/purview_agent/sample_purview_agent.py48# Sequential prompts to demonstrate good -> block -> good orchestration.COMMENT
MEDIUM…05-end-to-end/ag_ui_workflow_handoff/backend/server.py192 # Explicit handoff topology (instead of default mesh) so routing is enforced in orchestration,COMMENT
MEDIUM…samples/05-end-to-end/evaluation/red_teaming/README.md95# After: Specific safety guardrailsCOMMENT
MEDIUMpython/packages/core/AGENTS.md21├── _workflows/ # Workflow orchestration (sequential, concurrent, handoff, etc.)CODE
MEDIUM…on/packages/core/tests/core/test_serializable_mixin.py192 # Deserialize with dependency injectionCOMMENT
MEDIUM…ore/tests/workflow/test_workflow_agent_intermediate.py317 # Construct typed orchestration-internal events directly to assert they getCOMMENT
MEDIUMpython/packages/core/agent_framework/_evaluation.py1626# region Public orchestration functionsCOMMENT
MEDIUMpython/packages/core/agent_framework/_tools.py1637 # must abort the run (enforcement layers, guardrails) raises it instead ofCOMMENT
MEDIUM…hon/packages/core/agent_framework/_workflows/_const.py13# Used by all orchestration patterns (Sequential, Concurrent, GroupChat, Handoff, Magentic)COMMENT
MEDIUM…on/packages/core/agent_framework/_workflows/_events.py34 FRAMEWORK = "FRAMEWORK" # Framework-owned orchestration, regardless of module locationCODE
MEDIUM…on/packages/core/agent_framework/_workflows/_events.py103# Includes both framework lifecycle types and well-known orchestration types.COMMENT
MEDIUM…on/packages/core/agent_framework/_workflows/_events.py135# orchestration-internal events (``group_chat``, ``handoff_sent``,COMMENT
MEDIUM…hon/packages/lab/lightning/samples/train_tau2_agent.py75# - Agent filtering (training only specific agents in multi-agent setup)COMMENT
MEDIUM…hon/packages/lab/lightning/samples/train_tau2_agent.py120 # Run the multi-agent conversationCOMMENT
MEDIUM…n/packages/lab/tau2/agent_framework_lab_tau2/runner.py299 # Each executor wraps an agent or function for workflow orchestrationCOMMENT
MEDIUM…n/packages/lab/tau2/agent_framework_lab_tau2/runner.py430 # solo_mode=False: indicates multi-agent conversation (assistant + user simulator)COMMENT
MEDIUM…hon/packages/ag-ui/agent_framework_ag_ui/_agent_run.py120# Keys that are internal to AG-UI orchestration and should not be passed to chat clientsCOMMENT
MEDIUM…hon/packages/ag-ui/agent_framework_ag_ui/_agent_run.py2571 # Inject metadata for AG-UI orchestration (Feature #2: Azure-safe truncation)COMMENT
MEDIUM…hon/packages/ag-ui/agent_framework_ag_ui/_agent_run.py2595 # These are used internally for orchestration and should not be sent to the LLM providerCOMMENT
MEDIUM…/packages/ag-ui/agent_framework_ag_ui/_workflow_run.py1309 # Fall back to custom events for diagnostics, orchestration events, and custom workflow events.COMMENT
MEDIUM…ckages/bedrock/agent_framework_bedrock/_chat_client.py81 See: https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.htmlSTRING
69 more matches not shown…
Structural Annotation Overuse201 hits · 360 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…/foundry-hosted-agents/invocations/break_glass/main.py20# 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
LOWpython/packages/core/README.md198 # Step 1: Writer creates initial sloganSTRING
LOWpython/packages/core/README.md202 # Step 2: Reviewer provides feedbackSTRING
LOWpython/packages/core/README.md207 # Step 3: Writer refines based on feedbackSTRING
LOWpython/packages/core/tests/workflow/test_workflow.py1015 # Step 1: drive stream A's body until it's suspended at its first yield.COMMENT
LOWpython/packages/core/tests/workflow/test_workflow.py1020 # Step 2: drop stream A; GC invalidates the weakref and schedulesCOMMENT
LOWpython/packages/core/tests/workflow/test_workflow.py1026 # Step 3: synchronously start stream B *before* yielding to the loop,COMMENT
LOWpython/packages/core/tests/workflow/test_workflow.py1032 # Step 4: yield enough times for stream A's scheduled aclose to driveCOMMENT
LOWpython/packages/core/tests/workflow/test_workflow.py1104 # Step 1: drive stream A's body to its first yield so it set storage_a.COMMENT
LOWpython/packages/core/tests/workflow/test_workflow.py1110 # Step 2: drop stream A; the weakref dies and async-gen close is scheduledCOMMENT
LOWpython/packages/core/tests/workflow/test_workflow.py1116 # Step 3: synchronously start stream B with its own storage and drive it toCOMMENT
LOWpython/packages/core/tests/workflow/test_workflow.py1123 # Step 4: yield enough for stream A's scheduled aclose to drive its bodyCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py263 # Step 3: Verify the pending request info event was properly serializedCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py270 # Step 4: Create a fresh workflow and restore from checkpointCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py274 # Step 5: Resume from checkpoint and verify the request can be continuedCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py306 # Step 7: Verify the executor state was properly restored and response was processedCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py343 # Step 1: Run workflow until it emits a request_info eventCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py352 # Step 2: Find the checkpoint with the pending requestCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py362 # Step 3: Create a fresh workflow and restore from checkpoint WITH responses in one callCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py375 # Step 4: Verify the request_info event was NOT re-emitted to the callerCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py384 # Step 5: Verify the response was processed by checking executor stateCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py454 # Step 4: Verify the approval request_info was NOT re-emittedCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py462 # Step 5: Verify the calculation request_info WAS re-emitted (no response provided)COMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py470 # Step 6: Verify workflow is in IDLE_WITH_PENDING_REQUESTS state (calc still pending)COMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py238 # Step 1: Run workflow to completion to ensure checkpoints are createdCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py250 # Step 2: List checkpoints to find the one with our pending requestCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py293 # Step 6: Provide response to the restored request and complete the workflowCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py416 # Step 1: Run workflow until it emits multiple request_info eventsCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py430 # Step 2: Find the checkpoint with pending requestsCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py442 # Step 3: Restore from checkpoint with ONLY the approval response (not the calculation)COMMENT
LOW…thon/packages/core/tests/workflow/test_sub_workflow.py693 # Step 1: run until the first request.COMMENT
LOW…thon/packages/core/tests/workflow/test_sub_workflow.py701 # Step 2: answer the first request so the sub-workflow accumulates internal stateCOMMENT
141 more matches not shown…
Deep Nesting422 hits · 342 pts
SeverityFileLineSnippetContext
LOW…les/autogen-migration/single_agent/04_agent_as_tool.py56CODE
LOW…es/autogen-migration/orchestrations/04_magentic_one.py73CODE
LOW…n/samples/autogen-migration/orchestrations/03_swarm.py105CODE
LOW…-migration/orchestrations/01_round_robin_group_chat.py102CODE
LOW…s/resilient_long_running_workflow/verify_resiliency.py81CODE
LOW…s/resilient_long_running_workflow/verify_resiliency.py122CODE
LOW…ponses/steerable_long_running_agent/verify_steering.py100CODE
LOW…on/samples/04-hosting/af-hosting/local_telegram/app.py149CODE
LOW…es/04-hosting/af-hosting/local_telegram/polling_app.py121CODE
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.py48CODE
LOW…02-agents/context_providers/code_act/monty_code_act.py61CODE
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.py227CODE
LOW…amples/03-workflows/composition/sub_workflow_kwargs.py79CODE
LOW…orkflows/composition/sub_workflow_parallel_requests.py96CODE
LOW…orkflows/composition/sub_workflow_parallel_requests.py289CODE
LOW…orkflows/composition/sub_workflow_parallel_requests.py101CODE
LOW…3-workflows/orchestrations/group_chat_agent_manager.py44CODE
LOW…lows/orchestrations/group_chat_philosophical_debate.py59CODE
LOW…s/orchestrations/handoff_with_code_interpreter_file.py46CODE
LOW…ations/handoff_with_tool_approval_checkpoint_resume.py158CODE
LOW…workflows/orchestrations/magentic_human_plan_review.py49CODE
LOW…workflows/orchestrations/group_chat_simple_selector.py41CODE
LOW…/samples/03-workflows/orchestrations/handoff_simple.py116CODE
LOWpython/samples/03-workflows/orchestrations/magentic.py55CODE
LOW…ples/03-workflows/orchestrations/handoff_autonomous.py86CODE
LOW…3-workflows/state-management/workflow_kwargs_global.py94CODE
LOW…orkflows/state-management/workflow_kwargs_per_agent.py92CODE
LOW…ples/03-workflows/declarative/customer_support/main.py168CODE
LOW…s/05-end-to-end/workflow_evaluation/create_workflow.py133CODE
LOW…05-end-to-end/ag_ui_workflow_handoff/backend/server.py256CODE
LOW…d-to-end/evaluation/self_reflection/self_reflection.py216CODE
LOWpython/samples/05-end-to-end/chatkit-integration/app.py262CODE
LOWpython/samples/05-end-to-end/chatkit-integration/app.py341CODE
LOWpython/samples/05-end-to-end/chatkit-integration/app.py453CODE
LOWpython/samples/05-end-to-end/chatkit-integration/app.py390CODE
362 more matches not shown…
Fake / Example Data300 hits · 268 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
240 more matches not shown…
Hallucination Indicators25 hits · 250 pts
SeverityFileLineSnippetContext
CRITICAL…nts/responses/foundry_memory/provision_memory_store.py33from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…d-agents/responses/azure_search_rag/provision_index.py25from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…/providers/foundry/foundry_chat_client_with_toolbox.py47 from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…s/build_your_own_claw/claw_step02_working_with_data.py192 from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…ive/invoke_foundry_toolbox_mcp/toolbox_provisioning.py26 from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…ages/foundry/tests/foundry/test_foundry_chat_client.py22from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…n/packages/foundry/tests/foundry/test_foundry_agent.py39from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…ckages/foundry/agent_framework_foundry/_chat_client.py330 from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…hon/packages/foundry/agent_framework_foundry/_agent.py866 from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICALpython/packages/core/tests/core/test_mcp.py5577 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.py1277 from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…h/agent_framework_azure_ai_search/_context_provider.py33from 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…AI.OpenAI/Extensions/OpenAIResponseClientExtensions.cs92 _ = Microsoft.Agents.AI.OpenAI.OpenAIUserAgentPolicies.Registration.TryRegister(chatClient);CODE
CRITICAL…AI.OpenAI/Extensions/OpenAIResponseClientExtensions.cs123 _ = Microsoft.Agents.AI.OpenAI.OpenAIUserAgentPolicies.Registration.TryRegister(chatClient);CODE
CRITICAL…AI.OpenAI/Extensions/OpenAIResponseClientExtensions.cs129 Microsoft.Agents.AI.OpenAI.FeatureUsageMarker.MarkUsed();CODE
CRITICAL…nts.AI.OpenAI/Extensions/OpenAIChatClientExtensions.cs80 _ = Microsoft.Agents.AI.OpenAI.OpenAIUserAgentPolicies.Registration.TryRegister(chatClient);CODE
CRITICAL…oft.Agents.AI.CosmosNoSql/CosmosChatHistoryProvider.cs60 options.TypeInfoResolver = new System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver();CODE
CRITICAL…g.AgentFramework.DevUI/DevUIAggregatorHostedService.cs721 System.Net.Http.Headers.MediaTypeHeaderValue.Parse(context.Request.ContentType);CODE
Modern Structural Boilerplate251 hits · 248 pts
SeverityFileLineSnippetContext
LOWpython/agent_framework_meta/__init__.py31__all__ = ["__version__"]CODE
LOWpython/samples/04-hosting/a2a/a2a_server.py30logger = logging.getLogger(__name__)CODE
LOWpython/samples/04-hosting/a2a/agent_framework_to_a2a.py30logger = logging.getLogger(__name__)CODE
LOW…04-hosting/foundry-hosted-agents/responses/mcp/main.py14logger = 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…2-agents/devui/agent_content_understanding/__init__.py6__all__ = ["agent"]CODE
LOW…ent_understanding_file_search_azure_openai/__init__.py6__all__ = ["agent"]CODE
LOW…mples/02-agents/devui/workflow_with_agents/__init__.py7__all__ = ["workflow"]CODE
LOW…thon/samples/02-agents/devui/agent_foundry/__init__.py7__all__ = ["agent"]CODE
LOW…thon/samples/02-agents/devui/workflow_spam/__init__.py7__all__ = ["workflow"]CODE
LOW…ples/02-agents/providers/anthropic/anthropic_skills.py14logger = logging.getLogger(__name__)CODE
LOW…hon/samples/02-agents/observability/foundry_tracing.py44logger = logging.getLogger(__name__)CODE
LOW…d_your_own_claw/claw_step04_production_ready/hosted.py62logger = logging.getLogger(__name__)CODE
LOW…ld_your_own_claw/claw_step04_production_ready/agent.py87logger = logging.getLogger(__name__)CODE
LOW…ples/02-agents/harness/console/textual_state_driver.py134 def set_show_spinner(self, show: bool) -> None:CODE
LOW…ples/02-agents/harness/console/textual_state_driver.py220 def update_streaming_text(self, accumulated_text: str) -> None:CODE
LOW…ples/02-agents/harness/console/textual_state_driver.py262 def set_usage_text(self, usage_text: str | None) -> None:CODE
LOW…ples/02-agents/harness/console/textual_state_driver.py267 def set_mode(self, mode: str | None, mode_color: str | None = None) -> None:CODE
LOW…ples/02-agents/harness/console/textual_state_driver.py347 def set_queued_messages(self, pending: list[str]) -> None:CODE
LOW…thon/samples/02-agents/harness/console/state_driver.py61 def update_streaming_text(self, accumulated_text: str) -> None:CODE
LOW…thon/samples/02-agents/harness/console/state_driver.py133 def set_mode(self, mode: str | None, mode_color: str | None = None) -> None:CODE
LOW…thon/samples/02-agents/harness/console/state_driver.py145 def set_show_spinner(self, show: bool) -> None:CODE
LOW…thon/samples/02-agents/harness/console/state_driver.py155 def set_usage_text(self, usage_text: str | None) -> None:CODE
LOW…thon/samples/02-agents/harness/console/state_driver.py194 def set_queued_messages(self, pending: list[str]) -> None:CODE
LOW…thon/samples/02-agents/harness/console/state_driver.py266 def update_streaming_text(self, text: str) -> None:CODE
LOW…thon/samples/02-agents/harness/console/state_driver.py285 def set_show_spinner(self, show: bool) -> None:CODE
LOW…thon/samples/02-agents/harness/console/state_driver.py291 def set_mode(self, mode: str | None, mode_color: str | None = None) -> None:CODE
LOW…thon/samples/02-agents/harness/console/state_driver.py302 def set_usage_text(self, usage_text: str | None) -> None:CODE
LOW…thon/samples/02-agents/harness/console/state_driver.py329 def update_last_entry(self, entry_type, new_text: str) -> None:CODE
LOW…thon/samples/02-agents/harness/console/state_driver.py340 def set_queued_messages(self, pending: list[str]) -> None:CODE
LOWpython/samples/02-agents/harness/console/__init__.py19__all__ = [CODE
LOW…s/02-agents/harness/console/components/scroll_panel.py56 def set_streaming_entry(self, entry: OutputEntry) -> None:CODE
LOW…mples/02-agents/harness/console/components/__init__.py16__all__ = [CODE
LOW…02-agents/harness/console/components/list_selection.py209 def _update_options(self) -> None:CODE
LOW…samples/02-agents/harness/console/commands/__init__.py22__all__ = [CODE
LOW…amples/02-agents/harness/console/observers/__init__.py114__all__ = [CODE
LOW…orkflows/composition/sub_workflow_parallel_requests.py157 async def set_request_count(self, count: int, ctx: WorkflowContext) -> None:CODE
LOWpython/samples/03-workflows/orchestrations/magentic.py22logger = logging.getLogger(__name__)CODE
LOW…05-end-to-end/ag_ui_workflow_handoff/backend/server.py41logger = logging.getLogger(__name__)CODE
LOWpython/samples/05-end-to-end/chatkit-integration/app.py105logger = logging.getLogger(__name__)CODE
LOW…les/05-end-to-end/ag_ui_single_agent/backend/server.py49logger = logging.getLogger(__name__)CODE
LOWpython/scripts/check_md_code_blocks.py17logger = logging.getLogger(__name__)CODE
LOW…/sample_validation/create_dynamic_workflow_executor.py40logger = logging.getLogger(__name__)CODE
LOWpython/scripts/sample_validation/playbook.py36logger = logging.getLogger(__name__)CODE
LOWpython/scripts/sample_validation/__init__.py20__all__ = [CODE
LOWpython/scripts/sample_validation/replay_executor.py19logger = logging.getLogger(__name__)CODE
LOWpython/scripts/sample_validation/workflow.py50__all__ = ["ValidationConfig", "create_validation_workflow"]CODE
LOW…/scripts/dependencies/_dependency_bounds_upper_impl.py39logger = logging.getLogger(__name__)CODE
LOWpython/scripts/dependencies/upgrade_dev_dependencies.py23logger = logging.getLogger(__name__)CODE
LOW…ry_hosting/agent_framework_foundry_hosting/_toolbox.py40logger = logging.getLogger(__name__)CODE
LOW…_hosting/agent_framework_foundry_hosting/_responses.py82logger = logging.getLogger(__name__)CODE
LOW…ry_hosting/agent_framework_foundry_hosting/__init__.py25__all__ = [CODE
LOW…hub_copilot/agent_framework_github_copilot/__init__.py12__all__ = [CODE
LOWpython/packages/tools/agent_framework_tools/__init__.py14__all__ = ["__version__"]CODE
LOW…on/packages/tools/agent_framework_tools/shell/_tool.py24logger = logging.getLogger(__name__)CODE
LOW…packages/tools/agent_framework_tools/shell/__init__.py33__all__ = [CODE
191 more matches not shown…
AI Slop Vocabulary89 hits · 244 pts
SeverityFileLineSnippetContext
MEDIUM…s/04-hosting/af-hosting/local_responses_harness/app.py95# Token budget for the harness compaction feature.COMMENT
MEDIUM…es/02-agents/middleware/agent_loop_middleware_judge.py69 # boundaries (robust to function calling, where one iteration may issue several model calls).COMMENT
MEDIUM…es/02-agents/middleware/agent_loop_middleware_todos.py64 # those boundaries — robust to the function calling this loop relies on (the todo tools issueCOMMENT
MEDIUM…-agents/middleware/agent_loop_middleware_refinement.py77 # those boundaries (robust to function calling, where one iteration may issue several modelCOMMENT
MEDIUM…thon/samples/02-agents/devui/workflow_spam/workflow.py394# Build the comprehensive 4-step workflow with branching logic and HIL supportCOMMENT
MEDIUM…es/02-agents/context_providers/redis/redis_sessions.py160 # Test comprehensive memory retrievalCOMMENT
MEDIUMpython/samples/02-agents/harness/harness_research.py11# uv run samples/02-agents/harness/harness_research.pyCOMMENT
MEDIUMpython/samples/02-agents/harness/harness_research.py101 # Create a harness agent with research-specific instructions.STRING
MEDIUMpython/samples/02-agents/harness/harness_research.py111 # Enable harness looping: while the agent is in "execute" mode and still has open todos,STRING
MEDIUMpython/samples/02-agents/harness/harness_research.py120 # Run the harness console with the research agent.STRING
MEDIUM…n/samples/02-agents/harness/harness_data_processing.py11# uv run samples/02-agents/harness/harness_data_processing.pyCOMMENT
MEDIUM…n/samples/02-agents/harness/harness_data_processing.py108 # Create a harness agent with data-analyst instructions. Unused features areSTRING
MEDIUM…n/samples/02-agents/harness/harness_data_processing.py125 # Run the harness console. This sample has no plan/execute mode, so it usesSTRING
MEDIUM…ness/build_your_own_claw/claw_step01_meet_your_claw.py11# uv run python/samples/02-agents/harness/build_your_own_claw/claw_step01_meet_your_claw.pyCOMMENT
MEDIUM…ness/build_your_own_claw/claw_step01_meet_your_claw.py49# Reuse the shared harness console that lives in the parent ``harness/`` directory.COMMENT
MEDIUM…ness/build_your_own_claw/claw_step01_meet_your_claw.py118 # credential). The harness works with ANY chat client — see the providers samples for OpenAI,COMMENT
MEDIUM…ness/build_your_own_claw/claw_step01_meet_your_claw.py124 # Turn the chat client into a harness agent with finance instructions and our customCOMMENT
MEDIUM…ness/build_your_own_claw/claw_step01_meet_your_claw.py134 # Run the interactive console session using the shared harness console helper.COMMENT
MEDIUM…s/build_your_own_claw/claw_step02_working_with_data.py12# uv run python/samples/02-agents/harness/build_your_own_claw/claw_step02_working_with_data.pyCOMMENT
MEDIUM…s/build_your_own_claw/claw_step02_working_with_data.py70# Reuse the shared harness console that lives in the parent ``harness/`` directory.COMMENT
MEDIUM…s/build_your_own_claw/claw_step02_working_with_data.py248 # Turn the chat client into a harness agent. On top of Post 1's defaults we point fileCOMMENT
MEDIUM…uild_your_own_claw/claw_step03_scaling_capabilities.py15# uv run python/samples/02-agents/harness/build_your_own_claw/claw_step03_scaling_capabilities.pyCOMMENT
MEDIUM…uild_your_own_claw/claw_step03_scaling_capabilities.py82# Reuse the shared harness console that lives in the parent ``harness/`` directory, and the localCOMMENT
MEDIUM…uild_your_own_claw/claw_step03_scaling_capabilities.py240 # This sub-agent doesn't need any harness machinery - it's a plain chat agent with a singleCOMMENT
MEDIUM…uild_your_own_claw/claw_step03_scaling_capabilities.py241 # tool: the same hosted web search the harness would have added. The parent still exposes theCOMMENT
MEDIUM…uild_your_own_claw/claw_step03_scaling_capabilities.py311 # Turn the chat client into a harness agent. On top of Post 2's file access and approvals weCOMMENT
MEDIUM…d_your_own_claw/claw_step04_production_ready/hosted.py58# so the harness default of ``{cwd}/agent-file-memory`` cannot be created. The home directory isCOMMENT
MEDIUM…ld_your_own_claw/claw_step04_production_ready/evals.py114 # store=False keeps chat history client-side (managed by the harness InMemoryHistoryProvider)COMMENT
MEDIUM…thon/samples/02-agents/harness/console/agent_runner.py408 """Format token counts matching C# harness style: 📊 Tokens — input: X | output: Y | total: Z."""STRING
MEDIUM…s/05-end-to-end/workflow_evaluation/create_workflow.py105 # Generate comprehensive travel plan summaryCOMMENT
MEDIUM…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.py3286 # 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.py509 # A more comprehensive integration test would require the manager to select an agent.COMMENT
MEDIUMpython/packages/core/agent_framework/_serialization.py155 """Mixin class providing comprehensive serialization and deserialization capabilities.STRING
MEDIUMpython/packages/core/agent_framework/observability.py3608 # This is a simplified approach - in production you'd want more robust parsingCOMMENT
MEDIUMpython/packages/core/agent_framework/observability.py3678 # This is a simplified approach - in production you'd want more robust parsingCOMMENT
MEDIUMpython/packages/core/agent_framework/_harness/_agent.py554 # Warn when opting into harness features that are still experimental. create_harness_agentCOMMENT
MEDIUMpython/packages/core/agent_framework/_harness/_agent.py650 # 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.py394 """Evaluate agent performance using tau2's comprehensive evaluation system.STRING
MEDIUM…n/packages/lab/tau2/agent_framework_lab_tau2/runner.py428 # Run comprehensive multi-dimensional evaluationCOMMENT
MEDIUM…work_ag_ui_examples/agents/research_assistant_agent.py14 """Research a topic and generate a comprehensive report.STRING
MEDIUMpython/packages/ag-ui/tests/ag_ui/test_endpoint.py7321 # Pause: the harness surfaces the provider-injected tool for approval, nothing executes yet.COMMENT
MEDIUM…n/packages/ag-ui/agent_framework_ag_ui/_a2ui/_agent.py623 # the first that parses — robust whether or not a coalesced fragment arrives,COMMENT
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.py430 # 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.py338 # we can just pass in None for the host, the default is set by the Ollama package.COMMENT
MEDIUM…ackages/openai/tests/openai/test_openai_chat_client.py369 """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
29 more matches not shown…
Verbosity Indicators112 hits · 210 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.py1015 # Step 1: drive stream A's body until it's suspended at its first yield.COMMENT
LOWpython/packages/core/tests/workflow/test_workflow.py1020 # Step 2: drop stream A; GC invalidates the weakref and schedulesCOMMENT
LOWpython/packages/core/tests/workflow/test_workflow.py1026 # Step 3: synchronously start stream B *before* yielding to the loop,COMMENT
LOWpython/packages/core/tests/workflow/test_workflow.py1032 # Step 4: yield enough times for stream A's scheduled aclose to driveCOMMENT
LOWpython/packages/core/tests/workflow/test_workflow.py1104 # Step 1: drive stream A's body to its first yield so it set storage_a.COMMENT
LOWpython/packages/core/tests/workflow/test_workflow.py1110 # Step 2: drop stream A; the weakref dies and async-gen close is scheduledCOMMENT
LOWpython/packages/core/tests/workflow/test_workflow.py1116 # Step 3: synchronously start stream B with its own storage and drive it toCOMMENT
LOWpython/packages/core/tests/workflow/test_workflow.py1123 # Step 4: yield enough for stream A's scheduled aclose to drive its bodyCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py263 # Step 3: Verify the pending request info event was properly serializedCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py270 # Step 4: Create a fresh workflow and restore from checkpointCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py274 # Step 5: Resume from checkpoint and verify the request can be continuedCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py306 # Step 7: Verify the executor state was properly restored and response was processedCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py343 # Step 1: Run workflow until it emits a request_info eventCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py352 # Step 2: Find the checkpoint with the pending requestCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py362 # Step 3: Create a fresh workflow and restore from checkpoint WITH responses in one callCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py375 # Step 4: Verify the request_info event was NOT re-emitted to the callerCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py384 # Step 5: Verify the response was processed by checking executor stateCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py454 # Step 4: Verify the approval request_info was NOT re-emittedCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py462 # Step 5: Verify the calculation request_info WAS re-emitted (no response provided)COMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py470 # Step 6: Verify workflow is in IDLE_WITH_PENDING_REQUESTS state (calc still pending)COMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py238 # Step 1: Run workflow to completion to ensure checkpoints are createdCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py250 # Step 2: List checkpoints to find the one with our pending requestCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py293 # Step 6: Provide response to the restored request and complete the workflowCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py416 # Step 1: Run workflow until it emits multiple request_info eventsCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py430 # Step 2: Find the checkpoint with pending requestsCOMMENT
LOW…re/tests/workflow/test_request_info_event_rehydrate.py442 # Step 3: Restore from checkpoint with ONLY the approval response (not the calculation)COMMENT
LOW…thon/packages/core/tests/workflow/test_sub_workflow.py693 # Step 1: run until the first request.COMMENT
LOW…thon/packages/core/tests/workflow/test_sub_workflow.py701 # Step 2: answer the first request so the sub-workflow accumulates internal stateCOMMENT
LOW…thon/packages/core/tests/workflow/test_sub_workflow.py646 # Step 1: Run workflow until first requestCOMMENT
LOW…thon/packages/core/tests/workflow/test_sub_workflow.py660 # Step 2: Resume workflow from checkpointCOMMENT
LOW…thon/packages/core/tests/workflow/test_sub_workflow.py723 # Step 3: answer the second request. With the sub-workflow's state restored, the two-stepCOMMENT
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
52 more matches not shown…
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 Comments118 hits · 176 pts
SeverityFileLineSnippetContext
LOW…04-hosting/container/hyperlight_codeact/call_server.py19# Set FOUNDRY_AGENT_ENDPOINT to your deployed agent endpoint, e.g.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.py59 # Check if we need to extract user info from user messagesCOMMENT
LOW…thon/samples/02-agents/harness/console/agent_runner.py237 # Check if there are pending questions (UI needs user input)COMMENT
LOW…s/02-agents/harness/console/observers/error_display.py38 # Check if this is an error content typeCOMMENT
LOW…amples/03-workflows/composition/sub_workflow_basics.py117 # Check if all results are collectedCOMMENT
LOW…rkflows/declarative/invoke_function_tool/workflow.yaml41 # Output the resultCOMMENT
LOW…3-workflows/declarative/customer_support/workflow.yaml118 # Check if the issue was resolved by support.COMMENT
LOW…ples/03-workflows/declarative/customer_support/main.py286 # Check if this is a SendActivity output (activity text from log_ticket, log_route, etc.)COMMENT
LOW…3-workflows/control-flow/multi_selection_edge_group.py287 # Print outputs and database events from streamingCOMMENT
LOW…to-end/evaluation/red_teaming/red_team_agent_sample.py140 # Display resultsSTRING
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.py607 # Read file contentsCOMMENT
LOWpython/scripts/task_runner.py72 # Check if there is an include tooCOMMENT
LOWpython/scripts/run_tasks_in_changed_packages.py41 # Check if the file is within this project directoryCOMMENT
LOW…es/foundry/agent_framework_foundry/_memory_provider.py190 # Check if there are any non-empty input messagesCOMMENT
LOW…packages/core/tests/core/test_middleware_with_agent.py1233 # Set metadata to pass information to run middlewareCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py1559 # Set max_iterations to 1 in additional_propertiesCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py2170 # Set max_consecutive_errors to 2COMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py2247 # Set terminate_on_unknown_calls to False (default)COMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py2283 # Set terminate_on_unknown_calls to TrueCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py2365 # Set include_detailed_errors to False (default)COMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py2401 # Set include_detailed_errors to TrueCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py2500 # Set include_detailed_errors to TrueCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py2536 # Set include_detailed_errors to False (default)COMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py3298 # Set include_detailed_errors to False (default)COMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py3366 # Set include_detailed_errors to TrueCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py3434 # Set include_detailed_errors to True to see validation detailsCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py3932 # Set max_iterations to 1 in additional_propertiesCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py4501 # Set max_consecutive_errors to 2COMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py4588 # Set terminate_on_unknown_calls to False (default)COMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py4633 # Set terminate_on_unknown_calls to TrueCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py4667 # Set include_detailed_errors to TrueCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py4709 # Set include_detailed_errors to False (default)COMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py4749 # Set include_detailed_errors to TrueCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py4789 # Set include_detailed_errors to False (default)COMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py4963 # Set result to a simple value - the framework will wrap it in FunctionResultContentCOMMENT
LOW…ages/core/tests/core/test_function_invocation_logic.py5418 # 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.py2924 # Check if this is a list of objects that were created from dictsCOMMENT
LOWpython/packages/core/agent_framework/_serialization.py380 # Check if the value is JSON serializableCOMMENT
LOWpython/packages/core/agent_framework/_serialization.py553 # Check if this is an instance-specific dependency (field:name format)COMMENT
LOWpython/packages/core/agent_framework/_tools.py480 # Check if the wrapped function is a method (has 'self' parameter)COMMENT
LOWpython/packages/core/agent_framework/_mcp.py165 # Check if 'arguments' is missing or emptyCOMMENT
LOWpython/packages/core/agent_framework/_mcp.py1808 # Check if there are more pagesCOMMENT
LOWpython/packages/core/agent_framework/_mcp.py1939 # Check if there are more pagesCOMMENT
LOW…/core/agent_framework/_workflows/_function_executor.py382 # Check if there's a context parameterCOMMENT
LOW…s/core/agent_framework/_workflows/_workflow_context.py189 # Check if it's a union type and validate each memberCOMMENT
LOW…s/core/agent_framework/_workflows/_workflow_context.py201 # Check if it's a valid typeCOMMENT
58 more matches not shown…
AI Structural Patterns153 hits · 122 pts
SeverityFileLineSnippetContext
LOW…ld_your_own_claw/claw_step04_production_ready/agent.py293CODE
LOW…n/samples/02-agents/harness/console/harness_console.py23CODE
LOWpython/samples/02-agents/harness/console/app.py143CODE
LOWpython/packages/foundry_hosting/tests/test_responses.py304CODE
LOW…ry_hosting/agent_framework_foundry_hosting/_toolbox.py263CODE
LOW…ithub_copilot/agent_framework_github_copilot/_agent.py548CODE
LOW…ithub_copilot/agent_framework_github_copilot/_agent.py1570CODE
LOW…on/packages/tools/agent_framework_tools/shell/_tool.py141CODE
LOW…/packages/tools/agent_framework_tools/shell/_docker.py330CODE
LOW…ages/foundry/agent_framework_foundry/_foundry_evals.py986CODE
LOW…s/foundry/agent_framework_foundry/_embedding_client.py120CODE
LOW…s/foundry/agent_framework_foundry/_embedding_client.py378CODE
LOW…ckages/foundry/agent_framework_foundry/_chat_client.py162CODE
LOW…ckages/foundry/agent_framework_foundry/_chat_client.py613CODE
LOW…ckages/foundry/agent_framework_foundry/_chat_client.py986CODE
LOW…hon/packages/foundry/agent_framework_foundry/_agent.py186CODE
LOW…hon/packages/foundry/agent_framework_foundry/_agent.py292CODE
LOW…hon/packages/foundry/agent_framework_foundry/_agent.py551CODE
LOW…hon/packages/foundry/agent_framework_foundry/_agent.py662CODE
LOW…hon/packages/foundry/agent_framework_foundry/_agent.py952CODE
LOW…es/foundry/agent_framework_foundry/_memory_provider.py70CODE
LOW…os/agent_framework_azure_cosmos/_checkpoint_storage.py117CODE
LOW…smos/agent_framework_azure_cosmos/_history_provider.py44CODE
LOWpython/packages/core/agent_framework/_types.py484CODE
LOWpython/packages/core/agent_framework/_types.py1102CODE
LOWpython/packages/core/agent_framework/_types.py2273CODE
LOWpython/packages/core/agent_framework/_types.py2557CODE
LOWpython/packages/core/agent_framework/_types.py2679CODE
LOWpython/packages/core/agent_framework/_types.py2964CODE
LOWpython/packages/core/agent_framework/_sessions.py579CODE
LOWpython/packages/core/agent_framework/_sessions.py2202CODE
LOWpython/packages/core/agent_framework/_evaluation.py1630CODE
LOWpython/packages/core/agent_framework/_evaluation.py1834CODE
LOWpython/packages/core/agent_framework/_evaluation.py415CODE
LOWpython/packages/core/agent_framework/_tools.py1136CODE
LOWpython/packages/core/agent_framework/_tools.py1152CODE
LOWpython/packages/core/agent_framework/_tools.py1167CODE
LOWpython/packages/core/agent_framework/_tools.py311CODE
LOWpython/packages/core/agent_framework/_mcp.py442CODE
LOWpython/packages/core/agent_framework/_mcp.py2753CODE
LOWpython/packages/core/agent_framework/_mcp.py2950CODE
LOWpython/packages/core/agent_framework/_mcp.py3271CODE
LOWpython/packages/core/agent_framework/security.py2234CODE
LOWpython/packages/core/agent_framework/security.py3380CODE
LOWpython/packages/core/agent_framework/observability.py500CODE
LOWpython/packages/core/agent_framework/observability.py1592CODE
LOWpython/packages/core/agent_framework/observability.py2539CODE
LOWpython/packages/core/agent_framework/observability.py2555CODE
LOWpython/packages/core/agent_framework/observability.py2571CODE
LOWpython/packages/core/agent_framework/observability.py2586CODE
LOWpython/packages/core/agent_framework/_agents.py811CODE
LOWpython/packages/core/agent_framework/_agents.py1007CODE
LOWpython/packages/core/agent_framework/_agents.py1022CODE
LOWpython/packages/core/agent_framework/_agents.py1037CODE
LOWpython/packages/core/agent_framework/_agents.py1051CODE
LOWpython/packages/core/agent_framework/_agents.py1805CODE
LOWpython/packages/core/agent_framework/_agents.py1821CODE
LOWpython/packages/core/agent_framework/_agents.py1837CODE
LOWpython/packages/core/agent_framework/_agents.py1852CODE
LOWpython/packages/core/agent_framework/_agents.py1885CODE
93 more matches not shown…
Cross-Language Confusion21 hits · 99 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.py110 ``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.py542 r = await shell.run("wget -q -T 2 -O- http://example.com || echo NOACCESS")CODE
HIGHpython/packages/core/tests/core/test_tools.py198 arguments='{"location": "Seattle", "unit": null}',CODE
HIGHpython/packages/core/tests/core/test_tools.py159 Regression for #5934: exclude_none dropped the explicit null, so the requiredSTRING
HIGHpython/packages/core/agent_framework/_tools.py664 # explicitly provided even when their value is null, and dropCOMMENT
HIGHpython/packages/core/agent_framework/_tools.py667 # parameter the model deliberately set to null, failing theCOMMENT
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.py2253 The OpenAI spec sends ``"delta": {}`` (not null) on finish chunks. TheseSTRING
Magic Placeholder Names19 hits · 92 pts
SeverityFileLineSnippetContext
HIGHpython/samples/README.md151| `agent-framework-mistral` | `MistralChatClient / MistralEmbeddingClient` | `MISTRAL_API_KEY` | `your-api-key` |CODE
HIGH…/02-agents/context_providers/azure_ai_search/README.md205 -H "api-key: YOUR_API_KEY"CODE
HIGHpython/samples/02-agents/mcp/mcp_api_key_auth.py23 python mcp_api_key_auth.py <your_api_key>STRING
HIGHpython/packages/core/agent_framework/_serialization.py467 openai_client = AsyncOpenAI(api_key="your-api-key")STRING
HIGHpython/packages/core/agent_framework/_tools.py1373 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.md27# MistralChatClient(model="mistral-large-latest", api_key="your-api-key")COMMENT
HIGHpython/packages/mistral/README.md59 # MistralEmbeddingClient(model="mistral-embed", api_key="your-api-key")COMMENT
HIGH…s/mistral/agent_framework_mistral/_embedding_client.py361 api_key="your-api-key",STRING
HIGH…ckages/mistral/agent_framework_mistral/_chat_client.py913 api_key="your-api-key",STRING
HIGH…github-copilot/Agent_With_GitHubCopilot_BYOK/README.md64 ApiKey = "your-api-key",CODE
Slop Phrases33 hits · 79 pts
SeverityFileLineSnippetContext
MEDIUMpython/devsetup.sh2# Create a virtual environment with Python 3.10 (you can change this to 3.11, 3.12 or 3.13)COMMENT
MEDIUM…mples/02-agents/tools/control_total_tool_executions.py329 Response: I'm unable to use the analysis tool right now as it has reached its limit...STRING
LOW…02-agents/context_providers/simple_context_provider.py30# In order for the State to be serialized well, we need to make sure to registerCOMMENT
MEDIUM…arness/build_your_own_claw/subprocess_script_runner.py5This is provided for demonstration purposes only.STRING
MEDIUM…aw_step04_production_ready/subprocess_script_runner.py5This is provided for demonstration purposes only.STRING
MEDIUM…n/samples/02-agents/skills/subprocess_script_runner.py5This is provided for demonstration purposes only.STRING
MEDIUM…ws/human-in-the-loop/guessing_game_with_human_input.py188 # If desired, you can add more guidance here, but keep it concise.COMMENT
MEDIUM…ows/human-in-the-loop/agents_with_approval_requests.py415. The sample automatically approves the request for demonstration purposes.STRING
MEDIUM…ows/human-in-the-loop/agents_with_approval_requests.py69 # For demonstration purposes, we return a fixed date.COMMENT
MEDIUM…ows/human-in-the-loop/agents_with_approval_requests.py340 Please let me know if you need more detailed information or have any questions.STRING
MEDIUM…orkflows/agents/workflow_as_agent_human_in_the_loop.py148 # Mock a human response approval for demonstration purposes.COMMENT
MEDIUM…on/samples/05-end-to-end/workflow_evaluation/_tools.py11# Note: These are mock tools for demonstration purposes. They return simulated dataCOMMENT
MEDIUM…hon/samples/05-end-to-end/chatkit-integration/store.py53 Note: This is for demonstration purposes. In production, you shouldSTRING
MEDIUM…/05-end-to-end/chatkit-integration/attachment_store.py40 Note: This is for demonstration purposes. In production, use cloud storageSTRING
MEDIUM…ackages/openai/tests/openai/test_openai_chat_client.py1614 assert response.messages[0].contents[0].text == "I cannot provide that information."CODE
MEDIUM…ackages/openai/tests/openai/test_openai_chat_client.py1602 mock_refusal_content.refusal = "I cannot provide that information."CODE
MEDIUM…nai/tests/openai/test_openai_chat_completion_client.py1361 refusal="I cannot provide that information.",CODE
MEDIUM…nai/tests/openai/test_openai_chat_completion_client.py1375 assert message.contents[0].text == "I cannot provide that information."CODE
MEDIUM…ry/AgentWithMemory_Step01_ChatHistoryMemory/Program.cs20// For demonstration purposes, we are using an in-memory vector store.COMMENT
MEDIUM…y/AgentWithMemory_Step05_BoundedChatHistory/Program.cs26// For demonstration purposes, we are using an in-memory vector store.COMMENT
MEDIUM…/Agents/Agent_Step03_PersistedConversations/Program.cs38// Here we'll just write the serialized session to console (for demonstration purposes).COMMENT
MEDIUM…mples/02-agents/Agents/Agent_Step12_Plugins/Program.cs106 /// The weather information is hardcoded for demonstration purposes.COMMENT
MEDIUM…uildYourOwnClaw/Claw_Step01_MeetYourClaw/StockTools.cs12/// The prices returned here are mock data for demonstration purposes only and are not realCOMMENT
MEDIUM…rOwnClaw/Claw_Step03_ScalingCapabilities/StockTools.cs12/// The prices and earnings figures returned here are mock data for demonstration purposes only andCOMMENT
MEDIUM…w_Step03_ScalingCapabilities/SubprocessScriptRunner.cs5// This is provided for demonstration purposes only.COMMENT
MEDIUM…w_Step03_ScalingCapabilities/SubprocessScriptRunner.cs19/// as a positional argument. It is intended for demonstration purposes only.COMMENT
MEDIUM…dYourOwnClaw/Claw_Step02_WorkingWithData/StockTools.cs12/// The prices returned here are mock data for demonstration purposes only and are not realCOMMENT
MEDIUM…foundry/Agent_Step06_PersistedConversations/Program.cs31// Save the serialized session to a temporary file (for demonstration purposes).COMMENT
MEDIUM…foundry/Agent_Step06_PersistedConversations/Program.cs35// Load the serialized session from the temporary file (for demonstration purposes).COMMENT
MEDIUM…AgentProviders/foundry/Agent_Step13_Plugins/Program.cs122 /// The weather information is hardcoded for demonstration purposes.COMMENT
MEDIUM…02-agents/Evaluation/Evaluation_CustomEvals/Program.cs28 && !response.Contains("I'm unable to", StringComparison.OrdinalIgnoreCase)CODE
MEDIUM…amples/02-agents/AgentSkills/SubprocessScriptRunner.cs5// This is provided for demonstration purposes only.COMMENT
MEDIUM…amples/02-agents/AgentSkills/SubprocessScriptRunner.cs17/// as a positional argument. It is intended for demonstration purposes only.COMMENT
Dead Code21 hits · 37 pts
SeverityFileLineSnippetContext
MEDIUM…packages/core/tests/core/test_middleware_with_agent.py177CODE
MEDIUM…packages/core/tests/core/test_middleware_with_agent.py178CODE
MEDIUM…packages/core/tests/core/test_middleware_with_agent.py1993CODE
MEDIUM…packages/core/tests/core/test_middleware_with_agent.py1994CODE
MEDIUMpython/packages/core/tests/core/test_types.py4393CODE
MEDIUMpython/packages/core/tests/core/test_types.py4412CODE
MEDIUMpython/packages/core/tests/core/test_types.py4434CODE
MEDIUMpython/packages/core/tests/core/test_agent_hooks.py1903CODE
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.py1420CODE
MEDIUMpython/packages/ag-ui/tests/ag_ui/test_workflow_run.py2546CODE
MEDIUMpython/packages/ag-ui/tests/ag_ui/test_a2ui.py308CODE
MEDIUMpython/packages/ag-ui/tests/ag_ui/test_a2ui.py322CODE
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 Blocks14 hits · 21 pts
SeverityFileLineSnippetContext
LOW…uction_ready/skills/risk-scoring/scripts/risk_score.py8# Usage:COMMENT
LOW…on_ready/skills/valuation/scripts/valuation_metrics.py8# Usage:COMMENT
LOW…our_own_claw/skills/risk-scoring/scripts/risk_score.py8# Usage:COMMENT
LOW…own_claw/skills/valuation/scripts/valuation_metrics.py8# Usage:COMMENT
LOW…/mixed_skills/skills/unit-converter/scripts/convert.py4# Usage:COMMENT
LOW…e_based_skill/skills/unit-converter/scripts/convert.py4# Usage:COMMENT
LOW…oundryHostedAgents/scripts/add-local-framework-feed.sh30# Usage:COMMENT
LOW…dy/ClawAgent/skills/risk-scoring/scripts/risk_score.py8# Usage:COMMENT
LOW…lawAgent/skills/valuation/scripts/valuation_metrics.py8# Usage:COMMENT
LOW…Capabilities/skills/risk-scoring/scripts/risk_score.py8# Usage:COMMENT
LOW…bilities/skills/valuation/scripts/valuation_metrics.py8# Usage:COMMENT
LOW…sAutoApproval/skills/unit-converter/scripts/convert.py4# Usage:COMMENT
LOW…dSkills/skills/unit-converter/scripts/convert-units.py4# Usage:COMMENT
LOW…leBasedSkills/skills/unit-converter/scripts/convert.py4# Usage:COMMENT
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.py2189 def my_function(arg: str) -> str:CODE
LOWpython/packages/core/tests/core/test_skills.py3556 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.py430 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.py1369 def my_function():STRING
LOW…on/packages/declarative/tests/test_workflow_factory.py359 def my_function(x):CODE
LOW…nai/tests/openai/test_openai_chat_completion_client.py324 def test_function(query: str) -> str:CODE