Repository Analysis

microsoft/autogen

A programming framework for agentic AI

18.8 Moderate AI signal View on GitHub
18.8
Adjusted Score
18.8
Raw Score
100%
Time Factor
2026-04-15
Last Push
58,534
Stars
Python
Language
213,192
Lines of Code
1519
Files
2839
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 23HIGH 111MEDIUM 362LOW 2343

Pattern Findings

2839 matches across 22 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers1129 hits · 999 pts
SeverityFileLineSnippet
LOWpython/check_md_code_blocks.py17def extract_python_code_blocks(markdown_file_path: str) -> List[Tuple[str, int]]:
LOWpython/docs/src/generate_api_reference.py201def generate_toctree_from_rst_files(reference_dir: Path) -> Dict[str, List[str]]:
LOWpython/docs/src/generate_api_reference.py224 def sort_modules_hierarchically(modules):
LOWpython/docs/src/_static/custom.js163function enhanceExpandableSections(item, parentLink, parentText, sectionTitle) {
LOWpython/samples/core_distributed-group-chat/_agents.py195async def publish_message_to_ui_and_backend(
LOW…ples/core_streaming_handoffs_fastapi/tools_delegate.py8def transfer_to_issues_and_repairs() -> str:
LOW…ask_centric_memory/eval_learning_from_demonstration.py30async def eval_learning_from_demonstration(
LOWpython/packages/agbench/benchmarks/process_logs.py144def get_number_of_chat_messages(chat_messages_dir):
LOWpython/packages/agbench/benchmarks/process_logs.py201def is_progress_not_being_made(instance_dir):
LOW…/HumanEval/Templates/AgentChat/custom_code_executor.py24 def _extract_markdown_code_blocks(self, markdown_text: str) -> List[CodeBlock]:
LOW…ges/agbench/benchmarks/GAIA/Scripts/custom_tabulate.py16def in_house_normalize_answer(a):
LOW…h/benchmarks/GAIA/Templates/ParallelAgents/scenario.py115def team_specific_agentchat_event_logger_info(msg, *args, **kwargs):
LOW…h/benchmarks/GAIA/Templates/ParallelAgents/scenario.py124def team_specific_core_event_logger_info(msg, *args, **kwargs):
LOW…hon/packages/agbench/src/agbench/remove_missing_cmd.py31def delete_folders_with_missing_results(runlogs_path: str, noconfirm: bool = False) -> None:
LOWpython/packages/agbench/src/agbench/run_cmd.py696def build_default_docker_image(docker_client: docker.DockerClient, image_tag: str) -> None:
LOW…ackages/agbench/src/agbench/linter/coders/oai_coder.py15def remove_control_characters(text: str) -> str:
LOW…es/autogen-studio/autogenstudio/database/db_manager.py312 async def import_teams_from_directory(
LOW…utogen-studio/autogenstudio/database/schema_manager.py88 def _cleanup_existing_alembic(self) -> None:
LOW…utogen-studio/autogenstudio/database/schema_manager.py193 def _generate_alembic_ini_content(self) -> str:
LOW…thon/packages/autogen-studio/autogenstudio/web/deps.py119async def register_auth_dependencies(app: FastAPI, auth_manager: AuthManager) -> None:
LOW…ackages/autogen-studio/autogenstudio/web/routes/mcp.py186async def create_mcp_websocket_connection(request: CreateWebSocketConnectionRequest):
LOW…ckages/autogen-studio/autogenstudio/gallery/builder.py57 def _update_component_metadata(
LOW…/packages/autogen-studio/autogenstudio/mcp/wsbridge.py137 async def _handle_elicitation_response(self, message: Dict[str, Any]) -> None:
LOW…packages/autogen-studio/autogenstudio/mcp/callbacks.py120def create_elicitation_callback(
LOW…o/frontend/src/components/types/component-templates.ts523export function createComponentFromTemplate(
LOW…o/frontend/src/components/types/component-templates.ts555export function getWorkbenchTemplatesForDropdown(): WorkbenchDropdownOption[] {
LOW…o/frontend/src/components/types/component-templates.ts564export function createWorkbenchFromTemplate(
LOW…o/frontend/src/components/types/component-templates.ts599export function createComponentFromTemplateById(
LOW…o/frontend/src/components/types/component-templates.ts615export function getTeamTemplatesForDropdown(): ComponentDropdownOption[] {
LOW…o/frontend/src/components/types/component-templates.ts626export function getAgentTemplatesForDropdown(): ComponentDropdownOption[] {
LOW…o/frontend/src/components/types/component-templates.ts637export function getModelTemplatesForDropdown(): ComponentDropdownOption[] {
LOW…o/frontend/src/components/types/component-templates.ts648export function getToolTemplatesForDropdown(): ComponentDropdownOption[] {
LOW…o/frontend/src/components/types/component-templates.ts659export function getTerminationTemplatesForDropdown(): ComponentDropdownOption[] {
LOW…o/frontend/src/components/types/component-templates.ts663export function createTerminationFromTemplate(
LOW…autogen-studio/frontend/src/components/types/guards.ts191// export function isChatCompletionContextComponent(
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:
LOW…thon/packages/autogen-studio/tests/test_lite_studio.py90def test_init_with_invalid_file() -> None:
LOW…thon/packages/autogen-studio/tests/test_lite_studio.py170def test_stop_with_server_thread(sample_team_file: str) -> None:
LOW…thon/packages/autogen-studio/tests/test_lite_studio.py200def test_start_twice_raises_error(mock_uvicorn: MagicMock, sample_team_file: str) -> None:
LOW…thon/packages/autogen-studio/tests/test_lite_studio.py212def test_init_with_team_object_with_serialization_methods() -> None:
LOW…thon/packages/autogen-studio/tests/test_lite_studio.py237def test_init_with_team_object_model_dump() -> None:
LOW…thon/packages/autogen-studio/tests/test_lite_studio.py254def test_init_with_unsupported_team_object() -> None:
LOW…thon/packages/autogen-studio/tests/test_lite_studio.py266def test_init_with_path_object(tmp_path: Path) -> None:
LOW…thon/packages/autogen-studio/tests/test_lite_studio.py289def test_init_with_component_model() -> None:
LOWpython/packages/autogen-studio/tests/test_db_manager.py62 def test_basic_entity_creation(self, test_db: DatabaseManager, sample_team: Team):
LOWpython/packages/autogen-studio/tests/test_db_manager.py170 def test_initialize_database_scenarios(self, tmp_path, monkeypatch):
LOW…packages/autogen-studio/tests/mcp/test_mcp_wsbridge.py58 async def test_bridge_initialization(self, bridge, mock_websocket):
LOW…packages/autogen-studio/tests/mcp/test_mcp_wsbridge.py82 async def test_on_initialized_event(self, bridge, mock_websocket):
LOW…packages/autogen-studio/tests/mcp/test_mcp_wsbridge.py95 async def test_on_operation_result_event(self, bridge, mock_websocket):
LOW…packages/autogen-studio/tests/mcp/test_mcp_wsbridge.py109 async def test_on_operation_error_event(self, bridge, mock_websocket):
LOW…packages/autogen-studio/tests/mcp/test_mcp_wsbridge.py123 async def test_on_elicitation_request_event(self, bridge, mock_websocket):
LOW…packages/autogen-studio/tests/mcp/test_mcp_wsbridge.py160 async def test_handle_operation_message_without_client(self, bridge, mock_websocket):
LOW…packages/autogen-studio/tests/mcp/test_mcp_wsbridge.py175 async def test_handle_operation_message_with_client(self, bridge, mock_websocket):
LOW…packages/autogen-studio/tests/mcp/test_mcp_wsbridge.py198 async def test_handle_unknown_message_type(self, bridge, mock_websocket):
LOW…packages/autogen-studio/tests/mcp/test_mcp_wsbridge.py213 async def test_handle_elicitation_response_accept(self, bridge, mock_websocket):
LOW…packages/autogen-studio/tests/mcp/test_mcp_wsbridge.py240 async def test_handle_elicitation_response_decline(self, bridge, mock_websocket):
LOW…packages/autogen-studio/tests/mcp/test_mcp_wsbridge.py262 async def test_handle_elicitation_response_missing_request_id(self, bridge, mock_websocket):
LOW…packages/autogen-studio/tests/mcp/test_mcp_wsbridge.py278 async def test_handle_elicitation_response_unknown_request_id(self, bridge, mock_websocket):
LOW…packages/autogen-studio/tests/mcp/test_mcp_wsbridge.py295 async def test_message_loop_with_valid_json(self, bridge, mock_websocket):
LOW…packages/autogen-studio/tests/mcp/test_mcp_wsbridge.py317 async def test_message_loop_with_invalid_json(self, bridge, mock_websocket):
1069 more matches not shown…
Self-Referential Comments292 hits · 758 pts
SeverityFileLineSnippet
MEDIUMpython/docs/redirects/redirects.py14 # Create a new redirect page
MEDIUMpython/docs/redirects/redirects.py26 # Create the path to the redirect page
MEDIUMpython/docs/redirects/redirects.py29 # Create the directory if it doesn't exist
MEDIUMpython/docs/src/_extension/code_lint.py66 # Create a temporary file to store the code block
MEDIUMpython/docs/src/_extension/gallery_directive.py115 # Create the directive string for the grid
MEDIUMpython/samples/core_distributed-group-chat/_types.py71# Define the overall AppConfig model
MEDIUM…/samples/core_streaming_handoffs_fastapi/agent_base.py82 # Create the context for the delegate agent, including the function call and the result.
MEDIUMpython/samples/agentchat_fastapi/app_team.py52 # Create the team.
MEDIUMpython/samples/agentchat_fastapi/app_agent.py46 # Create the assistant agent.
MEDIUM…on/samples/core_semantic_router/run_semantic_router.py85 # Create the agents
MEDIUM…on/samples/core_semantic_router/run_semantic_router.py92 # Create the User Proxy Agent
MEDIUM…on/samples/core_semantic_router/run_semantic_router.py104 # Create the Semantic Router
MEDIUMpython/samples/agentchat_chess_game/main.py15 # Create an agent that can use the model client.
MEDIUMpython/samples/core_streaming_response_fastapi/app.py70 # Create a stream of messages to the model client.
MEDIUMpython/samples/task_centric_memory/eval_retrieval.py93 # Create the necessary components.
MEDIUMpython/samples/task_centric_memory/eval_teachability.py93 # Create the necessary components.
MEDIUM…thon/samples/task_centric_memory/eval_self_teaching.py109 # Create the necessary components.
MEDIUM…mples/task_centric_memory/chat_with_teachable_agent.py9 # Create a client
MEDIUM…mples/task_centric_memory/chat_with_teachable_agent.py12 # Create an instance of Task-Centric Memory, passing minimal parameters for this simple example
MEDIUM…mples/task_centric_memory/chat_with_teachable_agent.py18 # Create an AssistantAgent, and attach teachability as its memory
MEDIUM…ask_centric_memory/eval_learning_from_demonstration.py91 # Create the necessary components.
MEDIUMpython/samples/core_chess_game/main.py147 # Create the board.
MEDIUMpython/samples/core_chainlit/app_team.py95 # Create the assistant agent.
MEDIUMpython/samples/core_chainlit/app_team.py108 # Create the critic agent.
MEDIUMpython/samples/core_chainlit/app_agent.py63 # Create a runtime and save to chainlit session
MEDIUMpython/samples/core_chainlit/app_agent.py70 # Create a queue for output stream data and save to chainlit session
MEDIUMpython/samples/core_chainlit/app_agent.py74 # Create the assistant agent with the get_weather tool.
MEDIUMpython/samples/agentchat_chainlit/app_team.py21 # Create the assistant agent.
MEDIUMpython/samples/agentchat_chainlit/app_team.py29 # Create the critic agent.
MEDIUMpython/samples/agentchat_chainlit/app_agent.py38 # Create the assistant agent with the get_weather tool.
MEDIUM…thon/samples/agentchat_chainlit/app_team_user_proxy.py54 # Create the assistant agent.
MEDIUM…thon/samples/agentchat_chainlit/app_team_user_proxy.py62 # Create the critic agent.
MEDIUM…thon/samples/agentchat_chainlit/app_team_user_proxy.py71 # Create the user proxy agent.
MEDIUM…ges/agbench/benchmarks/HumanEval/Scripts/init_tasks.py67 # Create a BytesIO object from the response content
MEDIUM…ges/agbench/benchmarks/HumanEval/Scripts/init_tasks.py83 # Create a task directory if it doesn't exist
MEDIUM…ges/agbench/benchmarks/HumanEval/Scripts/init_tasks.py87 # Create the jsonl file
MEDIUM…ges/agbench/benchmarks/HumanEval/Scripts/init_tasks.py117 # Create the various combinations of [models] x [templates]
MEDIUM…h/benchmarks/HumanEval/Templates/AgentChat/scenario.py47 # Define a team
MEDIUM…packages/agbench/benchmarks/GAIA/Scripts/init_tasks.py117 # Create the various combinations of [models] x [templates]
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.
MEDIUM…enchmarks/GAIA/Templates/SelectorGroupChat/scenario.py83 # Create the team
MEDIUMpython/packages/agbench/src/agbench/tabulate_cmd.py241 # Create a per-trial summary dataframe
MEDIUMpython/packages/agbench/src/agbench/tabulate_cmd.py263 # Create a dataframe
MEDIUMpython/packages/agbench/src/agbench/run_cmd.py135 # Create a folder to store the results
MEDIUMpython/packages/agbench/src/agbench/run_cmd.py774 # Create a folder to store the results
MEDIUMpython/packages/agbench/src/agbench/run_cmd.py825 # Create a pool of worker processes
MEDIUM…thon/packages/autogen-studio/autogenstudio/web/deps.py277 # Create a default session with this team
MEDIUM…ckages/autogen-studio/autogenstudio/gallery/builder.py292 # Create a complex termination combining multiple conditions
MEDIUM…ckages/autogen-studio/autogenstudio/gallery/builder.py520 # Create a static workbench with basic tools
MEDIUM…ckages/autogen-studio/autogenstudio/gallery/builder.py528 # Create an MCP workbench for fetching web content using mcp-server-fetch
MEDIUM…ckages/autogen-studio/autogenstudio/gallery/builder.py542 # Create an MCP workbench with StreamableHttpServerParams for HTTP-based MCP servers
MEDIUM…ckages/autogen-studio/autogenstudio/gallery/builder.py558 # Create an MCP workbench for filesystem operations
MEDIUM…ckages/autogen-studio/autogenstudio/gallery/builder.py577 # Create an MCP workbench for testing with everything server
MEDIUM…ogen-studio/autogenstudio/gallery/tools/bing_search.py201# Create the Bing search tool
MEDIUM…en-studio/autogenstudio/gallery/tools/google_search.py129# Create the enhanced Google search tool
MEDIUM…n-studio/autogenstudio/gallery/tools/generate_image.py54# Create the image generation tool
MEDIUM…en-studio/autogenstudio/gallery/tools/fetch_webpage.py75# Create the webpage fetching tool
MEDIUM…n/packages/autogen-studio/autogenstudio/eval/judges.py79 # Create a score object
MEDIUM…n/packages/autogen-studio/autogenstudio/eval/judges.py109 # Create the prompt
MEDIUM…n/packages/autogen-studio/autogenstudio/eval/judges.py216# # Create a model client
232 more matches not shown…
Unused Imports491 hits · 471 pts
SeverityFileLineSnippet
LOW…ang_hello_python_agent/protos/agent_events_pb2_grpc.py4
LOWpython/samples/gitty/src/gitty/__init__.py1
LOW…ges/agbench/benchmarks/HumanEval/Scripts/init_tasks.py6
LOW…gbench/benchmarks/HumanEval/Scripts/custom_tabulate.py1
LOW…/HumanEval/Templates/AgentChat/custom_code_executor.py1
LOW…h/benchmarks/HumanEval/Templates/AgentChat/scenario.py2
LOW…ges/agbench/benchmarks/GAIA/Scripts/custom_tabulate.py5
LOW…ges/agbench/benchmarks/GAIA/Scripts/custom_tabulate.py6
LOW…ges/agbench/benchmarks/GAIA/Scripts/custom_tabulate.py7
LOW…ges/agbench/benchmarks/GAIA/Scripts/custom_tabulate.py8
LOW…ges/agbench/benchmarks/GAIA/Scripts/custom_tabulate.py10
LOW…ges/agbench/benchmarks/GAIA/Scripts/custom_tabulate.py11
LOW…ench/benchmarks/GAIA/Templates/MagenticOne/scenario.py8
LOW…ench/benchmarks/GAIA/Templates/MagenticOne/scenario.py10
LOW…ench/benchmarks/GAIA/Templates/MagenticOne/scenario.py15
LOW…h/benchmarks/GAIA/Templates/ParallelAgents/scenario.py12
LOW…h/benchmarks/GAIA/Templates/ParallelAgents/scenario.py15
LOW…h/benchmarks/GAIA/Templates/ParallelAgents/scenario.py27
LOW…h/benchmarks/GAIA/Templates/ParallelAgents/scenario.py32
LOW…h/benchmarks/GAIA/Templates/ParallelAgents/scenario.py32
LOW…h/benchmarks/GAIA/Templates/ParallelAgents/scenario.py45
LOW…enchmarks/GAIA/Templates/SelectorGroupChat/scenario.py11
LOW…enchmarks/GAIA/Templates/SelectorGroupChat/scenario.py13
LOW…enchmarks/GAIA/Templates/SelectorGroupChat/scenario.py19
LOW…enchmarks/GAIA/Templates/SelectorGroupChat/scenario.py20
LOWpython/packages/agbench/src/agbench/__init__.py1
LOWpython/packages/agbench/src/agbench/linter/__init__.py2
LOWpython/packages/agbench/src/agbench/linter/__init__.py2
LOWpython/packages/agbench/src/agbench/linter/__init__.py2
LOWpython/packages/agbench/src/agbench/linter/__init__.py2
LOW…thon/packages/autogen-studio/autogenstudio/__init__.py1
LOW…thon/packages/autogen-studio/autogenstudio/__init__.py2
LOW…thon/packages/autogen-studio/autogenstudio/__init__.py3
LOW…thon/packages/autogen-studio/autogenstudio/__init__.py4
LOW…ages/autogen-studio/autogenstudio/database/__init__.py1
LOW…utogen-studio/autogenstudio/database/schema_manager.py2
LOW…utogen-studio/autogenstudio/database/schema_manager.py8
LOW…utogen-studio/autogenstudio/database/schema_manager.py14
LOW…s/autogen-studio/autogenstudio/teammanager/__init__.py1
LOW…packages/autogen-studio/autogenstudio/lite/__init__.py1
LOW…thon/packages/autogen-studio/autogenstudio/web/deps.py2
LOW…thon/packages/autogen-studio/autogenstudio/web/deps.py9
LOW…thon/packages/autogen-studio/autogenstudio/web/deps.py13
LOW…ckages/autogen-studio/autogenstudio/web/auth/models.py1
LOW…ckages/autogen-studio/autogenstudio/web/auth/models.py2
LOW…ckages/autogen-studio/autogenstudio/web/auth/models.py4
LOW…ages/autogen-studio/autogenstudio/web/auth/__init__.py1
LOW…ages/autogen-studio/autogenstudio/web/auth/__init__.py2
LOW…ages/autogen-studio/autogenstudio/web/auth/__init__.py2
LOW…ages/autogen-studio/autogenstudio/web/auth/__init__.py2
LOW…ages/autogen-studio/autogenstudio/web/auth/__init__.py2
LOW…ages/autogen-studio/autogenstudio/web/auth/__init__.py3
LOW…ages/autogen-studio/autogenstudio/web/auth/__init__.py4
LOW…ages/autogen-studio/autogenstudio/web/auth/__init__.py5
LOW…ages/autogen-studio/autogenstudio/web/auth/__init__.py6
LOW…ages/autogen-studio/autogenstudio/web/auth/__init__.py6
LOW…ages/autogen-studio/autogenstudio/web/auth/__init__.py7
LOW…es/autogen-studio/autogenstudio/web/auth/authroutes.py4
LOW…es/autogen-studio/autogenstudio/web/auth/authroutes.py5
LOW…ges/autogen-studio/autogenstudio/web/auth/providers.py10
431 more matches not shown…
Cross-File Repetition50 hits · 250 pts
SeverityFileLineSnippet
HIGH…ang_hello_python_agent/protos/agent_events_pb2_grpc.py0client and server classes corresponding to protobuf-defined services.
HIGH…togen-core/tests/protos/serialization_test_pb2_grpc.py0client and server classes corresponding to protobuf-defined services.
HIGH…utogen-ext/tests/protos/serialization_test_pb2_grpc.py0client and server classes corresponding to protobuf-defined services.
HIGH…utogen_ext/runtimes/grpc/protos/cloudevent_pb2_grpc.py0client and server classes corresponding to protobuf-defined services.
HIGH…ogen_ext/runtimes/grpc/protos/agent_worker_pb2_grpc.py0client and server classes corresponding to protobuf-defined services.
HIGH…ang_hello_python_agent/protos/agent_events_pb2_grpc.py0client and server classes corresponding to protobuf-defined services.
HIGHpython/samples/task_centric_memory/eval_retrieval.py0runs the code example with the necessary components.
HIGHpython/samples/task_centric_memory/eval_teachability.py0runs the code example with the necessary components.
HIGH…thon/samples/task_centric_memory/eval_self_teaching.py0runs the code example with the necessary components.
HIGH…ask_centric_memory/eval_learning_from_demonstration.py0runs the code example with the necessary components.
HIGH…thon/packages/autogen-ext/tests/test_azure_ai_agent.py0returns all text message contents in the messages. :rtype: list[faketextcontent]
HIGH…thon/packages/autogen-ext/tests/test_azure_ai_agent.py0returns all text message contents in the messages. :rtype: list[faketextcontent]
HIGH…thon/packages/autogen-ext/tests/test_azure_ai_agent.py0returns all text message contents in the messages. :rtype: list[faketextcontent]
HIGH…thon/packages/autogen-ext/tests/test_azure_ai_agent.py0returns all text message contents in the messages. :rtype: list[faketextcontent]
HIGH…packages/autogen-ext/tests/memory/test_redis_memory.py0test updating model context with retrieved memories.
HIGHpython/packages/autogen-ext/tests/memory/test_mem0.py0test updating model context with retrieved memories.
HIGH…ackages/autogen-ext/tests/memory/test_chroma_memory.py0test updating model context with retrieved memories.
HIGH…s/autogen-ext/tests/models/test_openai_model_client.py0test tool_choice parameter with a specific tool using mocks.
HIGH…autogen-ext/tests/models/test_azure_ai_model_client.py0test tool_choice parameter with a specific tool using mocks.
HIGH…utogen-ext/tests/models/test_anthropic_model_client.py0test tool_choice parameter with a specific tool using mocks.
HIGH…s/autogen-ext/tests/models/test_openai_model_client.py0test tool_choice parameter with 'auto' setting using mocks.
HIGH…autogen-ext/tests/models/test_azure_ai_model_client.py0test tool_choice parameter with 'auto' setting using mocks.
HIGH…utogen-ext/tests/models/test_anthropic_model_client.py0test tool_choice parameter with 'auto' setting using mocks.
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
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
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
HIGH…ogen_ext/runtimes/grpc/protos/agent_worker_pb2_grpc.py0missing associated documentation comment in .proto file.
HIGH…ogen_ext/runtimes/grpc/protos/agent_worker_pb2_grpc.py0missing associated documentation comment in .proto file.
HIGH…ogen_ext/runtimes/grpc/protos/agent_worker_pb2_grpc.py0missing associated documentation comment in .proto file.
HIGH…ogen_ext/runtimes/grpc/protos/agent_worker_pb2_grpc.py0missing associated documentation comment in .proto file.
HIGH…ogen_ext/runtimes/grpc/protos/agent_worker_pb2_grpc.py0missing associated documentation comment in .proto file.
HIGH…ogen_ext/runtimes/grpc/protos/agent_worker_pb2_grpc.py0missing associated documentation comment in .proto file.
HIGH…ogen_ext/runtimes/grpc/protos/agent_worker_pb2_grpc.py0missing associated documentation comment in .proto file.
HIGH…ogen_ext/runtimes/grpc/protos/agent_worker_pb2_grpc.py0missing associated documentation comment in .proto file.
HIGH…ogen_ext/runtimes/grpc/protos/agent_worker_pb2_grpc.py0missing associated documentation comment in .proto file.
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.
HIGH…tchat/src/autogen_agentchat/agents/_assistant_agent.py0ensure that the messages are compatible with the underlying client, by removing images if needed.
HIGH…t/src/autogen_agentchat/agents/_code_executor_agent.py0ensure that the messages are compatible with the underlying client, by removing images if needed.
HIGH…group_chat/_magentic_one/_magentic_one_orchestrator.py0ensure that the messages are compatible with the underlying client, by removing images if needed.
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 inval
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 inval
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 inval
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 inval
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 ensur
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 ensur
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 ensur
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 ensur
HIGHpython/packages/autogen-agentchat/tests/test_agent.py0test the serialization and deserialization of the message context on the assistantagent.
HIGHpython/packages/autogen-agentchat/tests/test_agent.py0test the serialization and deserialization of the message context on the assistantagent.
HIGHpython/packages/autogen-agentchat/tests/test_agent.py0test the serialization and deserialization of the message context on the assistantagent.
Excessive Try-Catch Wrapping214 hits · 236 pts
SeverityFileLineSnippet
LOW…cs/src/user-guide/core-user-guide/framework/logging.md66 except Exception:
LOW…thon/samples/core_streaming_handoffs_fastapi/README.md132 except Exception as e:
MEDIUMpython/samples/core_streaming_handoffs_fastapi/app.py239 print(f"Error decoding JSON from {chat_history_file}. Starting with empty history.")
LOWpython/samples/core_streaming_handoffs_fastapi/app.py244 except Exception as e:
MEDIUMpython/samples/core_streaming_handoffs_fastapi/app.py245 print(f"Error loading chat history for {conversation_id}: {e}")
LOWpython/samples/agentchat_fastapi/app_team.py91 except Exception as e:
LOWpython/samples/agentchat_fastapi/app_team.py142 except Exception as e:
LOWpython/samples/agentchat_fastapi/app_team.py161 except Exception as send_error:
LOWpython/samples/agentchat_fastapi/app_team.py167 except Exception as e:
LOWpython/samples/agentchat_fastapi/app_team.py178 except Exception:
MEDIUMpython/samples/agentchat_fastapi/app_team.py88def history() -> list[dict[str, Any]]:
LOWpython/samples/agentchat_fastapi/app_agent.py73 except Exception as e:
LOWpython/samples/agentchat_fastapi/app_agent.py98 except Exception as e:
MEDIUMpython/samples/agentchat_fastapi/app_agent.py70def history() -> list[dict[str, Any]]:
LOWpython/samples/gitty/src/gitty/_github.py27 except Exception:
MEDIUMpython/samples/gitty/src/gitty/_github.py46 print(f"Error fetching issue: {error_detail}")
MEDIUMpython/samples/gitty/src/gitty/_github.py51 print("Error decoding gh cli output:", e)
MEDIUMpython/samples/gitty/src/gitty/_github.py67 print("Error fetching issues:", result.stderr)
MEDIUMpython/samples/gitty/src/gitty/_github.py72 print("Error decoding issues JSON:", e)
LOWpython/samples/gitty/src/gitty/_db.py48 except Exception:
MEDIUMpython/samples/gitty/src/gitty/_db.py87 print("Error fetching issues:", result.stderr)
MEDIUMpython/samples/gitty/src/gitty/_db.py92 print("Error decoding issues JSON:", e)
LOWpython/samples/gitty/src/gitty/_db.py149 except Exception:
LOWpython/samples/gitty/src/gitty/_gitty.py71 except Exception as e:
LOWpython/samples/gitty/src/gitty/_gitty.py82 except Exception as e:
MEDIUMpython/samples/gitty/src/gitty/_config.py24 print("Error: not a git repository.")
MEDIUMpython/samples/gitty/src/gitty/__main__.py16 print("Error: OPENAI_API_KEY environment variable is not set.")
MEDIUM…thon/samples/core_streaming_response_fastapi/README.md93 print(f"Error: {e}")
LOWpython/samples/core_streaming_response_fastapi/app.py79 except Exception as e:
MEDIUMpython/samples/agentchat_graphrag/app.py38 print("Error: OPENAI_API_KEY environment variable is not set!")
LOWpython/samples/core_chainlit/SimpleAssistantAgent.py105 except Exception as e:
LOWpython/packages/agbench/benchmarks/process_logs.py49 except Exception as e:
LOW…h/benchmarks/GAIA/Templates/ParallelAgents/scenario.py98 except Exception:
LOW…h/benchmarks/GAIA/Templates/ParallelAgents/scenario.py358 except Exception as e:
MEDIUM…hon/packages/agbench/src/agbench/remove_missing_cmd.py97 print(f"Error: '{runlogs_path}' is not a valid directory.")
MEDIUM…hon/packages/agbench/src/agbench/remove_missing_cmd.py119 print(f"Error: '{runlogs_path}' is not a valid directory.")
LOW…es/autogen-studio/autogenstudio/database/db_manager.py101 except Exception as e:
LOW…es/autogen-studio/autogenstudio/database/db_manager.py139 except Exception as e:
LOW…es/autogen-studio/autogenstudio/database/db_manager.py156 except Exception as e:
LOW…es/autogen-studio/autogenstudio/database/db_manager.py193 except Exception as e:
LOW…es/autogen-studio/autogenstudio/database/db_manager.py237 except Exception as e:
LOW…es/autogen-studio/autogenstudio/database/db_manager.py276 except Exception as e:
LOW…es/autogen-studio/autogenstudio/database/db_manager.py308 except Exception as e:
LOW…es/autogen-studio/autogenstudio/database/db_manager.py344 except Exception as e:
LOW…es/autogen-studio/autogenstudio/database/db_manager.py350 except Exception as e:
LOW…es/autogen-studio/autogenstudio/database/db_manager.py372 except Exception as e:
LOW…utogen-studio/autogenstudio/database/schema_manager.py68 except Exception as e:
LOW…utogen-studio/autogenstudio/database/schema_manager.py136 except Exception as e:
LOW…utogen-studio/autogenstudio/database/schema_manager.py256 except Exception as e:
LOW…utogen-studio/autogenstudio/database/schema_manager.py308 except Exception as e:
LOW…utogen-studio/autogenstudio/database/schema_manager.py413 except Exception as e:
LOW…utogen-studio/autogenstudio/database/schema_manager.py433 except Exception as e:
LOW…utogen-studio/autogenstudio/database/schema_manager.py474 except Exception as e:
LOW…utogen-studio/autogenstudio/database/schema_manager.py555 except Exception as e:
LOW…utogen-studio/autogenstudio/teammanager/teammanager.py74 except Exception as e:
LOW…thon/packages/autogen-studio/autogenstudio/web/deps.py44 except Exception as e:
LOW…thon/packages/autogen-studio/autogenstudio/web/deps.py108 except Exception as e:
LOW…thon/packages/autogen-studio/autogenstudio/web/deps.py170 except Exception as e:
LOW…thon/packages/autogen-studio/autogenstudio/web/deps.py186 except Exception as e:
LOW…thon/packages/autogen-studio/autogenstudio/web/deps.py200 except Exception as e:
154 more matches not shown…
Hallucination Indicators23 hits · 225 pts
SeverityFileLineSnippet
CRITICALpython/packages/agbench/src/agbench/run_cmd.py20from azure.core.exceptions import ClientAuthenticationError
CRITICAL…ackages/agbench/src/agbench/linter/coders/oai_coder.py54 completion = self.client.beta.chat.completions.parse(
CRITICAL…ackages/agbench/src/agbench/linter/coders/oai_coder.py159 completion = self.client.beta.chat.completions.parse(
CRITICAL…end/src/components/views/teambuilder/builder/store.tsx387 teamNode.data.component.config.participants.push(
CRITICAL…end/src/components/views/teambuilder/builder/store.tsx461 participants: node.data.component.config.participants.map(
CRITICAL…end/src/components/views/teambuilder/builder/store.tsx538 teamNode.data.component.config.participants.filter(
CRITICAL…s/autogen-ext/tests/tools/azure/test_ai_search_tool.py20from azure.core.exceptions import HttpResponseError, ResourceNotFoundError
CRITICAL…/autogen-ext/src/autogen_ext/tools/azure/_ai_search.py25from azure.core.exceptions import HttpResponseError, ResourceNotFoundError
CRITICAL…c/autogen_ext/agents/openai/_openai_assistant_agent.py345 msgs: AsyncCursorPage[Message] = await self._client.beta.threads.messages.list( # type: ignore[reportDeprec
CRITICAL…c/autogen_ext/agents/openai/_openai_assistant_agent.py419 self._client.beta.threads.runs.create( # type: ignore[reportDeprecated]
CRITICAL…c/autogen_ext/agents/openai/_openai_assistant_agent.py430 self._client.beta.threads.runs.retrieve( # type: ignore[reportDeprecated]
CRITICAL…c/autogen_ext/agents/openai/_openai_assistant_agent.py483 self._client.beta.threads.runs.submit_tool_outputs( # type: ignore[reportDeprecated]
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: ignor
CRITICAL…c/autogen_ext/agents/openai/_openai_assistant_agent.py538 self._client.beta.threads.messages.create( # type: ignore[reportDeprecated]
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) # typ
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: ign
CRITICAL…en-ext/src/autogen_ext/models/openai/_openai_client.py684 self._client.beta.chat.completions.parse(
CRITICAL…en-ext/src/autogen_ext/models/openai/_openai_client.py1118 async with self._client.beta.chat.completions.stream(
CRITICALdocs/dotnet/core/index.md89var autogenBackend = await Microsoft.AutoGen.RuntimeGateway.Grpc.Host.StartAsync(local: false, useGrpc: true).ConfigureA
CRITICALdotnet/samples/Hello/HelloAIAgents/Program.cs27var app = await Microsoft.AutoGen.Core.Grpc.AgentsApp.PublishMessageAsync("HelloAgents", new NewMessageReceived
CRITICALdotnet/samples/Hello/HelloAgentState/Program.cs12var app = await Microsoft.AutoGen.Core.Grpc.AgentsApp.PublishMessageAsync("HelloAgents", new NewMessageReceived
CRITICALdotnet/src/Microsoft.AutoGen/Core.Grpc/RpcExtensions.cs39 var any = Google.Protobuf.WellKnownTypes.Any.Parser.ParseFrom(data);
CRITICALdotnet/src/Microsoft.AutoGen/AgentHost/Program.cs5var app = await Microsoft.AutoGen.RuntimeGateway.Grpc.Host.StartAsync(local: false, useGrpc: true).ConfigureAwait(false)
Over-Commented Block192 hits · 188 pts
SeverityFileLineSnippet
LOW…_streaming_handoffs_fastapi/model_config_template.yaml1# Use Open AI with key
LOW…_streaming_handoffs_fastapi/model_config_template.yaml21# azure_ad_token_provider:
LOW…n/samples/agentchat_fastapi/model_config_template.yaml1# Use Open AI with key
LOW…n/samples/agentchat_fastapi/model_config_template.yaml21# azure_ad_token_provider:
LOW…core_async_human_in_the_loop/model_config_template.yml1# Use Open AI with key
LOW…core_async_human_in_the_loop/model_config_template.yml21# azure_ad_token_provider:
LOW…amples/agentchat_chess_game/model_config_template.yaml1# Use Open AI with key
LOW…amples/agentchat_chess_game/model_config_template.yaml21# azure_endpoint: https://{your-custom-endpoint}.openai.azure.com/
LOW…_streaming_response_fastapi/model_config_template.yaml1# Use Open AI with key
LOW…_streaming_response_fastapi/model_config_template.yaml21# azure_ad_token_provider:
LOW…/samples/agentchat_graphrag/model_config_template.yaml1# Use Open AI with key
LOW…/samples/agentchat_graphrag/model_config_template.yaml21# azure_ad_token_provider:
LOW…thon/samples/core_chess_game/model_config_template.yml1# Use Open AI with key
LOW…thon/samples/core_chess_game/model_config_template.yml21# azure_ad_token_provider:
LOWpython/samples/core_chainlit/model_config_template.yaml1# Use Open AI with key
LOWpython/samples/core_chainlit/model_config_template.yaml21# azure_ad_token_provider:
LOW…/samples/agentchat_chainlit/model_config_template.yaml1# Use Open AI with key
LOW…/samples/agentchat_chainlit/model_config_template.yaml21# azure_ad_token_provider:
LOWpython/packages/agbench/benchmarks/HumanEval/ENV.yaml1# ENV.yaml
LOWpython/packages/agbench/benchmarks/HumanEval/ENV.yaml21# config:
LOW…thon/packages/agbench/benchmarks/HumanEval/config.yaml1# config.yaml
LOW…thon/packages/agbench/benchmarks/HumanEval/config.yaml21# config:
LOWpython/packages/agbench/benchmarks/GAIA/ENV.yaml1# ENV.yaml
LOWpython/packages/agbench/benchmarks/GAIA/ENV.yaml21# config:
LOWpython/packages/agbench/benchmarks/GAIA/config.yaml1# config.yaml
LOWpython/packages/agbench/benchmarks/GAIA/config.yaml21# config:
LOW…n/packages/autogen-studio/autogenstudio/eval/judges.py221# api_key="your-api-key"
LOW…n/packages/autogen-studio/autogenstudio/eval/judges.py241# ),
LOW…n/packages/autogen-studio/autogenstudio/eval/judges.py261# "messages": [{"content": "The capital of France is Paris.", "source": "model"}]
LOWpython/packages/autogen-studio/frontend/tsconfig.json21 // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory func
LOWpython/packages/autogen-studio/frontend/tsconfig.json41 // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
LOWpython/packages/autogen-studio/frontend/tsconfig.json61 // "newLine": "crlf", /* Set the newline character for emitting files. */
LOWpython/packages/autogen-studio/frontend/tsconfig.json81 // "strictBindCallApply": true, /* Check that the arguments for `bind`, `call`, and `apply` met
LOW…dio/frontend/src/components/views/settings/manager.tsx81 // ),
LOW…/frontend/src/components/views/settings/view/panel.tsx41 // setLoading(true);
LOW…-studio/frontend/src/components/views/gallery/types.ts1import { Gallery } from "../../types/datamodel";
LOW…teambuilder/builder/component-editor/fields/fields.tsx161 }
LOW…utogen-studio/frontend/src/components/views/mcp/api.ts601 // ) {
LOW…thon/packages/autogen-ext/tests/test_worker_runtime.py681 assert agent.num_calls == 4
LOW…hon/packages/autogen-ext/tests/tools/test_mcp_actor.py181 with pytest.raises(ValueError, match="uri is required for read_resource"):
LOW…hon/packages/autogen-ext/tests/tools/test_mcp_actor.py201# # Give it a brief moment to queue the command
LOW…hon/packages/autogen-ext/tests/tools/test_mcp_actor.py221# actor._command_queue = original_queue # type: ignore[reportPrivateUsage]
LOW…hon/packages/autogen-ext/tests/tools/test_mcp_actor.py241# actor._actor_task = MagicMock() # type: ignore[reportPrivateUsage]
LOW…hon/packages/autogen-ext/tests/tools/test_mcp_actor.py341 mock_context = MagicMock(spec=RequestContext)
LOW…hon/packages/autogen-ext/tests/tools/test_mcp_actor.py361# }
LOW…hon/packages/autogen-ext/tests/tools/test_mcp_actor.py381# assert result.code == mcp_types.INVALID_PARAMS
LOW…hon/packages/autogen-ext/tests/tools/test_mcp_actor.py921
LOW…utogen-ext/tests/models/test_llama_cpp_model_client.py121
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=5000
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()):
LOW…utogen-ext/tests/models/test_llama_cpp_model_client.py261# reflect_on_tool_use=True, # Reflect on tool results
LOW…n-ext/src/autogen_ext/runtimes/grpc/_worker_runtime.py201
LOW…gen_ext/runtimes/grpc/_worker_runtime_host_servicer.py361 # context: grpc.aio.ServicerContext[agent_worker_pb2.AgentId, agent_worker_pb2.SaveStateResponse],
LOW…gen-ext/src/autogen_ext/agents/openai/_openai_agent.py341 # {
LOW.devcontainer/docker-compose.yml21 # - SYS_PTRACE
LOWdotnet/dotnet-install.sh1#!/usr/bin/env bash
LOW…ests/Infrastructure/DistributedApplicationExtension.cs201 /// <summary>
LOW…ests/Infrastructure/DistributedApplicationExtension.cs241#pragma warning restore ASPIREHOSTINGPYTHON001
LOW…en.RuntimeGateway.Grpc.Tests/Helpers/AgentsMetadata.cs1// Copyright (c) Microsoft Corporation. All rights reserved.
LOW…teway.Grpc.Tests/Helpers/Grpc/TestAsyncStreamReader.cs1#pragma warning disable IDE0073
132 more matches not shown…
Docstring Block Structure37 hits · 185 pts
SeverityFileLineSnippet
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_resu
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 inclu
HIGH…ore/src/autogen_core/_single_threaded_agent_runtime.py289Create OpenTelemetry attributes for the given agent and message. Args: sender_agent (Agent, optiona
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:
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
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:
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_c
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.
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), but
HIGH…utogen-core/src/autogen_core/tool_agent/_tool_agent.py64Handles a `FunctionCall` message by executing the requested tool with the provided arguments. Args:
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 and
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. Arg
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 co
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 with
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 ob
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 for
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 AzureAISearchTo
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 pas
HIGH…ackages/autogen-ext/src/autogen_ext/tools/mcp/_base.py133 Create an instance of McpToolAdapter from server parameters and tool name. Args: server_pa
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 tru
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. .
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 va
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 co
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
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 f
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 used
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 en
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 t
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 simu
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 co
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.R
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 sel
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.
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 th
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 (
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 experi
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
Deep Nesting178 hits · 166 pts
SeverityFileLineSnippet
LOWpython/check_md_code_blocks.py17
LOWpython/check_md_code_blocks.py38
LOWpython/docs/src/generate_api_reference.py48
LOWpython/docs/src/generate_api_reference.py65
LOWpython/docs/src/generate_api_reference.py145
LOWpython/docs/src/conf.py186
LOWpython/docs/src/_extension/code_lint.py52
LOW…/samples/core_streaming_handoffs_fastapi/agent_base.py48
LOWpython/samples/core_streaming_handoffs_fastapi/app.py194
LOWpython/samples/agentchat_fastapi/app_team.py96
LOWpython/samples/gitty/src/gitty/__main__.py42
LOWpython/samples/core_chainlit/app_team.py160
LOWpython/samples/agentchat_chainlit/app_team.py68
LOW…thon/samples/agentchat_chainlit/app_team_user_proxy.py108
LOWpython/packages/agbench/benchmarks/process_logs.py84
LOW…ges/agbench/benchmarks/GAIA/Scripts/custom_tabulate.py36
LOW…h/benchmarks/GAIA/Templates/ParallelAgents/scenario.py154
LOW…h/benchmarks/GAIA/Templates/ParallelAgents/scenario.py70
LOW…enchmarks/GAIA/Templates/SelectorGroupChat/scenario.py25
LOW…enchmarks/GAIA/Templates/SelectorGroupChat/scenario.py144
LOW…hon/packages/agbench/src/agbench/remove_missing_cmd.py31
LOWpython/packages/agbench/src/agbench/tabulate_cmd.py68
LOWpython/packages/agbench/src/agbench/run_cmd.py59
LOWpython/packages/agbench/src/agbench/run_cmd.py181
LOWpython/packages/agbench/src/agbench/run_cmd.py269
LOWpython/packages/agbench/src/agbench/run_cmd.py342
LOWpython/packages/agbench/src/agbench/run_cmd.py869
LOWpython/packages/agbench/src/agbench/run_cmd.py353
LOWpython/packages/agbench/src/agbench/run_cmd.py364
LOW…es/autogen-studio/autogenstudio/database/db_manager.py108
LOW…es/autogen-studio/autogenstudio/database/db_manager.py165
LOW…es/autogen-studio/autogenstudio/database/db_manager.py245
LOW…utogen-studio/autogenstudio/database/schema_manager.py47
LOW…utogen-studio/autogenstudio/teammanager/teammanager.py109
LOW…utogen-studio/autogenstudio/teammanager/teammanager.py154
LOW…n/packages/autogen-studio/autogenstudio/lite/studio.py52
LOW…thon/packages/autogen-studio/autogenstudio/web/deps.py261
LOW…ckages/autogen-studio/autogenstudio/web/auth/wsauth.py17
LOW…kages/autogen-studio/autogenstudio/web/auth/manager.py28
LOW…es/autogen-studio/autogenstudio/web/auth/middleware.py88
LOW…utogen-studio/autogenstudio/web/managers/connection.py85
LOW…utogen-studio/autogenstudio/web/managers/connection.py282
LOW…utogen-studio/autogenstudio/web/managers/connection.py344
LOW…es/autogen-studio/autogenstudio/web/routes/sessions.py66
LOW…packages/autogen-studio/autogenstudio/web/routes/ws.py21
LOW…ackages/autogen-studio/autogenstudio/web/routes/mcp.py134
LOW…ogen-studio/autogenstudio/gallery/tools/bing_search.py13
LOW…en-studio/autogenstudio/gallery/tools/google_search.py12
LOW…togen-studio/autogenstudio/gallery/tools/calculator.py4
LOW…n/packages/autogen-studio/autogenstudio/utils/utils.py10
LOW…on/packages/autogen-studio/autogenstudio/mcp/client.py63
LOW…/packages/autogen-studio/autogenstudio/mcp/wsbridge.py137
LOW…hon/packages/autogen-studio/autogenstudio/mcp/utils.py42
LOW…n/packages/autogen-studio/autogenstudio/eval/judges.py174
LOW…ages/autogen-studio/autogenstudio/eval/orchestrator.py120
LOW…ages/autogen-studio/autogenstudio/eval/orchestrator.py202
LOW…ages/autogen-studio/autogenstudio/eval/orchestrator.py520
LOW…ages/autogen-studio/autogenstudio/eval/orchestrator.py697
LOW…/packages/autogen-studio/autogenstudio/eval/runners.py157
LOW…-studio/autogenstudio/validation/validation_service.py114
118 more matches not shown…
Decorative Section Separators32 hits · 130 pts
SeverityFileLineSnippet
MEDIUM…autogen-ext/tests/tools/azure/test_ai_search_config.py14# =====================================
MEDIUM…autogen-ext/tests/tools/azure/test_ai_search_config.py16# =====================================
MEDIUM…autogen-ext/tests/tools/azure/test_ai_search_config.py93# =====================================
MEDIUM…autogen-ext/tests/tools/azure/test_ai_search_config.py95# =====================================
MEDIUM…autogen-ext/tests/tools/azure/test_ai_search_config.py173# =====================================
MEDIUM…autogen-ext/tests/tools/azure/test_ai_search_config.py175# =====================================
MEDIUM…autogen-ext/tests/tools/azure/test_ai_search_config.py217# =====================================
MEDIUM…autogen-ext/tests/tools/azure/test_ai_search_config.py219# =====================================
MEDIUM…es/autogen-ext/tests/memory/test_text_canvas_memory.py13# ── Fixtures ─────────────────────────────────────────────────────────────────────
MEDIUM…es/autogen-ext/tests/memory/test_text_canvas_memory.py39# ── Tests ────────────────────────────────────────────────────────────────────────
MEDIUM…ackages/autogen-ext/tests/memory/test_chroma_memory.py277# ============================================================================
MEDIUM…ackages/autogen-ext/tests/memory/test_chroma_memory.py279# ============================================================================
MEDIUM…ogen-ext/src/autogen_ext/memory/canvas/_text_canvas.py39 # ----------------------------------------------------------------------------------
MEDIUM…ogen-ext/src/autogen_ext/memory/canvas/_text_canvas.py41 # ----------------------------------------------------------------------------------
MEDIUM…ogen-ext/src/autogen_ext/memory/canvas/_text_canvas.py49 # ----------------------------------------------------------------------------------
MEDIUM…ogen-ext/src/autogen_ext/memory/canvas/_text_canvas.py51 # ----------------------------------------------------------------------------------
MEDIUM…ogen-ext/src/autogen_ext/memory/canvas/_text_canvas.py61 # ----------------------------------------------------------------------------------
MEDIUM…ogen-ext/src/autogen_ext/memory/canvas/_text_canvas.py63 # ----------------------------------------------------------------------------------
MEDIUM…ogen-ext/src/autogen_ext/memory/canvas/_text_canvas.py95 # ----------------------------------------------------------------------------------
MEDIUM…ogen-ext/src/autogen_ext/memory/canvas/_text_canvas.py97 # ----------------------------------------------------------------------------------
MEDIUM…ogen-ext/src/autogen_ext/memory/canvas/_text_canvas.py181 # ----------------------------------------------------------------------------------
MEDIUM…ogen-ext/src/autogen_ext/memory/canvas/_text_canvas.py183 # ----------------------------------------------------------------------------------
MEDIUM…utogen_ext/agents/web_surfer/_multimodal_web_surfer.py606 # ===================================================
MEDIUM…/src/autogen_agentchat/agents/_message_filter_agent.py10# ------------------------------
MEDIUM…/src/autogen_agentchat/agents/_message_filter_agent.py12# ------------------------------
MEDIUM…/src/autogen_agentchat/agents/_message_filter_agent.py25# ------------------------------
MEDIUM…/src/autogen_agentchat/agents/_message_filter_agent.py27# ------------------------------
MEDIUM…/src/autogen_agentchat/agents/_message_filter_agent.py36# ------------------------------
MEDIUM…/src/autogen_agentchat/agents/_message_filter_agent.py38# ------------------------------
MEDIUM…/Microsoft.AutoGen/AgentChat/Abstractions/ChatAgent.cs52 # ================================================
MEDIUM…/Microsoft.AutoGen/AgentChat/Abstractions/ChatAgent.cs63 # ================================================
MEDIUM…/Microsoft.AutoGen/AgentChat/Abstractions/ChatAgent.cs77 # ================================================
Redundant / Tautological Comments89 hits · 130 pts
SeverityFileLineSnippet
LOWpython/run_task_in_pkgs_if_exist.py44 # Check if there is an include too
LOWpython/docs/redirects/redirects.py44 # Read file
LOWpython/docs/src/generate_api_reference.py55 # Check if this package is in our documented packages list
LOWpython/docs/src/conf.py207 # Print the output for visibility
LOWpython/samples/core_streaming_handoffs_fastapi/app.py229 if content: # Check if file is not empty
LOWpython/samples/agentchat_chess_game/main.py86 # Check if the response is a valid UC move.
LOWpython/samples/agentchat_chess_game/main.py92 # Check if the move is legal.
LOWpython/samples/agentchat_chess_game/main.py113 # Check if the game is over.
LOWpython/samples/agentchat_graphrag/app.py35 # Check if OPENAI_API_KEY is set
LOWpython/packages/agbench/benchmarks/process_logs.py156 # Check if the agent stalled
LOW…ges/agbench/benchmarks/HumanEval/Scripts/init_tasks.py70 # Read the file, line by line, populating a list of parsed JSON objects
LOWpython/packages/agbench/src/agbench/run_cmd.py660 # Check if we need to terminate
LOW…n/packages/autogen-studio/autogenstudio/lite/studio.py177 # Check if already running
LOW…thon/packages/autogen-studio/autogenstudio/web/deps.py94 # Check if auth is explicitly disabled via environment variable
LOW…hon/packages/autogen-studio/autogenstudio/web/serve.py18 # Check if team_file_path is set
LOW…kages/autogen-studio/autogenstudio/web/auth/manager.py63 # Check if path should be excluded from auth
LOW…ages/autogen-studio/autogenstudio/eval/orchestrator.py319 # Check if run is already active
LOW…ages/autogen-studio/autogenstudio/eval/orchestrator.py503 # Check if run is active
LOW…dio/autogenstudio/validation/component_test_service.py58 # Check if we got a valid response
LOW…hon/packages/autogen-studio/tests/test_team_manager.py91 # Check if at least one team has expected label
LOWpython/packages/autogen-core/tests/test_runtime.py192 # Check if logger has the exception.
LOW…autogen-core/src/autogen_core/_runtime_impl_helpers.py43 # Check if the subscription already exists
LOW…autogen-core/src/autogen_core/_runtime_impl_helpers.py51 # Check if the subscription exists
LOW…togen-core/src/autogen_core/tools/_static_workbench.py101 # Check if the name is an override name and map it back to the original
LOW…/autogen-core/src/autogen_core/tools/_function_tool.py78 # Output the result as a formatted string.
LOW…hon/packages/autogen-ext/tests/tools/test_mcp_tools.py629 # Check if GITHUB_TOKEN is set.
LOW…utogen-ext/tests/tools/graphrag/test_graphrag_tools.py192 # Check if the log contains the expected message
LOW…utogen-ext/tests/tools/graphrag/test_graphrag_tools.py256 # Check if the log contains the expected message
LOW…s/autogen-ext/tests/models/test_openai_model_client.py2152 # Check if the model is running locally.
LOW…ext/tests/models/test_ollama_chat_completion_client.py480 # Check if the model is running locally.
LOW…ts/code_executors/test_docker_jupyter_code_executor.py123 # Check if the file was created
LOW…ode_executors/test_docker_commandline_code_executor.py149 # Check if the file was not created
LOW…tests/code_executors/test_commandline_code_executor.py203 # Check if the file is not created.
LOW…tests/code_executors/test_commandline_code_executor.py305 # Check if the expected venv has been used
LOW…tests/code_executors/test_commandline_code_executor.py361 # Check if the expected venv has been used
LOW…/experimental/task_centric_memory/memory_controller.py175 # Check if the response is correct.
LOW…/experimental/task_centric_memory/utils/page_logger.py411 # Check if it's a method by looking for 'self' or 'cls' in f_locals
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 original
LOW…kages/autogen-ext/src/autogen_ext/memory/mem0/_mem0.py250 # Check if operation is cancelled
LOW…kages/autogen-ext/src/autogen_ext/memory/mem0/_mem0.py290 # Check if operation is cancelled
LOW…togen_ext/agents/file_surfer/_markdown_file_browser.py82 # Check if the path is within the base path
LOW…en-ext/src/autogen_ext/agents/azure/_azure_ai_agent.py1027 # Check if file_search is enabled in tools
LOW…utogen_ext/agents/web_surfer/_multimodal_web_surfer.py654 # Check if the argument starts with a known protocol
LOW…c/autogen_ext/agents/openai/_openai_assistant_agent.py631 # Check if file_search is enabled in tools
LOW…/models/semantic_kernel/_sk_chat_completion_adapter.py311 # Check if it's a function-call style message
LOW…/models/semantic_kernel/_sk_chat_completion_adapter.py668 # Check if the model signaled tool_calls finished
LOW…/src/autogen_ext/models/anthropic/_anthropic_client.py530 # Check if thinking is specified in extra_create_args (priority)
LOW…/src/autogen_ext/models/anthropic/_anthropic_client.py533 # Check if thinking is specified in base create_args
LOW…/src/autogen_ext/models/anthropic/_anthropic_client.py356 # Check if the tool has a valid name
LOW…/src/autogen_ext/models/anthropic/_anthropic_client.py704 # Check if the response includes tool uses
LOW…/src/autogen_ext/models/anthropic/_anthropic_client.py844 # Check if any message is a tool result
LOW…n_ext/models/llama_cpp/_llama_cpp_completion_client.py108 # Check if all tools have valid names.
LOW…en-ext/src/autogen_ext/models/ollama/_ollama_client.py345 # Check if all tools have valid names.
LOW…en-ext/src/autogen_ext/models/openai/_openai_client.py268 # Check if all tools have valid names.
LOW…xt/src/autogen_ext/models/openai/_message_transform.py203 # Check if name should be included in message
LOW…/autogen-ext/src/autogen_ext/code_executors/_common.py163 # Check if pwsh is available, otherwise fall back to powershell
LOW…gen_ext/code_executors/docker/_docker_code_executor.py344 # Check if there is a filename comment
LOW…gen_ext/code_executors/docker/_docker_code_executor.py517 # Check if the image exists
LOW…gen_ext/code_executors/docker/_docker_code_executor.py530 # Check if a container with the same name already exists and remove it
LOW…gen_ext/code_executors/docker/_docker_code_executor.py562 # Check if the container is running
29 more matches not shown…
Magic Placeholder Names14 hits · 70 pts
SeverityFileLineSnippet
HIGH…on/docs/src/user-guide/autogenstudio-user-guide/faq.md44 api_key="your-api-key", # Optional if ANTHROPIC_API_KEY is set in environment
HIGH…on/docs/src/user-guide/autogenstudio-user-guide/faq.md104 "api_key": "your-api-key"
HIGHpython/samples/gitty/src/gitty/__main__.py18 print(" export OPENAI_API_KEY='your-api-key'")
HIGHpython/samples/agentchat_graphrag/README.md43export OPENAI_API_KEY='your-api-key-here'
HIGHpython/samples/agentchat_graphrag/app.py39 print("Please run: export OPENAI_API_KEY='your-api-key-here'")
HIGH…ckages/autogen-studio/autogenstudio/gallery/builder.py546 headers={"Authorization": "Bearer your-api-key", "Content-Type": "application/json"},
HIGH…n/packages/autogen-studio/autogenstudio/eval/judges.py221# api_key="your-api-key"
HIGH…ckages/autogen-studio/autogenstudio/datamodel/types.py108 model="gpt-4o-mini", api_key="your-api-key"
HIGH…tend/src/components/views/gallery/default_gallery.json1158 "Authorization": "Bearer your-api-key",
HIGH…kages/autogen-ext/examples/mcp_session_host_example.py179 "api_key": "your-api-key"
HIGH…packages/autogen-ext/src/autogen_ext/tools/mcp/_sse.py63 headers={"Authorization": "Bearer your-api-key", "Content-Type": "application/json"},
HIGH…ogen-ext/src/autogen_ext/tools/mcp/_streamable_http.py64 headers={"Authorization": "Bearer your-api-key", "Content-Type": "application/json"},
HIGH…c/autogen_ext/agents/openai/_openai_assistant_agent.py145 client = AsyncOpenAI(api_key="your-api-key", base_url="your-base-url")
HIGH…/src/autogen_ext/models/anthropic/_anthropic_client.py1211 api_key="your-api-key", # Optional if ANTHROPIC_API_KEY is set in environment
Verbosity Indicators24 hits · 45 pts
SeverityFileLineSnippet
LOW…s/autogen-ext/tests/models/test_openai_model_client.py495 # Step 1: Mock the Image class with only the 'image' attribute
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
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 t
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 scenar
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 invo
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.
LOW…es/autogen-agentchat/tests/test_code_executor_agent.py217 # Step 1: First code generation
LOW…es/autogen-agentchat/tests/test_code_executor_agent.py224 # Step 2: First code execution
LOW…es/autogen-agentchat/tests/test_code_executor_agent.py231 # Step 3: Retry generation with proposed correction
LOW…es/autogen-agentchat/tests/test_code_executor_agent.py239 # Step 4: Second retry code generation
LOW…es/autogen-agentchat/tests/test_code_executor_agent.py246 # Step 5: Second retry code execution
LOW…es/autogen-agentchat/tests/test_code_executor_agent.py253 # Step 6: Final response
LOW…t/src/autogen_agentchat/agents/_code_executor_agent.py549 # Step 1: Add new user/handoff messages to the model context
LOW…t/src/autogen_agentchat/agents/_code_executor_agent.py555 # Step 2: Run inference with the model context
LOW…t/src/autogen_agentchat/agents/_code_executor_agent.py573 # Step 3: [NEW] If the model produced a hidden "thought," yield it as an event
LOW…t/src/autogen_agentchat/agents/_code_executor_agent.py579 # Step 4: Add the assistant message to the model context (including thought if present)
LOW…t/src/autogen_agentchat/agents/_code_executor_agent.py588 # Step 5: Extract the code blocks from inferred text
LOW…t/src/autogen_agentchat/agents/_code_executor_agent.py592 # Step 6: Exit the loop if no code blocks found
LOW…t/src/autogen_agentchat/agents/_code_executor_agent.py602 # Step 7: Yield a CodeGenerationEvent
LOW…t/src/autogen_agentchat/agents/_code_executor_agent.py612 # Step 8: Execute the extracted code blocks
LOW…t/src/autogen_agentchat/agents/_code_executor_agent.py615 # Step 9: Update model context with the code execution result
LOW…t/src/autogen_agentchat/agents/_code_executor_agent.py623 # Step 10: Yield a CodeExecutionEvent
LOW…t/src/autogen_agentchat/agents/_code_executor_agent.py630 # Step 11: If exit code is non-zero and retries are available then
LOW…n.RuntimeGateway.Grpc.Tests/GrpcGatewayServiceTests.cs61 // Step 4: Verify that the agent receives the control message
Cross-Language Confusion5 hits · 30 pts
SeverityFileLineSnippet
HIGHpython/samples/agentchat_chess_game/main.py112 board.push(chess.Move.from_uci(ai_move))
HIGHpython/samples/agentchat_chess_game/main.py122 board.push(chess.Move.from_uci(user_move))
HIGHpython/samples/core_chess_game/main.py124 board.push(new_move)
HIGH…hon/packages/autogen-ext/tests/tools/test_mcp_tools.py279 == '[{"type": "text", "text": "this is a sample text", "annotations": {"audience": ["user", "assistant"], "prior
HIGH…/experimental/task_centric_memory/utils/page_logger.py426 self.page_stack.push(page)
AI Slop Vocabulary17 hits · 30 pts
SeverityFileLineSnippet
LOWpython/docs/src/_extension/gallery_directive.py126 # Sphinx Design outputs a container too, so just use that
LOWpython/samples/core_chainlit/SimpleAssistantAgent.py178 # Message handler for Group chat message. It just add the message to the agent message history.
MEDIUM…/HumanEval/Templates/AgentChat/custom_code_executor.py35 # If python, wrap the extracted code in a unit testing harness
MEDIUM…ckages/autogen-studio/autogenstudio/gallery/builder.py578 # Note: This requires npx to be installed and provides comprehensive MCP testing tools
LOWpython/packages/autogen-core/tests/test_workbench.py40 # For the regular run method, just return the final result
MEDIUM…hon/packages/autogen-ext/tests/tools/test_mcp_actor.py51 """Get the expected number of tools by importing and examining the comprehensive server."""
MEDIUM…packages/autogen-ext/tests/memory/test_redis_memory.py505 # test that we can utilize the optional query arguments top_k and distance_threshold
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
MEDIUM…task_centric_memory/sessions/teachability/session.json446 "content": "### Understanding of the User Message\n\nYou have developed a copilot extension agent using the Autoge
MEDIUM…task_centric_memory/sessions/teachability/session.json470 "### Understanding of the User Message\n\nYou have developed a copilot extension agent using the Autogen frame
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
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 t
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.
LOW…es/autogen-ext/src/autogen_ext/tools/mcp/_workbench.py355 # For now we just use text representation.
MEDIUM…togen_ext/agents/file_surfer/_markdown_file_browser.py251 # Not robust to TOCTOU issues.
MEDIUM…ckages/autogen-agentchat/tests/test_assistant_agent.py3010 """Test suite for comprehensive workbench testing."""
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.
Overly Generic Function Names27 hits · 26 pts
SeverityFileLineSnippet
LOWpython/packages/autogen-core/tests/test_tools.py147 def my_function(arg: str = "default") -> MyResult:
LOWpython/packages/autogen-core/tests/test_tools.py242 def my_function() -> str:
LOWpython/packages/autogen-core/tests/test_tools.py252 def my_function() -> Annotated[str, "The return type"]:
LOWpython/packages/autogen-core/tests/test_tools.py262 def my_function() -> "str":
LOWpython/packages/autogen-core/tests/test_tools.py272 def my_function(arg: str) -> None:
LOWpython/packages/autogen-core/tests/test_tools.py283 def my_function(arg: str, arg2: int) -> None:
LOWpython/packages/autogen-core/tests/test_tools.py294 def my_function(arg: "str") -> None:
LOWpython/packages/autogen-core/tests/test_tools.py304 def my_function(arg: Annotated[str, "An arg"]) -> None:
LOWpython/packages/autogen-core/tests/test_tools.py314 def my_function() -> str:
LOWpython/packages/autogen-core/tests/test_tools.py394 def my_function() -> str:
LOWpython/packages/autogen-core/tests/test_tools.py404 def my_function() -> MyResult:
LOWpython/packages/autogen-core/tests/test_tools.py415 def my_function(arg: str) -> MyResult:
LOWpython/packages/autogen-core/tests/test_tools.py426 def my_function(arg: str) -> str:
LOWpython/packages/autogen-core/tests/test_tools.py436 def my_function(arg: str) -> MyResult:
LOWpython/packages/autogen-core/tests/test_tools.py453 def my_function(arg: str) -> MyResultCustomDump:
LOWpython/packages/autogen-core/tests/test_tools.py463 def my_function(arg: int) -> int:
LOWpython/packages/autogen-core/tests/test_tools.py473 def my_function() -> List[int]:
LOWpython/packages/autogen-core/tests/test_tools.py74 def my_function(arg: str, other: Annotated[int, "int arg"], nonrequired: int = 5) -> MyResult:
LOWpython/packages/autogen-core/tests/test_tools.py129 def my_function(arg: str = "default") -> MyResult:
LOWpython/packages/autogen-core/tests/test_tools.py326 def my_function(my_arg: Annotated[str, "test description"]) -> str:
LOWpython/packages/autogen-core/tests/test_tools.py344 def my_function() -> Annotated[str, "test description"]:
LOWpython/packages/autogen-core/tests/test_tools.py356 def my_function() -> str:
LOWpython/packages/autogen-core/tests/test_tools.py369 def my_function() -> None:
LOWpython/packages/autogen-core/tests/test_tools.py381 def my_function() -> MyResult:
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:
LOW…n_agentchat/teams/_group_chat/_chat_agent_container.py86 async def handle_request(self, message: GroupChatRequestPublish, ctx: MessageContext) -> None:
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:
Synthetic Comment Markers3 hits · 22 pts
SeverityFileLineSnippet
HIGH…allTemplateTests.TestFunctionCallTemplate.approved.txt3// This code was generated by a tool.
HIGH…toGen.SourceGenerator/Template/FunctionCallTemplate.cs3// This code was generated by a tool.
HIGH…toGen.SourceGenerator/Template/FunctionCallTemplate.cs31// This code was generated by a tool.
Slop Phrases9 hits · 16 pts
SeverityFileLineSnippet
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."
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 n
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 pack
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:
MEDIUM…/models/semantic_kernel/_sk_chat_completion_adapter.py313 # If there's a 'thought' field, you can add that as plain assistant text
LOW…en-ext/src/autogen_ext/models/openai/_openai_client.py1216 # JSON response, make sure to instruct the model to return JSON.
LOW…en-ext/src/autogen_ext/models/openai/_openai_client.py1557 # JSON response, make sure to instruct the model to return JSON.
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:`
MEDIUM.github/workflows/codeql.yml58 # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
Cross-Language Confusion (JS/TS)2 hits · 10 pts
SeverityFileLineSnippet
HIGH…frontend/src/components/views/deploy/guides/python.tsx51print(config.model_dump_json())`}
HIGH…frontend/src/components/views/deploy/guides/python.tsx72print(result)`}
Example Usage Blocks4 hits · 7 pts
SeverityFileLineSnippet
LOWpython/samples/agentchat_fastapi/app_team.py184# Example usage
LOWpython/samples/agentchat_fastapi/app_agent.py107# Example usage
LOW…n/packages/autogen-studio/autogenstudio/eval/judges.py214# # Usage example
LOW…src/Microsoft.AutoGen/Contracts/KVStringParseHelper.cs34 /// Example usage:
Fake / Example Data5 hits · 4 pts
SeverityFileLineSnippet
LOW…ackages/autogen-studio/tests/mcp/test_mcp_callbacks.py196 result = ElicitResult(action="accept", content={"name": "John Doe"})
LOW…ackages/autogen-studio/tests/mcp/test_mcp_callbacks.py208 assert result.content == {"name": "John Doe"}
LOW…n/packages/autogen-core/tests/test_json_to_pydantic.py116 "address": {"street": "123 Main St", "city": "Metropolis", "zipcode": "12345"},
LOW…n/packages/autogen-core/tests/test_json_to_pydantic.py198 "address": {"street": "123 Main St", "city": "Metropolis"},
LOW…togen-core/src/autogen_core/utils/_json_to_pydantic.py556 "address": {"street": "123 Main St", "city": "Wonderland", "zipcode": "12345"},
Dead Code2 hits · 4 pts
SeverityFileLineSnippet
MEDIUM…thon/packages/autogen-ext/tests/test_azure_ai_agent.py177
MEDIUM…n_ext/models/llama_cpp/_llama_cpp_completion_client.py427