AI Slop Code RIsk Monitor

microsoft/autogen

A programming framework for agentic AI

21.2 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for microsoft/autogen, a Python project with 61,342 GitHub stars. SynthScan examined 213,192 lines of code across 1519 source files, recording 3109 pattern matches distributed across 27 syntactic categories. The legacy adjusted pattern signal is 21.2 (Elevated pattern signal); it is not an authorship estimate.

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

21.2
Adjusted Signal
21.2
Raw Pattern Score
100%
Time Factor
2026-04-15
Last Push
61.3K
Stars
Python
Language
213.2K
Lines of Code
1.5K
Files
3.1K
Pattern Hits
2026-10-12
Scan Date
0.12
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 47.5/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 17.6/100 · LOW

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

Agent Over-Engineering Ratio 36.7/100 · MEDIUM

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

PR Review Velocity Impact 67.7/100 · HIGH

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

What These Metrics Mean

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

Pattern-Signal History

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

Severity Breakdown

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

CRITICAL 23HIGH 154MEDIUM 369LOW 2563

Directory Score Breakdown

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

Pattern Findings

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

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

Hyper-Verbose Identifiers1129 hits · 988 pts
SeverityFileLineSnippetContext
LOWpython/check_md_code_blocks.py17def extract_python_code_blocks(markdown_file_path: str) -> List[Tuple[str, int]]:CODE
LOWpython/docs/src/generate_api_reference.py201def generate_toctree_from_rst_files(reference_dir: Path) -> Dict[str, List[str]]:STRING
LOWpython/docs/src/generate_api_reference.py224 def sort_modules_hierarchically(modules):CODE
LOWpython/docs/src/_static/custom.js163function enhanceExpandableSections(item, parentLink, parentText, sectionTitle) {CODE
LOWpython/samples/core_distributed-group-chat/_agents.py195async def publish_message_to_ui_and_backend(CODE
LOW…ples/core_streaming_handoffs_fastapi/tools_delegate.py8def transfer_to_issues_and_repairs() -> str:CODE
LOW…ask_centric_memory/eval_learning_from_demonstration.py30async def eval_learning_from_demonstration(CODE
LOWpython/packages/agbench/benchmarks/process_logs.py144def get_number_of_chat_messages(chat_messages_dir):CODE
LOWpython/packages/agbench/benchmarks/process_logs.py201def is_progress_not_being_made(instance_dir):CODE
LOW…/HumanEval/Templates/AgentChat/custom_code_executor.py24 def _extract_markdown_code_blocks(self, markdown_text: str) -> List[CodeBlock]:CODE
LOW…ges/agbench/benchmarks/GAIA/Scripts/custom_tabulate.py16def in_house_normalize_answer(a):CODE
LOW…h/benchmarks/GAIA/Templates/ParallelAgents/scenario.py115def team_specific_agentchat_event_logger_info(msg, *args, **kwargs):CODE
LOW…h/benchmarks/GAIA/Templates/ParallelAgents/scenario.py124def team_specific_core_event_logger_info(msg, *args, **kwargs):CODE
LOW…hon/packages/agbench/src/agbench/remove_missing_cmd.py31def delete_folders_with_missing_results(runlogs_path: str, noconfirm: bool = False) -> None:CODE
LOWpython/packages/agbench/src/agbench/run_cmd.py696def build_default_docker_image(docker_client: docker.DockerClient, image_tag: str) -> None:STRING
LOW…ackages/agbench/src/agbench/linter/coders/oai_coder.py15def remove_control_characters(text: str) -> str:CODE
LOW…es/autogen-studio/autogenstudio/database/db_manager.py312 async def import_teams_from_directory(CODE
LOW…utogen-studio/autogenstudio/database/schema_manager.py88 def _cleanup_existing_alembic(self) -> None:CODE
LOW…utogen-studio/autogenstudio/database/schema_manager.py193 def _generate_alembic_ini_content(self) -> str:CODE
LOW…thon/packages/autogen-studio/autogenstudio/web/deps.py119async def register_auth_dependencies(app: FastAPI, auth_manager: AuthManager) -> None:CODE
LOW…ackages/autogen-studio/autogenstudio/web/routes/mcp.py186async def create_mcp_websocket_connection(request: CreateWebSocketConnectionRequest):CODE
LOW…ckages/autogen-studio/autogenstudio/gallery/builder.py57 def _update_component_metadata(CODE
LOW…/packages/autogen-studio/autogenstudio/mcp/wsbridge.py137 async def _handle_elicitation_response(self, message: Dict[str, Any]) -> None:CODE
LOW…packages/autogen-studio/autogenstudio/mcp/callbacks.py120def create_elicitation_callback(CODE
LOW…o/frontend/src/components/types/component-templates.ts523export function createComponentFromTemplate(CODE
LOW…o/frontend/src/components/types/component-templates.ts555export function getWorkbenchTemplatesForDropdown(): WorkbenchDropdownOption[] {CODE
LOW…o/frontend/src/components/types/component-templates.ts564export function createWorkbenchFromTemplate(CODE
LOW…o/frontend/src/components/types/component-templates.ts599export function createComponentFromTemplateById(CODE
LOW…o/frontend/src/components/types/component-templates.ts615export function getTeamTemplatesForDropdown(): ComponentDropdownOption[] {CODE
LOW…o/frontend/src/components/types/component-templates.ts626export function getAgentTemplatesForDropdown(): ComponentDropdownOption[] {CODE
LOW…o/frontend/src/components/types/component-templates.ts637export function getModelTemplatesForDropdown(): ComponentDropdownOption[] {CODE
LOW…o/frontend/src/components/types/component-templates.ts648export function getToolTemplatesForDropdown(): ComponentDropdownOption[] {CODE
LOW…o/frontend/src/components/types/component-templates.ts659export function getTerminationTemplatesForDropdown(): ComponentDropdownOption[] {CODE
LOW…o/frontend/src/components/types/component-templates.ts663export function createTerminationFromTemplate(CODE
LOW…autogen-studio/frontend/src/components/types/guards.ts191// export function isChatCompletionContextComponent(COMMENT
LOW…thon/packages/autogen-studio/tests/test_lite_studio.py59def test_init_with_team_object(sample_team_object: Dict[str, Union[str, List[Any]]]) -> None:CODE
LOW…thon/packages/autogen-studio/tests/test_lite_studio.py90def test_init_with_invalid_file() -> None:CODE
LOW…thon/packages/autogen-studio/tests/test_lite_studio.py170def test_stop_with_server_thread(sample_team_file: str) -> None:CODE
LOW…thon/packages/autogen-studio/tests/test_lite_studio.py200def test_start_twice_raises_error(mock_uvicorn: MagicMock, sample_team_file: str) -> None:CODE
LOW…thon/packages/autogen-studio/tests/test_lite_studio.py212def test_init_with_team_object_with_serialization_methods() -> None:CODE
LOW…thon/packages/autogen-studio/tests/test_lite_studio.py237def test_init_with_team_object_model_dump() -> None:CODE
LOW…thon/packages/autogen-studio/tests/test_lite_studio.py254def test_init_with_unsupported_team_object() -> None:CODE
LOW…thon/packages/autogen-studio/tests/test_lite_studio.py266def test_init_with_path_object(tmp_path: Path) -> None:CODE
LOW…thon/packages/autogen-studio/tests/test_lite_studio.py289def test_init_with_component_model() -> None:CODE
LOWpython/packages/autogen-studio/tests/test_db_manager.py62 def test_basic_entity_creation(self, test_db: DatabaseManager, sample_team: Team):CODE
LOWpython/packages/autogen-studio/tests/test_db_manager.py170 def test_initialize_database_scenarios(self, tmp_path, monkeypatch):CODE
LOW…packages/autogen-studio/tests/mcp/test_mcp_wsbridge.py58 async def test_bridge_initialization(self, bridge, mock_websocket):CODE
LOW…packages/autogen-studio/tests/mcp/test_mcp_wsbridge.py82 async def test_on_initialized_event(self, bridge, mock_websocket):CODE
LOW…packages/autogen-studio/tests/mcp/test_mcp_wsbridge.py95 async def test_on_operation_result_event(self, bridge, mock_websocket):CODE
LOW…packages/autogen-studio/tests/mcp/test_mcp_wsbridge.py109 async def test_on_operation_error_event(self, bridge, mock_websocket):CODE
LOW…packages/autogen-studio/tests/mcp/test_mcp_wsbridge.py123 async def test_on_elicitation_request_event(self, bridge, mock_websocket):CODE
LOW…packages/autogen-studio/tests/mcp/test_mcp_wsbridge.py160 async def test_handle_operation_message_without_client(self, bridge, mock_websocket):CODE
LOW…packages/autogen-studio/tests/mcp/test_mcp_wsbridge.py175 async def test_handle_operation_message_with_client(self, bridge, mock_websocket):CODE
LOW…packages/autogen-studio/tests/mcp/test_mcp_wsbridge.py198 async def test_handle_unknown_message_type(self, bridge, mock_websocket):CODE
LOW…packages/autogen-studio/tests/mcp/test_mcp_wsbridge.py213 async def test_handle_elicitation_response_accept(self, bridge, mock_websocket):CODE
LOW…packages/autogen-studio/tests/mcp/test_mcp_wsbridge.py240 async def test_handle_elicitation_response_decline(self, bridge, mock_websocket):CODE
LOW…packages/autogen-studio/tests/mcp/test_mcp_wsbridge.py262 async def test_handle_elicitation_response_missing_request_id(self, bridge, mock_websocket):CODE
LOW…packages/autogen-studio/tests/mcp/test_mcp_wsbridge.py278 async def test_handle_elicitation_response_unknown_request_id(self, bridge, mock_websocket):CODE
LOW…packages/autogen-studio/tests/mcp/test_mcp_wsbridge.py295 async def test_message_loop_with_valid_json(self, bridge, mock_websocket):CODE
LOW…packages/autogen-studio/tests/mcp/test_mcp_wsbridge.py317 async def test_message_loop_with_invalid_json(self, bridge, mock_websocket):CODE
1069 more matches not shown…
Self-Referential Comments292 hits · 758 pts
SeverityFileLineSnippetContext
MEDIUMpython/docs/redirects/redirects.py14 # Create a new redirect pageCOMMENT
MEDIUMpython/docs/redirects/redirects.py26 # Create the path to the redirect pageCOMMENT
MEDIUMpython/docs/redirects/redirects.py29 # Create the directory if it doesn't existCOMMENT
MEDIUMpython/docs/src/_extension/code_lint.py66 # Create a temporary file to store the code blockCOMMENT
MEDIUMpython/docs/src/_extension/gallery_directive.py115 # Create the directive string for the gridCOMMENT
MEDIUMpython/samples/core_distributed-group-chat/_types.py71# Define the overall AppConfig modelCOMMENT
MEDIUM…/samples/core_streaming_handoffs_fastapi/agent_base.py82 # Create the context for the delegate agent, including the function call and the result.COMMENT
MEDIUMpython/samples/agentchat_fastapi/app_team.py52 # Create the team.COMMENT
MEDIUMpython/samples/agentchat_fastapi/app_agent.py46 # Create the assistant agent.COMMENT
MEDIUM…on/samples/core_semantic_router/run_semantic_router.py85 # Create the agentsCOMMENT
MEDIUM…on/samples/core_semantic_router/run_semantic_router.py92 # Create the User Proxy AgentCOMMENT
MEDIUM…on/samples/core_semantic_router/run_semantic_router.py104 # Create the Semantic RouterCOMMENT
MEDIUMpython/samples/agentchat_chess_game/main.py15 # Create an agent that can use the model client.COMMENT
MEDIUMpython/samples/core_streaming_response_fastapi/app.py70 # Create a stream of messages to the model client.COMMENT
MEDIUMpython/samples/task_centric_memory/eval_retrieval.py93 # Create the necessary components.COMMENT
MEDIUMpython/samples/task_centric_memory/eval_teachability.py93 # Create the necessary components.COMMENT
MEDIUM…thon/samples/task_centric_memory/eval_self_teaching.py109 # Create the necessary components.COMMENT
MEDIUM⚡…mples/task_centric_memory/chat_with_teachable_agent.py9 # Create a clientCOMMENT
MEDIUM⚡…mples/task_centric_memory/chat_with_teachable_agent.py12 # Create an instance of Task-Centric Memory, passing minimal parameters for this simple exampleCOMMENT
MEDIUM⚡…mples/task_centric_memory/chat_with_teachable_agent.py18 # Create an AssistantAgent, and attach teachability as its memoryCOMMENT
MEDIUM…ask_centric_memory/eval_learning_from_demonstration.py91 # Create the necessary components.COMMENT
MEDIUMpython/samples/core_chess_game/main.py147 # Create the board.COMMENT
MEDIUMpython/samples/core_chainlit/app_team.py95 # Create the assistant agent.COMMENT
MEDIUMpython/samples/core_chainlit/app_team.py108 # Create the critic agent.COMMENT
MEDIUM⚡python/samples/core_chainlit/app_agent.py63 # Create a runtime and save to chainlit sessionCOMMENT
MEDIUM⚡python/samples/core_chainlit/app_agent.py70 # Create a queue for output stream data and save to chainlit sessionCOMMENT
MEDIUM⚡python/samples/core_chainlit/app_agent.py74 # Create the assistant agent with the get_weather tool.COMMENT
MEDIUMpython/samples/agentchat_chainlit/app_team.py21 # Create the assistant agent.COMMENT
MEDIUMpython/samples/agentchat_chainlit/app_team.py29 # Create the critic agent.COMMENT
MEDIUMpython/samples/agentchat_chainlit/app_agent.py38 # Create the assistant agent with the get_weather tool.COMMENT
MEDIUM⚡…thon/samples/agentchat_chainlit/app_team_user_proxy.py54 # Create the assistant agent.COMMENT
MEDIUM⚡…thon/samples/agentchat_chainlit/app_team_user_proxy.py62 # Create the critic agent.COMMENT
MEDIUM⚡…thon/samples/agentchat_chainlit/app_team_user_proxy.py71 # Create the user proxy agent.COMMENT
MEDIUM…ges/agbench/benchmarks/HumanEval/Scripts/init_tasks.py67 # Create a BytesIO object from the response contentCOMMENT
MEDIUM…ges/agbench/benchmarks/HumanEval/Scripts/init_tasks.py83 # Create a task directory if it doesn't existCOMMENT
MEDIUM…ges/agbench/benchmarks/HumanEval/Scripts/init_tasks.py87 # Create the jsonl fileCOMMENT
MEDIUM…ges/agbench/benchmarks/HumanEval/Scripts/init_tasks.py117 # Create the various combinations of [models] x [templates]COMMENT
MEDIUM…h/benchmarks/HumanEval/Templates/AgentChat/scenario.py47 # Define a teamCOMMENT
MEDIUM…packages/agbench/benchmarks/GAIA/Scripts/init_tasks.py117 # Create the various combinations of [models] x [templates]COMMENT
MEDIUM…h/benchmarks/GAIA/Templates/ParallelAgents/scenario.py56# Create a context variable to hold the current team's log file and the current team id.COMMENT
MEDIUM…enchmarks/GAIA/Templates/SelectorGroupChat/scenario.py83 # Create the teamSTRING
MEDIUMpython/packages/agbench/src/agbench/tabulate_cmd.py241 # Create a per-trial summary dataframeCOMMENT
MEDIUMpython/packages/agbench/src/agbench/tabulate_cmd.py263 # Create a dataframeCOMMENT
MEDIUMpython/packages/agbench/src/agbench/run_cmd.py135 # Create a folder to store the resultsCOMMENT
MEDIUMpython/packages/agbench/src/agbench/run_cmd.py774 # Create a folder to store the resultsSTRING
MEDIUMpython/packages/agbench/src/agbench/run_cmd.py825 # Create a pool of worker processesSTRING
MEDIUM…thon/packages/autogen-studio/autogenstudio/web/deps.py277 # Create a default session with this teamCOMMENT
MEDIUM…ckages/autogen-studio/autogenstudio/gallery/builder.py292 # Create a complex termination combining multiple conditionsCOMMENT
MEDIUM…ckages/autogen-studio/autogenstudio/gallery/builder.py520 # Create a static workbench with basic toolsCOMMENT
MEDIUM…ckages/autogen-studio/autogenstudio/gallery/builder.py528 # Create an MCP workbench for fetching web content using mcp-server-fetchCOMMENT
MEDIUM…ckages/autogen-studio/autogenstudio/gallery/builder.py542 # Create an MCP workbench with StreamableHttpServerParams for HTTP-based MCP serversCOMMENT
MEDIUM…ckages/autogen-studio/autogenstudio/gallery/builder.py558 # Create an MCP workbench for filesystem operationsCOMMENT
MEDIUM…ckages/autogen-studio/autogenstudio/gallery/builder.py577 # Create an MCP workbench for testing with everything serverCOMMENT
MEDIUM…ogen-studio/autogenstudio/gallery/tools/bing_search.py201# Create the Bing search toolCOMMENT
MEDIUM…en-studio/autogenstudio/gallery/tools/google_search.py129# Create the enhanced Google search toolCOMMENT
MEDIUM…n-studio/autogenstudio/gallery/tools/generate_image.py54# Create the image generation toolCOMMENT
MEDIUM…en-studio/autogenstudio/gallery/tools/fetch_webpage.py75# Create the webpage fetching toolCOMMENT
MEDIUM…n/packages/autogen-studio/autogenstudio/eval/judges.py79 # Create a score objectCOMMENT
MEDIUM…n/packages/autogen-studio/autogenstudio/eval/judges.py109 # Create the promptCOMMENT
MEDIUM⚡…n/packages/autogen-studio/autogenstudio/eval/judges.py216# # Create a model clientCOMMENT
232 more matches not shown…
Unused Imports491 hits · 470 pts
SeverityFileLineSnippetContext
LOW…ang_hello_python_agent/protos/agent_events_pb2_grpc.py4CODE
LOWpython/samples/gitty/src/gitty/__init__.py1CODE
LOW…ges/agbench/benchmarks/HumanEval/Scripts/init_tasks.py6CODE
LOW…gbench/benchmarks/HumanEval/Scripts/custom_tabulate.py1CODE
LOW…/HumanEval/Templates/AgentChat/custom_code_executor.py1CODE
LOW…h/benchmarks/HumanEval/Templates/AgentChat/scenario.py2CODE
LOW…ges/agbench/benchmarks/GAIA/Scripts/custom_tabulate.py5CODE
LOW…ges/agbench/benchmarks/GAIA/Scripts/custom_tabulate.py6CODE
LOW…ges/agbench/benchmarks/GAIA/Scripts/custom_tabulate.py7CODE
LOW…ges/agbench/benchmarks/GAIA/Scripts/custom_tabulate.py8CODE
LOW…ges/agbench/benchmarks/GAIA/Scripts/custom_tabulate.py10CODE
LOW…ges/agbench/benchmarks/GAIA/Scripts/custom_tabulate.py11CODE
LOW…ench/benchmarks/GAIA/Templates/MagenticOne/scenario.py8CODE
LOW…ench/benchmarks/GAIA/Templates/MagenticOne/scenario.py10CODE
LOW…ench/benchmarks/GAIA/Templates/MagenticOne/scenario.py15CODE
LOW…h/benchmarks/GAIA/Templates/ParallelAgents/scenario.py12CODE
LOW…h/benchmarks/GAIA/Templates/ParallelAgents/scenario.py15CODE
LOW…h/benchmarks/GAIA/Templates/ParallelAgents/scenario.py27CODE
LOW…h/benchmarks/GAIA/Templates/ParallelAgents/scenario.py32CODE
LOW…h/benchmarks/GAIA/Templates/ParallelAgents/scenario.py32CODE
LOW…h/benchmarks/GAIA/Templates/ParallelAgents/scenario.py45CODE
LOW…enchmarks/GAIA/Templates/SelectorGroupChat/scenario.py11CODE
LOW…enchmarks/GAIA/Templates/SelectorGroupChat/scenario.py13CODE
LOW…enchmarks/GAIA/Templates/SelectorGroupChat/scenario.py19CODE
LOW…enchmarks/GAIA/Templates/SelectorGroupChat/scenario.py20CODE
LOWpython/packages/agbench/src/agbench/__init__.py1CODE
LOWpython/packages/agbench/src/agbench/linter/__init__.py2CODE
LOWpython/packages/agbench/src/agbench/linter/__init__.py2CODE
LOWpython/packages/agbench/src/agbench/linter/__init__.py2CODE
LOWpython/packages/agbench/src/agbench/linter/__init__.py2CODE
LOW…thon/packages/autogen-studio/autogenstudio/__init__.py1CODE
LOW…thon/packages/autogen-studio/autogenstudio/__init__.py2CODE
LOW…thon/packages/autogen-studio/autogenstudio/__init__.py3CODE
LOW…thon/packages/autogen-studio/autogenstudio/__init__.py4CODE
LOW…ages/autogen-studio/autogenstudio/database/__init__.py1CODE
LOW…utogen-studio/autogenstudio/database/schema_manager.py2CODE
LOW…utogen-studio/autogenstudio/database/schema_manager.py8CODE
LOW…utogen-studio/autogenstudio/database/schema_manager.py14CODE
LOW…s/autogen-studio/autogenstudio/teammanager/__init__.py1CODE
LOW…packages/autogen-studio/autogenstudio/lite/__init__.py1CODE
LOW…thon/packages/autogen-studio/autogenstudio/web/deps.py2CODE
LOW…thon/packages/autogen-studio/autogenstudio/web/deps.py9CODE
LOW…thon/packages/autogen-studio/autogenstudio/web/deps.py13CODE
LOW…ckages/autogen-studio/autogenstudio/web/auth/models.py1CODE
LOW…ckages/autogen-studio/autogenstudio/web/auth/models.py2CODE
LOW…ckages/autogen-studio/autogenstudio/web/auth/models.py4CODE
LOW…ages/autogen-studio/autogenstudio/web/auth/__init__.py1CODE
LOW…ages/autogen-studio/autogenstudio/web/auth/__init__.py2CODE
LOW…ages/autogen-studio/autogenstudio/web/auth/__init__.py2CODE
LOW…ages/autogen-studio/autogenstudio/web/auth/__init__.py2CODE
LOW…ages/autogen-studio/autogenstudio/web/auth/__init__.py2CODE
LOW…ages/autogen-studio/autogenstudio/web/auth/__init__.py3CODE
LOW…ages/autogen-studio/autogenstudio/web/auth/__init__.py4CODE
LOW…ages/autogen-studio/autogenstudio/web/auth/__init__.py5CODE
LOW…ages/autogen-studio/autogenstudio/web/auth/__init__.py6CODE
LOW…ages/autogen-studio/autogenstudio/web/auth/__init__.py6CODE
LOW…ages/autogen-studio/autogenstudio/web/auth/__init__.py7CODE
LOW…es/autogen-studio/autogenstudio/web/auth/authroutes.py4CODE
LOW…es/autogen-studio/autogenstudio/web/auth/authroutes.py5CODE
LOW…ges/autogen-studio/autogenstudio/web/auth/providers.py10CODE
431 more matches not shown…
Empty Error Handlers47 hits · 235 pts
SeverityFileLineSnippetContext
HIGHpython/packages/agbench/src/agbench/run_cmd.py683except APIError:CODE
HIGH…n/packages/autogen-studio/autogenstudio/lite/studio.py243except (subprocess.SubprocessError, FileNotFoundError):CODE
HIGH…ackages/autogen-studio/autogenstudio/web/routes/mcp.py171except Exception:CODE
HIGH…n/packages/autogen-studio/autogenstudio/eval/judges.py190except (ValueError, IndexError):CODE
HIGH…/packages/autogen-core/src/autogen_core/_base_agent.py204except ValueError:CODE
HIGHpython/packages/autogen-core/src/autogen_core/_queue.py130except ValueError:CODE
HIGHpython/packages/autogen-core/src/autogen_core/_queue.py177except ValueError:CODE
HIGH…thon/packages/autogen-ext/tests/test_azure_ai_agent.py563except StopAsyncIteration:CODE
HIGH…thon/packages/autogen-ext/tests/test_worker_runtime.py432except asyncio.CancelledError:CODE
HIGH…hon/packages/autogen-ext/tests/tools/test_mcp_actor.py1240except asyncio.CancelledError:CODE
HIGH…hon/packages/autogen-ext/tests/tools/test_mcp_actor.py145except (asyncio.CancelledError, ValueError):CODE
HIGH…hon/packages/autogen-ext/tests/tools/test_mcp_actor.py461except asyncio.TimeoutError:CODE
HIGH…hon/packages/autogen-ext/tests/tools/test_mcp_actor.py1158except asyncio.TimeoutError:CODE
HIGH…hon/packages/autogen-ext/tests/tools/test_mcp_actor.py475except asyncio.CancelledError:CODE
HIGH…hon/packages/autogen-ext/tests/tools/test_mcp_actor.py497except asyncio.CancelledError:CODE
HIGH…hon/packages/autogen-ext/tests/tools/test_mcp_actor.py608except asyncio.CancelledError:CODE
HIGH…hon/packages/autogen-ext/tests/tools/test_mcp_actor.py800except asyncio.CancelledError:CODE
HIGH…hon/packages/autogen-ext/tests/tools/test_mcp_actor.py1172except asyncio.CancelledError:CODE
HIGH…ode_executors/test_docker_commandline_code_executor.py393except asyncio.CancelledError:CODE
HIGH…on/packages/autogen-ext/examples/mcp_example_server.py53except ValueError:CODE
HIGH…t/experimental/task_centric_memory/utils/_functions.py93except Exception:CODE
HIGH…/autogen-ext/src/autogen_ext/tools/azure/_ai_search.py351except Exception:CODE
HIGH…ckages/autogen-ext/src/autogen_ext/tools/mcp/_actor.py253except Exception:CODE
HIGH…kages/autogen-ext/src/autogen_ext/memory/mem0/_mem0.py332except (ValueError, TypeError):CODE
HIGH…kages/autogen-ext/src/autogen_ext/memory/mem0/_mem0.py339except (ValueError, TypeError):CODE
HIGH…kages/autogen-ext/src/autogen_ext/cache_store/redis.py119except (redis.RedisError, ConnectionError, UnicodeEncodeError, TypeError):CODE
HIGH…n-ext/src/autogen_ext/runtimes/grpc/_worker_runtime.py322except asyncio.CancelledError:CODE
HIGH…n-ext/src/autogen_ext/runtimes/grpc/_worker_runtime.py329except asyncio.CancelledError:CODE
HIGH…/src/autogen_ext/runtimes/grpc/_worker_runtime_host.py47except asyncio.CancelledError:CODE
HIGH…autogen_ext/agents/web_surfer/playwright_controller.py26except ImportError:CODE
HIGH…autogen_ext/agents/web_surfer/playwright_controller.py102except Exception:CODE
HIGH…autogen_ext/agents/web_surfer/playwright_controller.py128except Exception:CODE
HIGH…autogen_ext/agents/web_surfer/playwright_controller.py145except Exception:CODE
HIGH…autogen_ext/agents/web_surfer/playwright_controller.py163except Exception:CODE
HIGH…autogen_ext/agents/web_surfer/playwright_controller.py550except Exception:CODE
HIGH…autogen_ext/agents/web_surfer/playwright_controller.py385except TimeoutError:CODE
HIGH…autogen_ext/agents/web_surfer/playwright_controller.py397except TimeoutError:CODE
HIGH…utogen_ext/agents/web_surfer/_multimodal_web_surfer.py886except Exception:CODE
HIGH…utogen_ext/agents/web_surfer/_multimodal_web_surfer.py531except KeyError:CODE
HIGH…/src/autogen_ext/models/anthropic/_anthropic_client.py1015except json.JSONDecodeError:CODE
HIGH…autogen-ext/src/autogen_ext/code_executors/__init__.py64except Exception:CODE
HIGH…n_ext/code_executors/docker_jupyter/_jupyter_server.py392except docker.errors.NotFound:CODE
HIGH…gen_ext/code_executors/docker/_docker_code_executor.py534except NotFound:CODE
HIGH…gen_ext/code_executors/docker/_docker_code_executor.py372except (OSError, FileNotFoundError):CODE
HIGH…utogen-agentchat/tests/test_group_chat_pause_resume.py47except asyncio.CancelledError:CODE
HIGH…utogen-agentchat/tests/test_group_chat_pause_resume.py74except asyncio.CancelledError:CODE
HIGH…utogen_agentchat/teams/_group_chat/_base_group_chat.py101except TypeError:CODE
Excessive Try-Catch Wrapping214 hits · 235 pts
SeverityFileLineSnippetContext
LOW…cs/src/user-guide/core-user-guide/framework/logging.md66 except Exception:CODE
LOW…thon/samples/core_streaming_handoffs_fastapi/README.md132 except Exception as e:CODE
MEDIUM⚡python/samples/core_streaming_handoffs_fastapi/app.py239 print(f"Error decoding JSON from {chat_history_file}. Starting with empty history.")CODE
LOW⚡python/samples/core_streaming_handoffs_fastapi/app.py244 except Exception as e:CODE
MEDIUM⚡python/samples/core_streaming_handoffs_fastapi/app.py245 print(f"Error loading chat history for {conversation_id}: {e}")CODE
LOWpython/samples/agentchat_fastapi/app_team.py91 except Exception as e:CODE
LOWpython/samples/agentchat_fastapi/app_team.py142 except Exception as e:CODE
LOWpython/samples/agentchat_fastapi/app_team.py161 except Exception as send_error:CODE
LOWpython/samples/agentchat_fastapi/app_team.py167 except Exception as e:CODE
LOWpython/samples/agentchat_fastapi/app_team.py178 except Exception:CODE
MEDIUMpython/samples/agentchat_fastapi/app_team.py88def history() -> list[dict[str, Any]]:CODE
LOWpython/samples/agentchat_fastapi/app_agent.py73 except Exception as e:CODE
LOWpython/samples/agentchat_fastapi/app_agent.py98 except Exception as e:CODE
MEDIUMpython/samples/agentchat_fastapi/app_agent.py70def history() -> list[dict[str, Any]]:CODE
LOWpython/samples/gitty/src/gitty/_github.py27 except Exception:CODE
MEDIUMpython/samples/gitty/src/gitty/_github.py46 print(f"Error fetching issue: {error_detail}")CODE
MEDIUMpython/samples/gitty/src/gitty/_github.py51 print("Error decoding gh cli output:", e)CODE
MEDIUMpython/samples/gitty/src/gitty/_github.py67 print("Error fetching issues:", result.stderr)CODE
MEDIUMpython/samples/gitty/src/gitty/_github.py72 print("Error decoding issues JSON:", e)CODE
LOWpython/samples/gitty/src/gitty/_db.py48 except Exception:STRING
MEDIUMpython/samples/gitty/src/gitty/_db.py87 print("Error fetching issues:", result.stderr)STRING
MEDIUMpython/samples/gitty/src/gitty/_db.py92 print("Error decoding issues JSON:", e)STRING
LOWpython/samples/gitty/src/gitty/_db.py149 except Exception:STRING
LOWpython/samples/gitty/src/gitty/_gitty.py71 except Exception as e:CODE
LOWpython/samples/gitty/src/gitty/_gitty.py82 except Exception as e:CODE
MEDIUMpython/samples/gitty/src/gitty/_config.py24 print("Error: not a git repository.")CODE
MEDIUMpython/samples/gitty/src/gitty/__main__.py16 print("Error: OPENAI_API_KEY environment variable is not set.")CODE
MEDIUM…thon/samples/core_streaming_response_fastapi/README.md93 print(f"Error: {e}")CODE
LOWpython/samples/core_streaming_response_fastapi/app.py79 except Exception as e:CODE
MEDIUM⚡python/samples/agentchat_graphrag/app.py38 print("Error: OPENAI_API_KEY environment variable is not set!")CODE
LOWpython/samples/core_chainlit/SimpleAssistantAgent.py105 except Exception as e:CODE
LOWpython/packages/agbench/benchmarks/process_logs.py49 except Exception as e:CODE
LOW…h/benchmarks/GAIA/Templates/ParallelAgents/scenario.py98 except Exception:CODE
LOW…h/benchmarks/GAIA/Templates/ParallelAgents/scenario.py358 except Exception as e:STRING
MEDIUM…hon/packages/agbench/src/agbench/remove_missing_cmd.py97 print(f"Error: '{runlogs_path}' is not a valid directory.")CODE
MEDIUM…hon/packages/agbench/src/agbench/remove_missing_cmd.py119 print(f"Error: '{runlogs_path}' is not a valid directory.")CODE
LOW…es/autogen-studio/autogenstudio/database/db_manager.py101 except Exception as e:CODE
LOW…es/autogen-studio/autogenstudio/database/db_manager.py139 except Exception as e:CODE
LOW…es/autogen-studio/autogenstudio/database/db_manager.py156 except Exception as e:CODE
LOW…es/autogen-studio/autogenstudio/database/db_manager.py193 except Exception as e:CODE
LOW…es/autogen-studio/autogenstudio/database/db_manager.py237 except Exception as e:CODE
LOW…es/autogen-studio/autogenstudio/database/db_manager.py276 except Exception as e:CODE
LOW…es/autogen-studio/autogenstudio/database/db_manager.py308 except Exception as e:CODE
LOW…es/autogen-studio/autogenstudio/database/db_manager.py344 except Exception as e:CODE
LOW…es/autogen-studio/autogenstudio/database/db_manager.py350 except Exception as e:CODE
LOW…es/autogen-studio/autogenstudio/database/db_manager.py372 except Exception as e:CODE
LOW…utogen-studio/autogenstudio/database/schema_manager.py68 except Exception as e:CODE
LOW…utogen-studio/autogenstudio/database/schema_manager.py136 except Exception as e:CODE
LOW…utogen-studio/autogenstudio/database/schema_manager.py256 except Exception as e:CODE
LOW…utogen-studio/autogenstudio/database/schema_manager.py308 except Exception as e:CODE
LOW…utogen-studio/autogenstudio/database/schema_manager.py413 except Exception as e:CODE
LOW…utogen-studio/autogenstudio/database/schema_manager.py433 except Exception as e:CODE
LOW…utogen-studio/autogenstudio/database/schema_manager.py474 except Exception as e:CODE
LOW…utogen-studio/autogenstudio/database/schema_manager.py555 except Exception as e:CODE
LOW…utogen-studio/autogenstudio/teammanager/teammanager.py74 except Exception as e:CODE
LOW…thon/packages/autogen-studio/autogenstudio/web/deps.py44 except Exception as e:CODE
LOW…thon/packages/autogen-studio/autogenstudio/web/deps.py108 except Exception as e:CODE
LOW…thon/packages/autogen-studio/autogenstudio/web/deps.py170 except Exception as e:CODE
LOW…thon/packages/autogen-studio/autogenstudio/web/deps.py186 except Exception as e:CODE
LOW…thon/packages/autogen-studio/autogenstudio/web/deps.py200 except Exception as e:CODE
154 more matches not shown…
Cross-File Repetition46 hits · 230 pts
SeverityFileLineSnippetContext
HIGHCONTRIBUTING.md0this subscription matches on topics based on the type and maps to agents using the source of the topic as the agent key.STRING
HIGH…gen-core/src/autogen_core/_type_prefix_subscription.py0this subscription matches on topics based on the type and maps to agents using the source of the topic as the agent key.STRING
HIGH…es/autogen-core/src/autogen_core/_type_subscription.py0this subscription matches on topics based on the type and maps to agents using the source of the topic as the agent key.STRING
HIGH…ang_hello_python_agent/protos/agent_events_pb2_grpc.py0client and server classes corresponding to protobuf-defined services.STRING
HIGH…togen-core/tests/protos/serialization_test_pb2_grpc.py0client and server classes corresponding to protobuf-defined services.STRING
HIGH…utogen-ext/tests/protos/serialization_test_pb2_grpc.py0client and server classes corresponding to protobuf-defined services.STRING
HIGH…utogen_ext/runtimes/grpc/protos/cloudevent_pb2_grpc.py0client and server classes corresponding to protobuf-defined services.STRING
HIGH…ogen_ext/runtimes/grpc/protos/agent_worker_pb2_grpc.py0client and server classes corresponding to protobuf-defined services.STRING
HIGH…ang_hello_python_agent/protos/agent_events_pb2_grpc.py0client and server classes corresponding to protobuf-defined services.STRING
HIGHpython/samples/task_centric_memory/eval_retrieval.py0runs the code example with the necessary components.STRING
HIGHpython/samples/task_centric_memory/eval_teachability.py0runs the code example with the necessary components.STRING
HIGH…thon/samples/task_centric_memory/eval_self_teaching.py0runs the code example with the necessary components.STRING
HIGH…ask_centric_memory/eval_learning_from_demonstration.py0runs the code example with the necessary components.STRING
HIGH…ench/benchmarks/GAIA/Templates/MagenticOne/scenario.py0we have completed the following task: {prompt} the above messages contain the conversation that took place to complete tSTRING
HIGH…h/benchmarks/GAIA/Templates/ParallelAgents/scenario.py0we have completed the following task: {prompt} the above messages contain the conversation that took place to complete tSTRING
HIGH…enchmarks/GAIA/Templates/SelectorGroupChat/scenario.py0we have completed the following task: {prompt} the above messages contain the conversation that took place to complete tSTRING
HIGH…packages/autogen-ext/tests/memory/test_redis_memory.py0test updating model context with retrieved memories.STRING
HIGHpython/packages/autogen-ext/tests/memory/test_mem0.py0test updating model context with retrieved memories.STRING
HIGH…ackages/autogen-ext/tests/memory/test_chroma_memory.py0test updating model context with retrieved memories.STRING
HIGHpython/packages/autogen-ext/tests/memory/test_mem0.py0test serialization and deserialization of component.STRING
HIGH…ackages/autogen-ext/tests/memory/test_chroma_memory.py0test serialization and deserialization of component.STRING
HIGH…utogen-ext/tests/models/test_anthropic_model_client.py0test serialization and deserialization of component.STRING
HIGH…s/autogen-ext/tests/models/test_openai_model_client.py0test tool_choice parameter with a specific tool using mocks.STRING
HIGH…autogen-ext/tests/models/test_azure_ai_model_client.py0test tool_choice parameter with a specific tool using mocks.STRING
HIGH…utogen-ext/tests/models/test_anthropic_model_client.py0test tool_choice parameter with a specific tool using mocks.STRING
HIGH…s/autogen-ext/tests/models/test_openai_model_client.py0test tool_choice parameter with 'auto' setting using mocks.STRING
HIGH…autogen-ext/tests/models/test_azure_ai_model_client.py0test tool_choice parameter with 'auto' setting using mocks.STRING
HIGH…utogen-ext/tests/models/test_anthropic_model_client.py0test tool_choice parameter with 'auto' setting using mocks.STRING
HIGH…gen-ext/tests/task_centric_memory/test_teachability.py0tests memory using the components specified in the config file. by default, mode is "replay", which uses a pre-recorded STRING
HIGH…ask_centric_memory/test_learning_from_demonstration.py0tests memory using the components specified in the config file. by default, mode is "replay", which uses a pre-recorded STRING
HIGH…en-ext/tests/task_centric_memory/test_self_teaching.py0tests memory using the components specified in the config file. by default, mode is "replay", which uses a pre-recorded STRING
HIGH…ext/src/autogen_ext/agents/file_surfer/_file_surfer.py0ensure that the messages are compatible with the underlying client, by removing images if needed.STRING
HIGH…tchat/src/autogen_agentchat/agents/_assistant_agent.py0ensure that the messages are compatible with the underlying client, by removing images if needed.STRING
HIGH…t/src/autogen_agentchat/agents/_code_executor_agent.py0ensure that the messages are compatible with the underlying client, by removing images if needed.STRING
HIGH…group_chat/_magentic_one/_magentic_one_orchestrator.py0ensure that the messages are compatible with the underlying client, by removing images if needed.STRING
HIGH…n-ext/src/autogen_ext/models/azure/_azure_ai_client.py0llms sometimes ask functions while ignoring their own format requirements, this function should be used to replace invalSTRING
HIGH…n_ext/models/llama_cpp/_llama_cpp_completion_client.py0llms sometimes ask functions while ignoring their own format requirements, this function should be used to replace invalSTRING
HIGH…en-ext/src/autogen_ext/models/ollama/_ollama_client.py0llms sometimes ask functions while ignoring their own format requirements, this function should be used to replace invalSTRING
HIGH…en-ext/src/autogen_ext/models/openai/_openai_client.py0llms sometimes ask functions while ignoring their own format requirements, this function should be used to replace invalSTRING
HIGH…n-ext/src/autogen_ext/models/azure/_azure_ai_client.py0ensure that configured names are valid, raises valueerror if not. for munging llm responses use _normalize_name to ensurSTRING
HIGH…n_ext/models/llama_cpp/_llama_cpp_completion_client.py0ensure that configured names are valid, raises valueerror if not. for munging llm responses use _normalize_name to ensurSTRING
HIGH…en-ext/src/autogen_ext/models/ollama/_ollama_client.py0ensure that configured names are valid, raises valueerror if not. for munging llm responses use _normalize_name to ensurSTRING
HIGH…es/autogen-ext/src/autogen_ext/models/openai/_utils.py0ensure that configured names are valid, raises valueerror if not. for munging llm responses use _normalize_name to ensurSTRING
HIGH…xt/src/autogen_ext/models/anthropic/config/__init__.py0what functionality the model supports, determined by default from model name but is overriden if value passed.STRING
HIGH…n-ext/src/autogen_ext/models/ollama/config/__init__.py0what functionality the model supports, determined by default from model name but is overriden if value passed.STRING
HIGH…n-ext/src/autogen_ext/models/openai/config/__init__.py0what functionality the model supports, determined by default from model name but is overriden if value passed.STRING
Hallucination Indicators23 hits · 225 pts
SeverityFileLineSnippetContext
CRITICALpython/packages/agbench/src/agbench/run_cmd.py20from azure.core.exceptions import ClientAuthenticationErrorCODE
CRITICAL…ackages/agbench/src/agbench/linter/coders/oai_coder.py54 completion = self.client.beta.chat.completions.parse(CODE
CRITICAL…ackages/agbench/src/agbench/linter/coders/oai_coder.py159 completion = self.client.beta.chat.completions.parse(STRING
CRITICAL…end/src/components/views/teambuilder/builder/store.tsx387 teamNode.data.component.config.participants.push(CODE
CRITICAL…end/src/components/views/teambuilder/builder/store.tsx461 participants: node.data.component.config.participants.map(CODE
CRITICAL…end/src/components/views/teambuilder/builder/store.tsx538 teamNode.data.component.config.participants.filter(CODE
CRITICAL…s/autogen-ext/tests/tools/azure/test_ai_search_tool.py20from azure.core.exceptions import HttpResponseError, ResourceNotFoundErrorCODE
CRITICAL…/autogen-ext/src/autogen_ext/tools/azure/_ai_search.py25from azure.core.exceptions import HttpResponseError, ResourceNotFoundErrorCODE
CRITICAL…c/autogen_ext/agents/openai/_openai_assistant_agent.py345 msgs: AsyncCursorPage[Message] = await self._client.beta.threads.messages.list( # type: ignore[reportDeprecCODE
CRITICAL…c/autogen_ext/agents/openai/_openai_assistant_agent.py419 self._client.beta.threads.runs.create( # type: ignore[reportDeprecated]CODE
CRITICAL…c/autogen_ext/agents/openai/_openai_assistant_agent.py430 self._client.beta.threads.runs.retrieve( # type: ignore[reportDeprecated]CODE
CRITICAL…c/autogen_ext/agents/openai/_openai_assistant_agent.py483 self._client.beta.threads.runs.submit_tool_outputs( # type: ignore[reportDeprecated]CODE
CRITICAL…c/autogen_ext/agents/openai/_openai_assistant_agent.py500 self._client.beta.threads.messages.list(thread_id=self._thread_id, order="desc", limit=1) # type: ignorCODE
CRITICAL…c/autogen_ext/agents/openai/_openai_assistant_agent.py538 self._client.beta.threads.messages.create( # type: ignore[reportDeprecated]CODE
CRITICAL…c/autogen_ext/agents/openai/_openai_assistant_agent.py556 self._client.beta.threads.messages.list(self._thread_id, after=after, order="asc", limit=100) # typCODE
CRITICAL…c/autogen_ext/agents/openai/_openai_assistant_agent.py570 self._client.beta.threads.messages.delete(message_id=msg_id, thread_id=self._thread_id) # type: ignCODE
CRITICAL…en-ext/src/autogen_ext/models/openai/_openai_client.py684 self._client.beta.chat.completions.parse(CODE
CRITICAL…en-ext/src/autogen_ext/models/openai/_openai_client.py1118 async with self._client.beta.chat.completions.stream(CODE
CRITICALdocs/dotnet/core/index.md89var autogenBackend = await Microsoft.AutoGen.RuntimeGateway.Grpc.Host.StartAsync(local: false, useGrpc: true).ConfigureACODE
CRITICALdotnet/samples/Hello/HelloAIAgents/Program.cs27var app = await Microsoft.AutoGen.Core.Grpc.AgentsApp.PublishMessageAsync("HelloAgents", new NewMessageReceivedCODE
CRITICALdotnet/samples/Hello/HelloAgentState/Program.cs12var app = await Microsoft.AutoGen.Core.Grpc.AgentsApp.PublishMessageAsync("HelloAgents", new NewMessageReceivedCODE
CRITICALdotnet/src/Microsoft.AutoGen/Core.Grpc/RpcExtensions.cs39 var any = Google.Protobuf.WellKnownTypes.Any.Parser.ParseFrom(data);CODE
CRITICALdotnet/src/Microsoft.AutoGen/AgentHost/Program.cs5var app = await Microsoft.AutoGen.RuntimeGateway.Grpc.Host.StartAsync(local: false, useGrpc: true).ConfigureAwait(false)CODE
Over-Commented Block192 hits · 188 pts
SeverityFileLineSnippetContext
LOW…_streaming_handoffs_fastapi/model_config_template.yaml1# Use Open AI with keyCOMMENT
LOW…_streaming_handoffs_fastapi/model_config_template.yaml21# azure_ad_token_provider:COMMENT
LOW…n/samples/agentchat_fastapi/model_config_template.yaml1# Use Open AI with keyCOMMENT
LOW…n/samples/agentchat_fastapi/model_config_template.yaml21# azure_ad_token_provider:COMMENT
LOW…core_async_human_in_the_loop/model_config_template.yml1# Use Open AI with keyCOMMENT
LOW…core_async_human_in_the_loop/model_config_template.yml21# azure_ad_token_provider:COMMENT
LOW…amples/agentchat_chess_game/model_config_template.yaml1# Use Open AI with keyCOMMENT
LOW…amples/agentchat_chess_game/model_config_template.yaml21# azure_endpoint: https://{your-custom-endpoint}.openai.azure.com/COMMENT
LOW…_streaming_response_fastapi/model_config_template.yaml1# Use Open AI with keyCOMMENT
LOW…_streaming_response_fastapi/model_config_template.yaml21# azure_ad_token_provider:COMMENT
LOW…/samples/agentchat_graphrag/model_config_template.yaml1# Use Open AI with keyCOMMENT
LOW…/samples/agentchat_graphrag/model_config_template.yaml21# azure_ad_token_provider:COMMENT
LOW…thon/samples/core_chess_game/model_config_template.yml1# Use Open AI with keyCOMMENT
LOW…thon/samples/core_chess_game/model_config_template.yml21# azure_ad_token_provider:COMMENT
LOWpython/samples/core_chainlit/model_config_template.yaml1# Use Open AI with keyCOMMENT
LOWpython/samples/core_chainlit/model_config_template.yaml21# azure_ad_token_provider:COMMENT
LOW…/samples/agentchat_chainlit/model_config_template.yaml1# Use Open AI with keyCOMMENT
LOW…/samples/agentchat_chainlit/model_config_template.yaml21# azure_ad_token_provider:COMMENT
LOWpython/packages/agbench/benchmarks/HumanEval/ENV.yaml1# ENV.yaml COMMENT
LOWpython/packages/agbench/benchmarks/HumanEval/ENV.yaml21# config:COMMENT
LOW…thon/packages/agbench/benchmarks/HumanEval/config.yaml1# config.yamlCOMMENT
LOW…thon/packages/agbench/benchmarks/HumanEval/config.yaml21# config:COMMENT
LOWpython/packages/agbench/benchmarks/GAIA/ENV.yaml1# ENV.yaml COMMENT
LOWpython/packages/agbench/benchmarks/GAIA/ENV.yaml21# config:COMMENT
LOWpython/packages/agbench/benchmarks/GAIA/config.yaml1# config.yamlCOMMENT
LOWpython/packages/agbench/benchmarks/GAIA/config.yaml21# config:COMMENT
LOW…n/packages/autogen-studio/autogenstudio/eval/judges.py221# api_key="your-api-key"COMMENT
LOW…n/packages/autogen-studio/autogenstudio/eval/judges.py241# ),COMMENT
LOW…n/packages/autogen-studio/autogenstudio/eval/judges.py261# "messages": [{"content": "The capital of France is Paris.", "source": "model"}]COMMENT
LOWpython/packages/autogen-studio/frontend/tsconfig.json21 // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory funcCOMMENT
LOWpython/packages/autogen-studio/frontend/tsconfig.json41 // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */COMMENT
LOWpython/packages/autogen-studio/frontend/tsconfig.json61 // "newLine": "crlf", /* Set the newline character for emitting files. */COMMENT
LOWpython/packages/autogen-studio/frontend/tsconfig.json81 // "strictBindCallApply": true, /* Check that the arguments for `bind`, `call`, and `apply` metCOMMENT
LOW…dio/frontend/src/components/views/settings/manager.tsx81 // ),COMMENT
LOW…/frontend/src/components/views/settings/view/panel.tsx41 // setLoading(true);COMMENT
LOW…-studio/frontend/src/components/views/gallery/types.ts1import { Gallery } from "../../types/datamodel";COMMENT
LOW…teambuilder/builder/component-editor/fields/fields.tsx161 }COMMENT
LOW…utogen-studio/frontend/src/components/views/mcp/api.ts601 // ) {COMMENT
LOW…thon/packages/autogen-ext/tests/test_worker_runtime.py681 assert agent.num_calls == 4COMMENT
LOW…hon/packages/autogen-ext/tests/tools/test_mcp_actor.py181 with pytest.raises(ValueError, match="uri is required for read_resource"):COMMENT
LOW…hon/packages/autogen-ext/tests/tools/test_mcp_actor.py201# # Give it a brief moment to queue the commandCOMMENT
LOW…hon/packages/autogen-ext/tests/tools/test_mcp_actor.py221# actor._command_queue = original_queue # type: ignore[reportPrivateUsage]COMMENT
LOW…hon/packages/autogen-ext/tests/tools/test_mcp_actor.py241# actor._actor_task = MagicMock() # type: ignore[reportPrivateUsage]COMMENT
LOW…hon/packages/autogen-ext/tests/tools/test_mcp_actor.py341 mock_context = MagicMock(spec=RequestContext)COMMENT
LOW…hon/packages/autogen-ext/tests/tools/test_mcp_actor.py361# }COMMENT
LOW…hon/packages/autogen-ext/tests/tools/test_mcp_actor.py381# assert result.code == mcp_types.INVALID_PARAMSCOMMENT
LOW…hon/packages/autogen-ext/tests/tools/test_mcp_actor.py921COMMENT
LOW…utogen-ext/tests/models/test_llama_cpp_model_client.py121COMMENT
LOW…utogen-ext/tests/models/test_llama_cpp_model_client.py221# repo_id="unsloth/phi-4-GGUF", filename="phi-4-Q2_K_L.gguf", n_gpu_layers=-1, seed=1337, n_ctx=5000COMMENT
LOW…utogen-ext/tests/models/test_llama_cpp_model_client.py241# if not ((hasattr(torch.backends, "mps") and torch.backends.mps.is_available()) or torch.cuda.is_available()):COMMENT
LOW…utogen-ext/tests/models/test_llama_cpp_model_client.py261# reflect_on_tool_use=True, # Reflect on tool resultsCOMMENT
LOW…n-ext/src/autogen_ext/runtimes/grpc/_worker_runtime.py201COMMENT
LOW…gen_ext/runtimes/grpc/_worker_runtime_host_servicer.py361 # context: grpc.aio.ServicerContext[agent_worker_pb2.AgentId, agent_worker_pb2.SaveStateResponse],COMMENT
LOW…gen-ext/src/autogen_ext/agents/openai/_openai_agent.py341 # {COMMENT
LOW.devcontainer/docker-compose.yml21 # - SYS_PTRACECOMMENT
LOWdotnet/dotnet-install.sh1#!/usr/bin/env bashCOMMENT
LOW…ests/Infrastructure/DistributedApplicationExtension.cs201 /// <summary>COMMENT
LOW…ests/Infrastructure/DistributedApplicationExtension.cs241#pragma warning restore ASPIREHOSTINGPYTHON001COMMENT
LOW…en.RuntimeGateway.Grpc.Tests/Helpers/AgentsMetadata.cs1// Copyright (c) Microsoft Corporation. All rights reserved.COMMENT
LOW…teway.Grpc.Tests/Helpers/Grpc/TestAsyncStreamReader.cs1#pragma warning disable IDE0073COMMENT
132 more matches not shown…
Docstring Block Structure37 hits · 185 pts
SeverityFileLineSnippetContext
HIGH…ogen-studio/autogenstudio/gallery/tools/bing_search.py24 Perform a Bing search using the Bing Web Search API. Args: query: Search query string num_resuSTRING
HIGH…en-studio/autogenstudio/gallery/tools/fetch_webpage.py14Fetch a webpage and convert it to markdown format. Args: url: The URL of the webpage to fetch incluSTRING
HIGH…ore/src/autogen_core/_single_threaded_agent_runtime.py289Create OpenTelemetry attributes for the given agent and message. Args: sender_agent (Agent, optionaSTRING
HIGH…ackages/autogen-core/src/autogen_core/_subscription.py50Map a topic_id to an agent. Should only be called if `is_match` returns True for the given topic_id. Args: STRING
HIGH…kages/autogen-core/src/autogen_core/_function_utils.py221Get a JSON schema for a function as defined by the OpenAI API Args: f: The function to get the JSON schema STRING
HIGHpython/packages/autogen-core/src/autogen_core/_agent.py34Message handler for the agent. This should only be called by the runtime, not by other agents. Args: STRING
HIGH…ges/autogen-core/src/autogen_core/_component_config.py208Load a component from a model. Intended to be used with the return type of :py:meth:`autogen_core.ComponentConfig.dump_cSTRING
HIGH…ckages/autogen-core/src/autogen_core/_agent_runtime.py31Send a message to an agent and get a response. Args: message (Any): The message to send. STRING
HIGH…ckages/autogen-core/src/autogen_core/_agent_runtime.py189Try to get the underlying agent instance by name and namespace. This is generally discouraged (hence the long name), butSTRING
HIGH…utogen-core/src/autogen_core/tool_agent/_tool_agent.py64Handles a `FunctionCall` message by executing the requested tool with the provided arguments. Args: STRING
HIGH…togen-core/src/autogen_core/utils/_json_to_pydantic.py378 Convert a JSON Schema dictionary to a fully-typed Pydantic model. This function handles schema translation andSTRING
HIGH…s/autogen-core/src/autogen_core/code_executor/_base.py57Execute code blocks and return the result. This method should be implemented by the code executor. ArgSTRING
HIGH…kages/autogen-ext/examples/mcp_session_host_example.py48Load a ChatCompletionClient from a JSON or YAML config file. Args: config_path: Path to the JSON or YAML coSTRING
HIGH…/autogen-ext/src/autogen_ext/tools/azure/_ai_search.py359Process credential to ensure it's the correct type for async SearchClient. Converts dictionary credentials withSTRING
HIGH…/autogen-ext/src/autogen_ext/tools/azure/_ai_search.py418Execute a search against the Azure AI Search index. Args: args: Search query text or SearchQuery obSTRING
HIGH…/autogen-ext/src/autogen_ext/tools/azure/_ai_search.py896Create a tool for pure vector/similarity search. This factory method creates an AzureAISearchTool optimized forSTRING
HIGH…/autogen-ext/src/autogen_ext/tools/azure/_ai_search.py1028Create a tool that combines vector and text search capabilities. This factory method creates an AzureAISearchToSTRING
HIGH…ackages/autogen-ext/src/autogen_ext/tools/mcp/_base.py58 Run the MCP tool with the provided arguments. Args: args (BaseModel): The arguments to pasSTRING
HIGH…ackages/autogen-ext/src/autogen_ext/tools/mcp/_base.py133 Create an instance of McpToolAdapter from server parameters and tool name. Args: server_paSTRING
HIGH…ages/autogen-ext/src/autogen_ext/tools/mcp/_factory.py14Creates a list of MCP tool adapters that can be used with AutoGen agents. .. warning:: Only connect to truSTRING
HIGH…es/autogen-ext/src/autogen_ext/tools/mcp/_workbench.py48A workbench that wraps an MCP server and provides an interface to list and call tools provided by the server. .STRING
HIGH…togen-ext/src/autogen_ext/tools/mcp/_host/_sampling.py28Convert MCP content types to AutoGen content types. Handles text and image content conversion, with vision model vaSTRING
HIGH…togen-ext/src/autogen_ext/tools/mcp/_host/_sampling.py59Convert MCP sampling messages to AutoGen LLM messages. Args: message: MCP sampling message with role and coSTRING
HIGH…s/autogen-ext/src/autogen_ext/tools/http/_http_tool.py197Execute the HTTP tool with the given arguments. Args: args: The validated input arguments STRING
HIGH…en-ext/src/autogen_ext/agents/azure/_azure_ai_agent.py543 Execute a tool call requested by the Azure AI agent. Args: tool_call (FunctionCall): The fSTRING
HIGH…en-ext/src/autogen_ext/agents/azure/_azure_ai_agent.py572 Upload files to the Azure AI Assistant API. This method handles uploading one or more files to be usedSTRING
HIGH…en-ext/src/autogen_ext/agents/azure/_azure_ai_agent.py627 Process incoming messages and return a response from the Azure AI agent. This method is the primary enSTRING
HIGH…en-ext/src/autogen_ext/agents/azure/_azure_ai_agent.py658 Process incoming messages and yield streaming responses from the Azure AI agent. This method handles tSTRING
HIGH…en_ext/models/replay/_replay_chat_completion_client.py33 A mock chat completion client that replays predefined responses using an index-based approach. This class simuSTRING
HIGH…es/autogen-agentchat/src/autogen_agentchat/messages.py269:meta private: A component that creates structured chat messages from Pydantic models or JSON schemas. This coSTRING
HIGH…tchat/src/autogen_agentchat/agents/_assistant_agent.py91An agent that provides assistance with tool use. The :meth:`on_messages` returns a :class:`~autogen_agentchat.base.RSTRING
HIGH…en_agentchat/teams/_group_chat/_selector_group_chat.py363A group chat team that have participants takes turn to publish a message to all, using a ChatCompletion model to selSTRING
HIGH…agentchat/teams/_group_chat/_round_robin_group_chat.py97A team that runs a group chat with participants taking turns in a round-robin fashion to publish a message to all. STRING
HIGH…/_group_chat/_magentic_one/_magentic_one_group_chat.py37A team that runs a group chat with participants managed by the MagenticOneOrchestrator. The orchestrator handles thSTRING
HIGH…n_agentchat/teams/_group_chat/_graph/_graph_builder.py120Add a directed edge from source to target, optionally with a condition. Args: source: Source node (STRING
HIGH…ntchat/teams/_group_chat/_graph/_digraph_group_chat.py552A team that runs a group chat following a Directed Graph execution pattern. .. warning:: This is an experiSTRING
HIGH…n-agentchat/src/autogen_agentchat/base/_termination.py60Check if the conversation should be terminated based on the messages received since the last time the condition STRING
Deep Nesting178 hits · 164 pts
SeverityFileLineSnippetContext
LOWpython/check_md_code_blocks.py17CODE
LOWpython/check_md_code_blocks.py38CODE
LOWpython/docs/src/generate_api_reference.py48CODE
LOWpython/docs/src/generate_api_reference.py65CODE
LOWpython/docs/src/generate_api_reference.py145CODE
LOWpython/docs/src/conf.py186CODE
LOWpython/docs/src/_extension/code_lint.py52CODE
LOW…/samples/core_streaming_handoffs_fastapi/agent_base.py48CODE
LOWpython/samples/core_streaming_handoffs_fastapi/app.py194CODE
LOWpython/samples/agentchat_fastapi/app_team.py96CODE
LOWpython/samples/gitty/src/gitty/__main__.py42CODE
LOWpython/samples/core_chainlit/app_team.py160CODE
LOWpython/samples/agentchat_chainlit/app_team.py68CODE
LOW…thon/samples/agentchat_chainlit/app_team_user_proxy.py108CODE
LOWpython/packages/agbench/benchmarks/process_logs.py84CODE
LOW…ges/agbench/benchmarks/GAIA/Scripts/custom_tabulate.py36CODE
LOW…h/benchmarks/GAIA/Templates/ParallelAgents/scenario.py154CODE
LOW…h/benchmarks/GAIA/Templates/ParallelAgents/scenario.py70CODE
LOW…enchmarks/GAIA/Templates/SelectorGroupChat/scenario.py25CODE
LOW…enchmarks/GAIA/Templates/SelectorGroupChat/scenario.py144CODE
LOW…hon/packages/agbench/src/agbench/remove_missing_cmd.py31CODE
LOWpython/packages/agbench/src/agbench/tabulate_cmd.py68CODE
LOWpython/packages/agbench/src/agbench/run_cmd.py59CODE
LOWpython/packages/agbench/src/agbench/run_cmd.py181CODE
LOWpython/packages/agbench/src/agbench/run_cmd.py269CODE
LOWpython/packages/agbench/src/agbench/run_cmd.py342CODE
LOWpython/packages/agbench/src/agbench/run_cmd.py869CODE
LOWpython/packages/agbench/src/agbench/run_cmd.py353CODE
LOWpython/packages/agbench/src/agbench/run_cmd.py364CODE
LOW…es/autogen-studio/autogenstudio/database/db_manager.py108CODE
LOW…es/autogen-studio/autogenstudio/database/db_manager.py165CODE
LOW…es/autogen-studio/autogenstudio/database/db_manager.py245CODE
LOW…utogen-studio/autogenstudio/database/schema_manager.py47CODE
LOW…utogen-studio/autogenstudio/teammanager/teammanager.py109CODE
LOW…utogen-studio/autogenstudio/teammanager/teammanager.py154CODE
LOW…n/packages/autogen-studio/autogenstudio/lite/studio.py52CODE
LOW…thon/packages/autogen-studio/autogenstudio/web/deps.py261CODE
LOW…ckages/autogen-studio/autogenstudio/web/auth/wsauth.py17CODE
LOW…kages/autogen-studio/autogenstudio/web/auth/manager.py28CODE
LOW…es/autogen-studio/autogenstudio/web/auth/middleware.py88CODE
LOW…utogen-studio/autogenstudio/web/managers/connection.py85CODE
LOW…utogen-studio/autogenstudio/web/managers/connection.py282CODE
LOW…utogen-studio/autogenstudio/web/managers/connection.py344CODE
LOW…es/autogen-studio/autogenstudio/web/routes/sessions.py66CODE
LOW…packages/autogen-studio/autogenstudio/web/routes/ws.py21CODE
LOW…ackages/autogen-studio/autogenstudio/web/routes/mcp.py134CODE
LOW…ogen-studio/autogenstudio/gallery/tools/bing_search.py13CODE
LOW…en-studio/autogenstudio/gallery/tools/google_search.py12CODE
LOW…togen-studio/autogenstudio/gallery/tools/calculator.py4CODE
LOW…n/packages/autogen-studio/autogenstudio/utils/utils.py10CODE
LOW…on/packages/autogen-studio/autogenstudio/mcp/client.py63CODE
LOW…/packages/autogen-studio/autogenstudio/mcp/wsbridge.py137CODE
LOW…hon/packages/autogen-studio/autogenstudio/mcp/utils.py42CODE
LOW…n/packages/autogen-studio/autogenstudio/eval/judges.py174CODE
LOW…ages/autogen-studio/autogenstudio/eval/orchestrator.py120CODE
LOW…ages/autogen-studio/autogenstudio/eval/orchestrator.py202CODE
LOW…ages/autogen-studio/autogenstudio/eval/orchestrator.py520CODE
LOW…ages/autogen-studio/autogenstudio/eval/orchestrator.py697CODE
LOW…/packages/autogen-studio/autogenstudio/eval/runners.py157CODE
LOW…-studio/autogenstudio/validation/validation_service.py114CODE
118 more matches not shown…
Structural Annotation Overuse69 hits · 146 pts
SeverityFileLineSnippetContext
LOW⚡…s/autogen-ext/tests/models/test_openai_model_client.py495 # Step 1: Mock the Image class with only the 'image' attributeCOMMENT
LOW⚡…ask_centric_memory/sessions/self_teaching/session.json262 "content": "### Step 1: Understanding the User Message\n\nThe user presents a classic logic puzzle often referred CODE
LOW⚡…ask_centric_memory/sessions/self_teaching/session.json286 "### Step 1: Understanding the User Message\n\nThe user presents a classic logic puzzle often referred to as tCODE
LOW…ask_centric_memory/sessions/self_teaching/session.json704 "content": "### Step 1: Understanding the User Message\n\nThe user has presented a classic liar puzzle. The scenarCODE
LOW…ask_centric_memory/sessions/self_teaching/session.json728 "### Step 1: Understanding the User Message\n\nThe user has presented a classic liar puzzle. The scenario invoCODE
LOW⚡…es/autogen-agentchat/tests/test_code_executor_agent.py217 # Step 1: First code generationCOMMENT
LOW⚡…es/autogen-agentchat/tests/test_code_executor_agent.py224 # Step 2: First code executionCOMMENT
LOW⚡…es/autogen-agentchat/tests/test_code_executor_agent.py231 # Step 3: Retry generation with proposed correctionCOMMENT
LOW⚡…es/autogen-agentchat/tests/test_code_executor_agent.py239 # Step 4: Second retry code generationCOMMENT
LOW⚡…es/autogen-agentchat/tests/test_code_executor_agent.py246 # Step 5: Second retry code executionCOMMENT
LOW⚡…es/autogen-agentchat/tests/test_code_executor_agent.py253 # Step 6: Final responseCOMMENT
LOW⚡…t/src/autogen_agentchat/agents/_code_executor_agent.py549 # Step 1: Add new user/handoff messages to the model contextCOMMENT
LOW⚡…t/src/autogen_agentchat/agents/_code_executor_agent.py555 # Step 2: Run inference with the model contextCOMMENT
LOW⚡…t/src/autogen_agentchat/agents/_code_executor_agent.py579 # Step 4: Add the assistant message to the model context (including thought if present)COMMENT
LOW⚡…t/src/autogen_agentchat/agents/_code_executor_agent.py588 # Step 5: Extract the code blocks from inferred textCOMMENT
LOW⚡…t/src/autogen_agentchat/agents/_code_executor_agent.py592 # Step 6: Exit the loop if no code blocks foundCOMMENT
LOW⚡…t/src/autogen_agentchat/agents/_code_executor_agent.py602 # Step 7: Yield a CodeGenerationEventCOMMENT
LOW⚡…t/src/autogen_agentchat/agents/_code_executor_agent.py612 # Step 8: Execute the extracted code blocksCOMMENT
LOW⚡…t/src/autogen_agentchat/agents/_code_executor_agent.py615 # Step 9: Update model context with the code execution resultCOMMENT
LOW⚡…t/src/autogen_agentchat/agents/_code_executor_agent.py623 # Step 10: Yield a CodeExecutionEventCOMMENT
LOW⚡…t/src/autogen_agentchat/agents/_code_executor_agent.py630 # Step 11: If exit code is non-zero and retries are available thenCOMMENT
LOW…n.RuntimeGateway.Grpc.Tests/GrpcGatewayServiceTests.cs61 // Step 4: Verify that the agent receives the control messageCOMMENT
LOW⚡dotnet/website/tutorial/Image-chat-with-agent.md16## Step 1: Install AutoGenCOMMENT
LOW⚡dotnet/website/tutorial/Image-chat-with-agent.md24## Step 2: Add Using StatementsCOMMENT
LOW⚡dotnet/website/tutorial/Image-chat-with-agent.md28## Step 3: Create an @AutoGen.OpenAI.OpenAIChatAgentCOMMENT
LOW⚡dotnet/website/tutorial/Image-chat-with-agent.md32## Step 4: Prepare Image MessageCOMMENT
LOW⚡dotnet/website/tutorial/Image-chat-with-agent.md42## Step 5: Generate ResponseCOMMENT
LOW…utorial/Use-AutoGen.Net-agent-as-model-in-AG-Studio.md36## Step 3: Start the web appCOMMENT
LOW…utorial/Use-AutoGen.Net-agent-as-model-in-AG-Studio.md48## Step 4: In another terminal, start autogen-studioCOMMENT
LOW…utorial/Use-AutoGen.Net-agent-as-model-in-AG-Studio.md54## Step 5: Navigate to AutoGen Studio UI and add hello world agent as openai ModelCOMMENT
LOW…utorial/Use-AutoGen.Net-agent-as-model-in-AG-Studio.md70## Step 6: Create a hello world agent that uses the hello world modelCOMMENT
LOW⚡dotnet/website/tutorial/Chat-with-an-agent.md16## Step 1: Install AutoGenCOMMENT
LOW⚡dotnet/website/tutorial/Chat-with-an-agent.md24## Step 2: add Using StatementsCOMMENT
LOW⚡dotnet/website/tutorial/Chat-with-an-agent.md28## Step 3: Create an @AutoGen.OpenAI.OpenAIChatAgentCOMMENT
LOW⚡dotnet/website/tutorial/Chat-with-an-agent.md36## Step 4: Generate ResponseCOMMENT
LOW⚡…site/articles/AutoGen.Gemini/Image-chat-with-gemini.md9### Step 1: Install AutoGen.GeminiCOMMENT
LOW⚡…site/articles/AutoGen.Gemini/Image-chat-with-gemini.md17### Step 2: Add using statementCOMMENT
LOW⚡…site/articles/AutoGen.Gemini/Image-chat-with-gemini.md20### Step 3: Create a Gemini agentCOMMENT
LOW⚡…site/articles/AutoGen.Gemini/Image-chat-with-gemini.md24### Step 4: Send image to GeminiCOMMENT
LOW⚡…ite/articles/AutoGen.Gemini/Chat-with-google-gemini.md13### Step 1: Install AutoGen.GeminiCOMMENT
LOW⚡…ite/articles/AutoGen.Gemini/Chat-with-google-gemini.md21### Step 2: Add using statementCOMMENT
LOW⚡…ite/articles/AutoGen.Gemini/Chat-with-google-gemini.md25### Step 3: Create a Gemini agentCOMMENT
LOW⚡…ite/articles/AutoGen.Gemini/Chat-with-google-gemini.md29### Step 4: Chat with GeminiCOMMENT
LOW⚡…ite/articles/AutoGen.Gemini/Chat-with-vertex-gemini.md13### Step 1: Install AutoGen.GeminiCOMMENT
LOW⚡…ite/articles/AutoGen.Gemini/Chat-with-vertex-gemini.md21### Step 2: Add using statementCOMMENT
LOW⚡…ite/articles/AutoGen.Gemini/Chat-with-vertex-gemini.md25### Step 3: Create a Gemini agentCOMMENT
LOW⚡…ite/articles/AutoGen.Gemini/Chat-with-vertex-gemini.md30### Step 4: Chat with GeminiCOMMENT
LOW…e/articles/AutoGen.Gemini/Function-call-with-gemini.md9### Step 1: Install AutoGen.Gemini and AutoGen.SourceGeneratorCOMMENT
LOW⚡…e/articles/AutoGen.Gemini/Function-call-with-gemini.md20### Step 2: Add using statementCOMMENT
LOW⚡…e/articles/AutoGen.Gemini/Function-call-with-gemini.md23### Step 3: Create `MovieFunction`COMMENT
LOW⚡…e/articles/AutoGen.Gemini/Function-call-with-gemini.md27### Step 4: Create a Gemini agentCOMMENT
LOW⚡…e/articles/AutoGen.Gemini/Function-call-with-gemini.md31### Step 5: Single turn function callCOMMENT
LOW⚡…e/articles/AutoGen.Gemini/Function-call-with-gemini.md35### Step 6: Multi-turn function callCOMMENT
LOW⚡….SemanticKernel/SemanticKernelChatAgent-simple-chat.md8### Step 1: add using statementCOMMENT
LOW⚡….SemanticKernel/SemanticKernelChatAgent-simple-chat.md11### Step 2: create kernelCOMMENT
LOW⚡….SemanticKernel/SemanticKernelChatAgent-simple-chat.md14### Step 3: create ChatCompletionAgentCOMMENT
LOW⚡….SemanticKernel/SemanticKernelChatAgent-simple-chat.md17### Step 4: create @AutoGen.SemanticKernel.SemanticKernelChatCompletionAgentCOMMENT
LOW⚡….SemanticKernel/SemanticKernelChatAgent-simple-chat.md21### Step 5: chat with @AutoGen.SemanticKernel.SemanticKernelChatCompletionAgentCOMMENT
LOW⚡…en.SemanticKernel/Use-kernel-plugin-in-other-agents.md8### Step 1: add using statementCOMMENT
LOW⚡…en.SemanticKernel/Use-kernel-plugin-in-other-agents.md11### Step 2: create pluginCOMMENT
9 more matches not shown…
Decorative Section Separators32 hits · 130 pts
SeverityFileLineSnippetContext
MEDIUM⚡…autogen-ext/tests/tools/azure/test_ai_search_config.py14# =====================================COMMENT
MEDIUM⚡…autogen-ext/tests/tools/azure/test_ai_search_config.py16# =====================================COMMENT
MEDIUM⚡…autogen-ext/tests/tools/azure/test_ai_search_config.py93# =====================================COMMENT
MEDIUM⚡…autogen-ext/tests/tools/azure/test_ai_search_config.py95# =====================================COMMENT
MEDIUM⚡…autogen-ext/tests/tools/azure/test_ai_search_config.py173# =====================================COMMENT
MEDIUM⚡…autogen-ext/tests/tools/azure/test_ai_search_config.py175# =====================================COMMENT
MEDIUM⚡…autogen-ext/tests/tools/azure/test_ai_search_config.py217# =====================================COMMENT
MEDIUM⚡…autogen-ext/tests/tools/azure/test_ai_search_config.py219# =====================================COMMENT
MEDIUM…es/autogen-ext/tests/memory/test_text_canvas_memory.py13# ── Fixtures ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡…es/autogen-ext/tests/memory/test_text_canvas_memory.py39# ── Tests ────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡…ackages/autogen-ext/tests/memory/test_chroma_memory.py277# ============================================================================COMMENT
MEDIUM⚡…ackages/autogen-ext/tests/memory/test_chroma_memory.py279# ============================================================================COMMENT
MEDIUM⚡…ogen-ext/src/autogen_ext/memory/canvas/_text_canvas.py39 # ----------------------------------------------------------------------------------COMMENT
MEDIUM⚡…ogen-ext/src/autogen_ext/memory/canvas/_text_canvas.py41 # ----------------------------------------------------------------------------------COMMENT
MEDIUM⚡…ogen-ext/src/autogen_ext/memory/canvas/_text_canvas.py49 # ----------------------------------------------------------------------------------COMMENT
MEDIUM⚡…ogen-ext/src/autogen_ext/memory/canvas/_text_canvas.py51 # ----------------------------------------------------------------------------------COMMENT
MEDIUM⚡…ogen-ext/src/autogen_ext/memory/canvas/_text_canvas.py61 # ----------------------------------------------------------------------------------COMMENT
MEDIUM⚡…ogen-ext/src/autogen_ext/memory/canvas/_text_canvas.py63 # ----------------------------------------------------------------------------------COMMENT
MEDIUM…ogen-ext/src/autogen_ext/memory/canvas/_text_canvas.py95 # ----------------------------------------------------------------------------------COMMENT
MEDIUM…ogen-ext/src/autogen_ext/memory/canvas/_text_canvas.py97 # ----------------------------------------------------------------------------------COMMENT
MEDIUM⚡…ogen-ext/src/autogen_ext/memory/canvas/_text_canvas.py181 # ----------------------------------------------------------------------------------COMMENT
MEDIUM⚡…ogen-ext/src/autogen_ext/memory/canvas/_text_canvas.py183 # ----------------------------------------------------------------------------------COMMENT
MEDIUM…utogen_ext/agents/web_surfer/_multimodal_web_surfer.py606 # ===================================================COMMENT
MEDIUM…/src/autogen_agentchat/agents/_message_filter_agent.py10# ------------------------------COMMENT
MEDIUM…/src/autogen_agentchat/agents/_message_filter_agent.py12# ------------------------------COMMENT
MEDIUM⚡…/src/autogen_agentchat/agents/_message_filter_agent.py25# ------------------------------COMMENT
MEDIUM⚡…/src/autogen_agentchat/agents/_message_filter_agent.py27# ------------------------------COMMENT
MEDIUM⚡…/src/autogen_agentchat/agents/_message_filter_agent.py36# ------------------------------COMMENT
MEDIUM⚡…/src/autogen_agentchat/agents/_message_filter_agent.py38# ------------------------------COMMENT
MEDIUM…/Microsoft.AutoGen/AgentChat/Abstractions/ChatAgent.cs52 # ================================================COMMENT
MEDIUM…/Microsoft.AutoGen/AgentChat/Abstractions/ChatAgent.cs63 # ================================================COMMENT
MEDIUM…/Microsoft.AutoGen/AgentChat/Abstractions/ChatAgent.cs77 # ================================================COMMENT
Redundant / Tautological Comments89 hits · 130 pts
SeverityFileLineSnippetContext
LOWpython/run_task_in_pkgs_if_exist.py44 # Check if there is an include tooCOMMENT
LOWpython/docs/redirects/redirects.py44 # Read fileCOMMENT
LOWpython/docs/src/generate_api_reference.py55 # Check if this package is in our documented packages listCOMMENT
LOWpython/docs/src/conf.py207 # Print the output for visibilityCOMMENT
LOW⚡python/samples/core_streaming_handoffs_fastapi/app.py229 if content: # Check if file is not emptyCODE
LOWpython/samples/agentchat_chess_game/main.py86 # Check if the response is a valid UC move.COMMENT
LOWpython/samples/agentchat_chess_game/main.py92 # Check if the move is legal.COMMENT
LOW⚡python/samples/agentchat_chess_game/main.py113 # Check if the game is over.COMMENT
LOW⚡python/samples/agentchat_graphrag/app.py35 # Check if OPENAI_API_KEY is setCOMMENT
LOWpython/packages/agbench/benchmarks/process_logs.py156 # Check if the agent stalledCOMMENT
LOW…ges/agbench/benchmarks/HumanEval/Scripts/init_tasks.py70 # Read the file, line by line, populating a list of parsed JSON objectsCOMMENT
LOWpython/packages/agbench/src/agbench/run_cmd.py660 # Check if we need to terminateSTRING
LOW…n/packages/autogen-studio/autogenstudio/lite/studio.py177 # Check if already runningCOMMENT
LOW…thon/packages/autogen-studio/autogenstudio/web/deps.py94 # Check if auth is explicitly disabled via environment variableCOMMENT
LOW…hon/packages/autogen-studio/autogenstudio/web/serve.py18 # Check if team_file_path is setCOMMENT
LOW…kages/autogen-studio/autogenstudio/web/auth/manager.py63 # Check if path should be excluded from authCOMMENT
LOW…ages/autogen-studio/autogenstudio/eval/orchestrator.py319 # Check if run is already activeCOMMENT
LOW…ages/autogen-studio/autogenstudio/eval/orchestrator.py503 # Check if run is activeCOMMENT
LOW…dio/autogenstudio/validation/component_test_service.py58 # Check if we got a valid responseCOMMENT
LOW…hon/packages/autogen-studio/tests/test_team_manager.py91 # Check if at least one team has expected labelCOMMENT
LOWpython/packages/autogen-core/tests/test_runtime.py192 # Check if logger has the exception.COMMENT
LOW…autogen-core/src/autogen_core/_runtime_impl_helpers.py43 # Check if the subscription already existsCOMMENT
LOW…autogen-core/src/autogen_core/_runtime_impl_helpers.py51 # Check if the subscription existsCOMMENT
LOW…togen-core/src/autogen_core/tools/_static_workbench.py101 # Check if the name is an override name and map it back to the originalCOMMENT
LOW…/autogen-core/src/autogen_core/tools/_function_tool.py78 # Output the result as a formatted string.STRING
LOW…hon/packages/autogen-ext/tests/tools/test_mcp_tools.py629 # Check if GITHUB_TOKEN is set.COMMENT
LOW…utogen-ext/tests/tools/graphrag/test_graphrag_tools.py192 # Check if the log contains the expected messageCOMMENT
LOW…utogen-ext/tests/tools/graphrag/test_graphrag_tools.py256 # Check if the log contains the expected messageCOMMENT
LOW…s/autogen-ext/tests/models/test_openai_model_client.py2152 # Check if the model is running locally.COMMENT
LOW…ext/tests/models/test_ollama_chat_completion_client.py480 # Check if the model is running locally.COMMENT
LOW…ts/code_executors/test_docker_jupyter_code_executor.py123 # Check if the file was createdSTRING
LOW…ode_executors/test_docker_commandline_code_executor.py149 # Check if the file was not createdSTRING
LOW⚡…tests/code_executors/test_commandline_code_executor.py203 # Check if the file is not created.STRING
LOW…tests/code_executors/test_commandline_code_executor.py305 # Check if the expected venv has been usedSTRING
LOW…tests/code_executors/test_commandline_code_executor.py361 # Check if the expected venv has been usedSTRING
LOW…/experimental/task_centric_memory/memory_controller.py175 # Check if the response is correct.COMMENT
LOW…/experimental/task_centric_memory/utils/page_logger.py411 # Check if it's a method by looking for 'self' or 'cls' in f_localsCOMMENT
LOW…es/autogen-ext/src/autogen_ext/tools/mcp/_workbench.py332 # Check if the name is an override name and map it back to the originalCOMMENT
LOW…kages/autogen-ext/src/autogen_ext/memory/mem0/_mem0.py250 # Check if operation is cancelledCOMMENT
LOW…kages/autogen-ext/src/autogen_ext/memory/mem0/_mem0.py290 # Check if operation is cancelledCOMMENT
LOW…togen_ext/agents/file_surfer/_markdown_file_browser.py82 # Check if the path is within the base pathCOMMENT
LOW…en-ext/src/autogen_ext/agents/azure/_azure_ai_agent.py1027 # Check if file_search is enabled in toolsCOMMENT
LOW…utogen_ext/agents/web_surfer/_multimodal_web_surfer.py654 # Check if the argument starts with a known protocolCOMMENT
LOW…c/autogen_ext/agents/openai/_openai_assistant_agent.py631 # Check if file_search is enabled in toolsCOMMENT
LOW…/models/semantic_kernel/_sk_chat_completion_adapter.py311 # Check if it's a function-call style messageCOMMENT
LOW…/models/semantic_kernel/_sk_chat_completion_adapter.py668 # Check if the model signaled tool_calls finishedCOMMENT
LOW⚡…/src/autogen_ext/models/anthropic/_anthropic_client.py530 # Check if thinking is specified in extra_create_args (priority)COMMENT
LOW⚡…/src/autogen_ext/models/anthropic/_anthropic_client.py533 # Check if thinking is specified in base create_argsCOMMENT
LOW…/src/autogen_ext/models/anthropic/_anthropic_client.py356 # Check if the tool has a valid nameCOMMENT
LOW…/src/autogen_ext/models/anthropic/_anthropic_client.py704 # Check if the response includes tool usesCOMMENT
LOW…/src/autogen_ext/models/anthropic/_anthropic_client.py844 # Check if any message is a tool resultCOMMENT
LOW…n_ext/models/llama_cpp/_llama_cpp_completion_client.py108 # Check if all tools have valid names.COMMENT
LOW…en-ext/src/autogen_ext/models/ollama/_ollama_client.py345 # Check if all tools have valid names.COMMENT
LOW…en-ext/src/autogen_ext/models/openai/_openai_client.py268 # Check if all tools have valid names.COMMENT
LOW…xt/src/autogen_ext/models/openai/_message_transform.py203 # Check if name should be included in messageCOMMENT
LOW…/autogen-ext/src/autogen_ext/code_executors/_common.py163 # Check if pwsh is available, otherwise fall back to powershellCOMMENT
LOW…gen_ext/code_executors/docker/_docker_code_executor.py344 # Check if there is a filename commentCOMMENT
LOW…gen_ext/code_executors/docker/_docker_code_executor.py517 # Check if the image existsCOMMENT
LOW…gen_ext/code_executors/docker/_docker_code_executor.py530 # Check if a container with the same name already exists and remove itCOMMENT
LOW…gen_ext/code_executors/docker/_docker_code_executor.py562 # Check if the container is runningCOMMENT
29 more matches not shown…
Modern Structural Boilerplate111 hits · 109 pts
SeverityFileLineSnippetContext
LOWpython/check_md_code_blocks.py13logger = logging.getLogger(__name__)CODE
LOWpython/docs/src/_extension/code_lint.py16logger = logging.getLogger(__name__)CODE
LOWpython/docs/src/_extension/gallery_directive.py22logger = logging.getLogger(__name__)CODE
LOWpython/samples/agentchat_fastapi/app_team.py19logger = logging.getLogger(__name__)CODE
LOWpython/samples/gitty/src/gitty/__init__.py3__all__ = ["main"]CODE
LOWpython/samples/gitty/src/gitty/_db.py29def update_issue(db_path: str, number: int, title: str, updatedAt: str, content: str) -> None:STRING
LOWpython/samples/gitty/src/gitty/_db.py43def update_chroma(gitty_dir: str, db_path: str) -> None:STRING
LOWpython/packages/agbench/src/agbench/linter/__init__.py4__all__ = ["Code", "Document", "CodedDocument", "BaseQualitativeCoder"]CODE
LOW…thon/packages/autogen-studio/autogenstudio/__init__.py6__all__ = ["DatabaseManager", "Team", "TeamManager", "__version__"]CODE
LOW…ages/autogen-studio/autogenstudio/database/__init__.py3__all__ = [CODE
LOW…utogen-studio/autogenstudio/database/schema_manager.py72 def _update_configuration(self) -> None:CODE
LOW…utogen-studio/autogenstudio/database/schema_manager.py260 def _update_env_py(self, env_path: Path) -> None:CODE
LOW…s/autogen-studio/autogenstudio/teammanager/__init__.py3__all__ = ["TeamManager"]CODE
LOW…utogen-studio/autogenstudio/teammanager/teammanager.py21logger = logging.getLogger(__name__)CODE
LOW…packages/autogen-studio/autogenstudio/lite/__init__.py3__all__ = ["LiteStudio"]CODE
LOW…thon/packages/autogen-studio/autogenstudio/web/deps.py18logger = logging.getLogger(__name__)CODE
LOW…ages/autogen-studio/autogenstudio/web/auth/__init__.py9__all__ = [CODE
LOW…utogen-studio/autogenstudio/web/managers/connection.py39logger = logging.getLogger(__name__)CODE
LOW…utogen-studio/autogenstudio/web/managers/connection.py424 async def _update_run_status(self, run_id: int, status: RunStatus, error: Optional[str] = None) -> None:CODE
LOW…kages/autogen-studio/autogenstudio/gallery/__init__.py3__all__ = ["GalleryBuilder", "create_default_gallery"]CODE
LOW…autogen-studio/autogenstudio/gallery/tools/__init__.py7__all__ = [CODE
LOW…/packages/autogen-studio/autogenstudio/mcp/wsbridge.py92 def set_mcp_client(self, mcp_client: MCPClient) -> None:CODE
LOW…ages/autogen-studio/autogenstudio/eval/orchestrator.py568 async def _update_run_status(self, run_id: str, status: EvalRunStatus) -> None:CODE
LOW…ages/autogen-studio/autogenstudio/eval/orchestrator.py592 async def _update_run_result(self, run_id: str, run_result: EvalRunResult) -> None:CODE
LOW…ages/autogen-studio/autogenstudio/eval/orchestrator.py616 async def _update_score_result(self, run_id: str, score_result: EvalScore) -> None:CODE
LOW…ages/autogen-studio/autogenstudio/eval/orchestrator.py640 async def _update_run_completed(self, run_id: str, start_time: datetime, end_time: datetime) -> None:CODE
LOW…ages/autogen-studio/autogenstudio/eval/orchestrator.py669 async def _update_run_error(self, run_id: str, error_message: str) -> None:CODE
LOW…ges/autogen-studio/autogenstudio/datamodel/__init__.py16__all__ = [CODE
LOW…ackages/autogen-core/src/autogen_core/_intervention.py6__all__ = [CODE
LOW…hon/packages/autogen-core/src/autogen_core/__init__.py87__all__ = [CODE
LOW…n/packages/autogen-core/src/autogen_core/exceptions.py1__all__ = ["CantHandleException", "UndeliverableException", "MessageDroppedException", "NotAccessibleError"]CODE
LOW…ckages/autogen-core/src/autogen_core/tools/__init__.py15__all__ = [CODE
LOW…kages/autogen-core/src/autogen_core/memory/__init__.py4__all__ = [CODE
LOW…s/autogen-core/src/autogen_core/_telemetry/__init__.py15__all__ = [CODE
LOW…s/autogen-core/src/autogen_core/tool_agent/__init__.py10__all__ = [CODE
LOW…utogen-core/src/autogen_core/tool_agent/_tool_agent.py9__all__ = [CODE
LOW…utogen-core/src/autogen_core/model_context/__init__.py9__all__ = [CODE
LOW…ckages/autogen-core/src/autogen_core/utils/__init__.py4__all__ = ["schema_to_pydantic_model", "extract_json_from_str"]CODE
LOW…kages/autogen-core/src/autogen_core/models/__init__.py22__all__ = [CODE
LOW…utogen-core/src/autogen_core/code_executor/__init__.py11__all__ = [CODE
LOW…packages/autogen-ext/tests/mcp_server_comprehensive.py26logger = logging.getLogger(__name__)CODE
LOW⚡…ts/agents/test_openai_agent_builtin_tool_validation.py19def set_dummy_openai_key(monkeypatch: MonkeyPatch) -> None:CODE
LOW…kages/autogen-ext/examples/mcp_session_host_example.py43logger = logging.getLogger(__name__)CODE
LOW…on/packages/autogen-ext/src/autogen_ext/ui/__init__.py7__all__ = ["RichConsole"]CODE
LOW…togen_ext/experimental/task_centric_memory/__init__.py4__all__ = ["MemoryController", "MemoryControllerConfig", "MemoryBankConfig"]CODE
LOW…ext/experimental/task_centric_memory/utils/__init__.py7__all__ = [CODE
LOW…utogen-ext/src/autogen_ext/tools/langchain/__init__.py3__all__ = ["LangChainToolAdapter"]CODE
LOW…es/autogen-ext/src/autogen_ext/tools/azure/__init__.py11__all__ = [CODE
LOW…/autogen-ext/src/autogen_ext/tools/azure/_ai_search.py44logger = logging.getLogger(__name__)CODE
LOW…/autogen-ext/src/autogen_ext/tools/azure/_ai_search.py74__all__ = [CODE
LOW…/autogen-ext/src/autogen_ext/tools/azure/_ai_search.py84logger = logging.getLogger(__name__)CODE
LOW…ges/autogen-ext/src/autogen_ext/tools/azure/_config.py23logger = logging.getLogger(__name__)CODE
LOW…autogen-ext/src/autogen_ext/tools/graphrag/__init__.py12__all__ = [CODE
LOW…ages/autogen-ext/src/autogen_ext/tools/mcp/__init__.py23__all__ = [CODE
LOW…ckages/autogen-ext/src/autogen_ext/tools/mcp/_actor.py18logger = logging.getLogger(__name__)CODE
LOW…utogen-ext/src/autogen_ext/tools/mcp/_host/__init__.py6__all__ = [CODE
LOW…ges/autogen-ext/src/autogen_ext/tools/http/__init__.py3__all__ = ["HttpTool"]CODE
LOW…-ext/src/autogen_ext/tools/semantic_kernel/__init__.py3__all__ = [CODE
LOW…n-ext/src/autogen_ext/tools/code_execution/__init__.py3__all__ = ["CodeExecutionInput", "CodeExecutionResult", "PythonCodeExecutionTool"]CODE
LOW…utogen-ext/src/autogen_ext/memory/chromadb/__init__.py12__all__ = [CODE
51 more matches not shown…
Magic Placeholder Names14 hits · 70 pts
SeverityFileLineSnippetContext
HIGH…on/docs/src/user-guide/autogenstudio-user-guide/faq.md44 api_key="your-api-key", # Optional if ANTHROPIC_API_KEY is set in environmentCODE
HIGH…on/docs/src/user-guide/autogenstudio-user-guide/faq.md104 "api_key": "your-api-key"CODE
HIGHpython/samples/gitty/src/gitty/__main__.py18 print(" export OPENAI_API_KEY='your-api-key'")CODE
HIGHpython/samples/agentchat_graphrag/README.md43export OPENAI_API_KEY='your-api-key-here'CODE
HIGH⚡python/samples/agentchat_graphrag/app.py39 print("Please run: export OPENAI_API_KEY='your-api-key-here'")CODE
HIGH…ckages/autogen-studio/autogenstudio/gallery/builder.py546 headers={"Authorization": "Bearer your-api-key", "Content-Type": "application/json"},CODE
HIGH⚡…n/packages/autogen-studio/autogenstudio/eval/judges.py221# api_key="your-api-key"COMMENT
HIGH…ckages/autogen-studio/autogenstudio/datamodel/types.py108 model="gpt-4o-mini", api_key="your-api-key"CODE
HIGH…tend/src/components/views/gallery/default_gallery.json1158 "Authorization": "Bearer your-api-key",CODE
HIGH…kages/autogen-ext/examples/mcp_session_host_example.py179 "api_key": "your-api-key"CODE
HIGH…packages/autogen-ext/src/autogen_ext/tools/mcp/_sse.py63 headers={"Authorization": "Bearer your-api-key", "Content-Type": "application/json"},STRING
HIGH…ogen-ext/src/autogen_ext/tools/mcp/_streamable_http.py64 headers={"Authorization": "Bearer your-api-key", "Content-Type": "application/json"},STRING
HIGH⚡…c/autogen_ext/agents/openai/_openai_assistant_agent.py145 client = AsyncOpenAI(api_key="your-api-key", base_url="your-base-url")STRING
HIGH…/src/autogen_ext/models/anthropic/_anthropic_client.py1211 api_key="your-api-key", # Optional if ANTHROPIC_API_KEY is set in environmentSTRING
Verbosity Indicators24 hits · 48 pts
SeverityFileLineSnippetContext
LOW⚡…s/autogen-ext/tests/models/test_openai_model_client.py495 # Step 1: Mock the Image class with only the 'image' attributeCOMMENT
LOW⚡…ask_centric_memory/sessions/self_teaching/session.json262 "content": "### Step 1: Understanding the User Message\n\nThe user presents a classic logic puzzle often referred CODE
LOW⚡…ask_centric_memory/sessions/self_teaching/session.json286 "### Step 1: Understanding the User Message\n\nThe user presents a classic logic puzzle often referred to as tCODE
LOW…ask_centric_memory/sessions/self_teaching/session.json704 "content": "### Step 1: Understanding the User Message\n\nThe user has presented a classic liar puzzle. The scenarCODE
LOW…ask_centric_memory/sessions/self_teaching/session.json728 "### Step 1: Understanding the User Message\n\nThe user has presented a classic liar puzzle. The scenario invoCODE
LOW…en-ext/src/autogen_ext/models/openai/_openai_client.py1015 # Because the usage chunk is not guaranteed to be the last chunk, we need to check if it is available.COMMENT
LOW⚡…es/autogen-agentchat/tests/test_code_executor_agent.py217 # Step 1: First code generationCOMMENT
LOW⚡…es/autogen-agentchat/tests/test_code_executor_agent.py224 # Step 2: First code executionCOMMENT
LOW⚡…es/autogen-agentchat/tests/test_code_executor_agent.py231 # Step 3: Retry generation with proposed correctionCOMMENT
LOW⚡…es/autogen-agentchat/tests/test_code_executor_agent.py239 # Step 4: Second retry code generationCOMMENT
LOW⚡…es/autogen-agentchat/tests/test_code_executor_agent.py246 # Step 5: Second retry code executionCOMMENT
LOW⚡…es/autogen-agentchat/tests/test_code_executor_agent.py253 # Step 6: Final responseCOMMENT
LOW⚡…t/src/autogen_agentchat/agents/_code_executor_agent.py549 # Step 1: Add new user/handoff messages to the model contextCOMMENT
LOW⚡…t/src/autogen_agentchat/agents/_code_executor_agent.py555 # Step 2: Run inference with the model contextCOMMENT
LOW⚡…t/src/autogen_agentchat/agents/_code_executor_agent.py573 # Step 3: [NEW] If the model produced a hidden "thought," yield it as an eventCOMMENT
LOW⚡…t/src/autogen_agentchat/agents/_code_executor_agent.py579 # Step 4: Add the assistant message to the model context (including thought if present)COMMENT
LOW⚡…t/src/autogen_agentchat/agents/_code_executor_agent.py588 # Step 5: Extract the code blocks from inferred textCOMMENT
LOW⚡…t/src/autogen_agentchat/agents/_code_executor_agent.py592 # Step 6: Exit the loop if no code blocks foundCOMMENT
LOW⚡…t/src/autogen_agentchat/agents/_code_executor_agent.py602 # Step 7: Yield a CodeGenerationEventCOMMENT
LOW⚡…t/src/autogen_agentchat/agents/_code_executor_agent.py612 # Step 8: Execute the extracted code blocksCOMMENT
LOW⚡…t/src/autogen_agentchat/agents/_code_executor_agent.py615 # Step 9: Update model context with the code execution resultCOMMENT
LOW⚡…t/src/autogen_agentchat/agents/_code_executor_agent.py623 # Step 10: Yield a CodeExecutionEventCOMMENT
LOW⚡…t/src/autogen_agentchat/agents/_code_executor_agent.py630 # Step 11: If exit code is non-zero and retries are available thenCOMMENT
LOW…n.RuntimeGateway.Grpc.Tests/GrpcGatewayServiceTests.cs61 // Step 4: Verify that the agent receives the control messageCOMMENT
AI Slop Vocabulary17 hits · 31 pts
SeverityFileLineSnippetContext
LOWpython/docs/src/_extension/gallery_directive.py126 # Sphinx Design outputs a container too, so just use thatCOMMENT
LOWpython/samples/core_chainlit/SimpleAssistantAgent.py178 # Message handler for Group chat message. It just add the message to the agent message history.COMMENT
MEDIUM…/HumanEval/Templates/AgentChat/custom_code_executor.py35 # If python, wrap the extracted code in a unit testing harnessCOMMENT
MEDIUM…ckages/autogen-studio/autogenstudio/gallery/builder.py578 # Note: This requires npx to be installed and provides comprehensive MCP testing toolsCOMMENT
LOWpython/packages/autogen-core/tests/test_workbench.py40 # For the regular run method, just return the final resultCOMMENT
MEDIUM…hon/packages/autogen-ext/tests/tools/test_mcp_actor.py51 """Get the expected number of tools by importing and examining the comprehensive server."""STRING
MEDIUM…packages/autogen-ext/tests/memory/test_redis_memory.py505 # test that we can utilize the optional query arguments top_k and distance_thresholdSTRING
LOW…task_centric_memory/sessions/teachability/session.json439 "content": "As a contribution to autogen, can I create a new autogen package for a copilot extension agent that CODE
MEDIUM…task_centric_memory/sessions/teachability/session.json446 "content": "### Understanding of the User Message\n\nYou have developed a copilot extension agent using the AutogeCODE
MEDIUM…task_centric_memory/sessions/teachability/session.json470 "### Understanding of the User Message\n\nYou have developed a copilot extension agent using the Autogen frameCODE
MEDIUM⚡…ask_centric_memory/sessions/self_teaching/session.json262 "content": "### Step 1: Understanding the User Message\n\nThe user presents a classic logic puzzle often referred CODE
MEDIUM⚡…ask_centric_memory/sessions/self_teaching/session.json286 "### Step 1: Understanding the User Message\n\nThe user presents a classic logic puzzle often referred to as tCODE
LOW…ckages/autogen-ext/src/autogen_ext/ui/_rich_console.py185 # We don't want to print UserInputRequestedEvent messages, we just use them to signal the user input event.COMMENT
LOW…es/autogen-ext/src/autogen_ext/tools/mcp/_workbench.py355 # For now we just use text representation.COMMENT
MEDIUM…togen_ext/agents/file_surfer/_markdown_file_browser.py251 # Not robust to TOCTOU issues.COMMENT
MEDIUM…ckages/autogen-agentchat/tests/test_assistant_agent.py3010 """Test suite for comprehensive workbench testing."""STRING
LOW…autogen-agentchat/src/autogen_agentchat/ui/_console.py167 # We don't want to print UserInputRequestedEvent messages, we just use them to signal the user input event.COMMENT
Cross-Language Confusion5 hits · 30 pts
SeverityFileLineSnippetContext
HIGH⚡python/samples/agentchat_chess_game/main.py112 board.push(chess.Move.from_uci(ai_move))CODE
HIGH⚡python/samples/agentchat_chess_game/main.py122 board.push(chess.Move.from_uci(user_move))CODE
HIGHpython/samples/core_chess_game/main.py124 board.push(new_move)CODE
HIGH…hon/packages/autogen-ext/tests/tools/test_mcp_tools.py279 == '[{"type": "text", "text": "this is a sample text", "annotations": {"audience": ["user", "assistant"], "priorCODE
HIGH…/experimental/task_centric_memory/utils/page_logger.py426 self.page_stack.push(page)CODE
Overly Generic Function Names27 hits · 26 pts
SeverityFileLineSnippetContext
LOW⚡python/packages/autogen-core/tests/test_tools.py147 def my_function(arg: str = "default") -> MyResult:CODE
LOW⚡python/packages/autogen-core/tests/test_tools.py242 def my_function() -> str:CODE
LOW⚡python/packages/autogen-core/tests/test_tools.py252 def my_function() -> Annotated[str, "The return type"]:CODE
LOW⚡python/packages/autogen-core/tests/test_tools.py262 def my_function() -> "str":CODE
LOW⚡python/packages/autogen-core/tests/test_tools.py272 def my_function(arg: str) -> None:CODE
LOW⚡python/packages/autogen-core/tests/test_tools.py283 def my_function(arg: str, arg2: int) -> None:CODE
LOW⚡python/packages/autogen-core/tests/test_tools.py294 def my_function(arg: "str") -> None:CODE
LOW⚡python/packages/autogen-core/tests/test_tools.py304 def my_function(arg: Annotated[str, "An arg"]) -> None:CODE
LOW⚡python/packages/autogen-core/tests/test_tools.py314 def my_function() -> str:CODE
LOW⚡python/packages/autogen-core/tests/test_tools.py394 def my_function() -> str:CODE
LOW⚡python/packages/autogen-core/tests/test_tools.py404 def my_function() -> MyResult:CODE
LOW⚡python/packages/autogen-core/tests/test_tools.py415 def my_function(arg: str) -> MyResult:CODE
LOW⚡python/packages/autogen-core/tests/test_tools.py426 def my_function(arg: str) -> str:CODE
LOW⚡python/packages/autogen-core/tests/test_tools.py436 def my_function(arg: str) -> MyResult:CODE
LOW⚡python/packages/autogen-core/tests/test_tools.py453 def my_function(arg: str) -> MyResultCustomDump:CODE
LOW⚡python/packages/autogen-core/tests/test_tools.py463 def my_function(arg: int) -> int:CODE
LOW⚡python/packages/autogen-core/tests/test_tools.py473 def my_function() -> List[int]:CODE
LOWpython/packages/autogen-core/tests/test_tools.py74 def my_function(arg: str, other: Annotated[int, "int arg"], nonrequired: int = 5) -> MyResult:CODE
LOWpython/packages/autogen-core/tests/test_tools.py129 def my_function(arg: str = "default") -> MyResult:CODE
LOWpython/packages/autogen-core/tests/test_tools.py326 def my_function(my_arg: Annotated[str, "test description"]) -> str:CODE
LOWpython/packages/autogen-core/tests/test_tools.py344 def my_function() -> Annotated[str, "test description"]:CODE
LOWpython/packages/autogen-core/tests/test_tools.py356 def my_function() -> str:CODE
LOWpython/packages/autogen-core/tests/test_tools.py369 def my_function() -> None:CODE
LOWpython/packages/autogen-core/tests/test_tools.py381 def my_function() -> MyResult:CODE
LOW…s/autogen-ext/tests/models/test_openai_model_client.py508 def my_function(arg: str, other: Annotated[int, "int arg"], nonrequired: int = 5) -> MyResult:CODE
LOW…n_agentchat/teams/_group_chat/_chat_agent_container.py86 async def handle_request(self, message: GroupChatRequestPublish, ctx: MessageContext) -> None:CODE
LOW…/packages/magentic-one-cli/src/magentic_one_cli/_m1.py109 async def run_task(task: str, hil_mode: bool, use_rich_console: bool) -> None:STRING
Synthetic Comment Markers3 hits · 22 pts
SeverityFileLineSnippetContext
HIGH…allTemplateTests.TestFunctionCallTemplate.approved.txt3// This code was generated by a tool.COMMENT
HIGH…toGen.SourceGenerator/Template/FunctionCallTemplate.cs3// This code was generated by a tool.COMMENT
HIGH…toGen.SourceGenerator/Template/FunctionCallTemplate.cs31// This code was generated by a tool.COMMENT
AI Structural Patterns23 hits · 20 pts
SeverityFileLineSnippetContext
LOWpython/packages/autogen-studio/autogenstudio/cli.py26CODE
LOW…ges/autogen-studio/autogenstudio/web/routes/gallery.py71CODE
LOW…ogen-studio/autogenstudio/gallery/tools/bing_search.py13CODE
LOW…/autogen-ext/src/autogen_ext/tools/azure/_ai_search.py237CODE
LOW…/autogen-ext/src/autogen_ext/tools/azure/_ai_search.py761CODE
LOW…/autogen-ext/src/autogen_ext/tools/azure/_ai_search.py876CODE
LOW…/autogen-ext/src/autogen_ext/tools/azure/_ai_search.py1005CODE
LOW…ogen_ext/runtimes/grpc/protos/agent_worker_pb2_grpc.py153CODE
LOW…ogen_ext/runtimes/grpc/protos/agent_worker_pb2_grpc.py180CODE
LOW…ogen_ext/runtimes/grpc/protos/agent_worker_pb2_grpc.py207CODE
LOW…ogen_ext/runtimes/grpc/protos/agent_worker_pb2_grpc.py234CODE
LOW…ogen_ext/runtimes/grpc/protos/agent_worker_pb2_grpc.py261CODE
LOW…ogen_ext/runtimes/grpc/protos/agent_worker_pb2_grpc.py288CODE
LOW…en-ext/src/autogen_ext/agents/azure/_azure_ai_agent.py288CODE
LOW…utogen_ext/agents/web_surfer/_multimodal_web_surfer.py209CODE
LOW…c/autogen_ext/agents/openai/_openai_assistant_agent.py235CODE
LOW…en-ext/src/autogen_ext/models/openai/_openai_client.py185CODE
LOW…n_ext/code_executors/docker_jupyter/_jupyter_server.py292CODE
LOW…gen_ext/code_executors/docker/_docker_code_executor.py158CODE
LOW…tchat/src/autogen_agentchat/agents/_assistant_agent.py724CODE
LOW…t/src/autogen_agentchat/agents/_code_executor_agent.py428CODE
LOW…en_agentchat/teams/_group_chat/_selector_group_chat.py597CODE
LOW…/_group_chat/_magentic_one/_magentic_one_group_chat.py109CODE
Modern AI Meta-Vocabulary7 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUM…src/user-guide/agentchat-user-guide/migration-guide.md371## RAG AgentCOMMENT
MEDIUM…cs/src/user-guide/agentchat-user-guide/magentic-one.md10[Magentic-One](https://aka.ms/magentic-one-blog) is a generalist multi-agent system for solving open-ended web and file-CODE
MEDIUMpython/samples/core_chess_game/main.py255 # orchestration.COMMENT
MEDIUMpython/packages/autogen-magentic-one/README.md8[Magentic-One](https://aka.ms/magentic-one-blog) is a generalist multi-agent system for solving open-ended web and file-CODE
MEDIUM…utogen_ext/agents/web_surfer/_multimodal_web_surfer.py899 # Grow the buffer (which is added to the prompt) until we overflow the context window or run out of linesCOMMENT
MEDIUM…en-ext/src/autogen_ext/models/anthropic/_model_info.py128# Model token limits (context window size)COMMENT
MEDIUMdocs/dotnet/core/index.md105The [Hello.AppHost project](https://github.com/microsoft/autogen/blob/50d7587a4649504af3bb79ab928b2a3882a1a394/dotnet/saCODE
Fake / Example Data22 hits · 18 pts
SeverityFileLineSnippetContext
LOW…src/user-guide/agentchat-user-guide/migration-guide.md151 api_key="placeholder",CODE
LOW…ackages/autogen-studio/tests/mcp/test_mcp_callbacks.py196 result = ElicitResult(action="accept", content={"name": "John Doe"})CODE
LOW…ackages/autogen-studio/tests/mcp/test_mcp_callbacks.py208 assert result.content == {"name": "John Doe"}CODE
LOW…n/packages/autogen-core/tests/test_json_to_pydantic.py116 "address": {"street": "123 Main St", "city": "Metropolis", "zipcode": "12345"},CODE
LOW…n/packages/autogen-core/tests/test_json_to_pydantic.py198 "address": {"street": "123 Main St", "city": "Metropolis"},CODE
LOW…togen-core/src/autogen_core/utils/_json_to_pydantic.py556 "address": {"street": "123 Main St", "city": "Wonderland", "zipcode": "12345"},STRING
LOW⚡…ts/agents/test_openai_agent_builtin_tool_validation.py23 monkeypatch.setenv("OPENAI_API_KEY", "sk-test-dummy-key")CODE
LOW⚡…ts/agents/test_openai_agent_builtin_tool_validation.py27 os.getenv("OPENAI_API_KEY", "") in ("", "sk-test-dummy-key"),CODE
LOW⚡…s/autogen-ext/tests/models/test_openai_model_client.py3344 api_key="fake_key",CODE
LOW⚡…s/autogen-ext/tests/models/test_openai_model_client.py3352 api_key="fake_key",CODE
LOW⚡…s/autogen-ext/tests/models/test_openai_model_client.py3361 api_key="fake_key",CODE
LOW…s/autogen-ext/tests/models/test_openai_model_client.py2164 api_key="placeholder",CODE
LOW…s/autogen-ext/tests/models/test_openai_model_client.py2639 dummy_client = OpenAIChatCompletionClient(model="claude-3-5-haiku-20241022", api_key="dummy-key")CODE
LOW…s/autogen-ext/tests/models/test_openai_model_client.py3281 api_key="fake_key",CODE
LOW…s/autogen-ext/tests/models/test_openai_model_client.py3292 api_key="fake_key",CODE
LOW…s/autogen-ext/tests/models/test_openai_model_client.py3304 "api_key": "fake_key",CODE
LOW…s/autogen-ext/tests/models/test_openai_model_client.py3321 "api_key": "fake_key",CODE
LOW…s/autogen-ext/tests/models/test_openai_model_client.py3375 "api_key": "fake_key",CODE
LOW⚡…utogen-ext/tests/models/test_anthropic_model_client.py832 dummy_client = AnthropicChatCompletionClient(model="claude-3-5-haiku-20241022", api_key="dummy-key")CODE
LOW…utogen-ext/tests/models/test_anthropic_model_client.py1116 api_key="fake-key",CODE
LOW…utogen-ext/tests/models/test_anthropic_model_client.py1141 api_key="fake-key",CODE
LOW…en-ext/src/autogen_ext/models/openai/_openai_client.py1296 api_key="placeholder",STRING
Slop Phrases9 hits · 16 pts
SeverityFileLineSnippetContext
MEDIUM…frontend/src/components/views/deploy/guides/python.tsx60 description="Here's a simple example of using the TeamManager class from AutoGen Studio in your python code."CODE
MEDIUM…task_centric_memory/sessions/teachability/session.json47 "content": "1. **Understanding the User Message:**\n The user is inquiring about the possibility of creating a nCODE
MEDIUM…task_centric_memory/sessions/teachability/session.json71 "1. **Understanding the User Message:**\n The user is inquiring about the possibility of creating a new packCODE
MEDIUM…es/autogen-ext/src/autogen_ext/tools/mcp/_workbench.py97 Here is a simple example of how to use the workbench with a `mcp-server-fetch` server:STRING
MEDIUM…/models/semantic_kernel/_sk_chat_completion_adapter.py313 # If there's a 'thought' field, you can add that as plain assistant textCOMMENT
LOW…en-ext/src/autogen_ext/models/openai/_openai_client.py1216 # JSON response, make sure to instruct the model to return JSON.STRING
LOW…en-ext/src/autogen_ext/models/openai/_openai_client.py1557 # JSON response, make sure to instruct the model to return JSON.STRING
MEDIUM…s/AgentChat/AutoGen.Basic.Sample/Example08_LMStudio.cs35 // Of course! To calculate the 100th number in the Fibonacci sequence using C#, you can use the following code:`COMMENT
MEDIUM.github/workflows/codeql.yml58 # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize howCOMMENT
Cross-Language Confusion (JS/TS)2 hits · 10 pts
SeverityFileLineSnippetContext
HIGH…frontend/src/components/views/deploy/guides/python.tsx51print(config.model_dump_json())`}CODE
HIGH…frontend/src/components/views/deploy/guides/python.tsx72print(result)`}CODE
Example Usage Blocks4 hits · 7 pts
SeverityFileLineSnippetContext
LOWpython/samples/agentchat_fastapi/app_team.py184# Example usageCOMMENT
LOWpython/samples/agentchat_fastapi/app_agent.py107# Example usageCOMMENT
LOW⚡…n/packages/autogen-studio/autogenstudio/eval/judges.py214# # Usage exampleCOMMENT
LOW…src/Microsoft.AutoGen/Contracts/KVStringParseHelper.cs34 /// Example usage:COMMENT
Dead Code2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUM…thon/packages/autogen-ext/tests/test_azure_ai_agent.py177CODE
MEDIUM…n_ext/models/llama_cpp/_llama_cpp_completion_client.py427CODE