Repository Analysis

microsoft/semantic-kernel

Integrate cutting-edge LLM technology quickly and easily into your apps

16.0 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of microsoft/semantic-kernel, a C# project with 28,399 GitHub stars. SynthScan v2.0 examined 723,565 lines of code across 4985 source files, recording 7306 pattern matches distributed across 26 syntactic categories. The overall adjusted score of 16.0 places this repository in the Moderate AI signal band.

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

16.0
Adjusted Score
16.0
Raw Score
100%
Time Factor
2026-07-30
Last Push
28.4K
Stars
C#
Language
723.6K
Lines of Code
5.0K
Files
7.3K
Pattern Hits
2026-08-02
Scan Date
0.14
HC Hit Rate

What These Metrics Mean

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

Score History

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

Severity Breakdown

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

CRITICAL 34HIGH 668MEDIUM 624LOW 5980

Directory Score Breakdown

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

Pattern Findings

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

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers3300 hits · 3488 pts
SeverityFileLineSnippetContext
LOWpython/tests/conftest.py64def kernel_with_default_service(kernel: "Kernel", default_service: "AIServiceClientBase") -> "Kernel":CODE
LOWpython/tests/conftest.py70def not_decorated_native_function() -> Callable:CODE
LOWpython/tests/conftest.py71 def not_decorated_native_function(arg1: str) -> str:CODE
LOWpython/tests/conftest.py78def decorated_native_function() -> Callable:CODE
LOWpython/tests/conftest.py82 def decorated_native_function(arg1: str) -> str:CODE
LOWpython/tests/conftest.py94 def decorated_native_function(self) -> str:CODE
LOWpython/tests/conftest.py101def experimental_plugin_class():CODE
LOWpython/tests/conftest.py108 def decorated_native_function(self) -> str:CODE
LOWpython/tests/conftest.py115def auto_function_invocation_filter() -> Callable:CODE
LOWpython/tests/conftest.py119 async def auto_function_invocation_filter(context: AutoFunctionInvocationContext, next):CODE
LOWpython/tests/conftest.py215def azure_openai_unit_test_env(monkeypatch, exclude_list, override_env_param_dict):CODE
LOWpython/tests/conftest.py313def dataclass_vector_data_model(CODE
LOWpython/tests/conftest.py403def record_type_with_key_as_key_field(CODE
LOWpython/tests/utils.py45def is_service_setup_for_testing(env_var_names: list[str], raise_if_not_set: bool | None = None) -> bool:CODE
LOWpython/tests/utils.py74def is_test_running_on_supported_platforms(platforms: list[str]) -> bool:CODE
LOWpython/tests/unit/test_serialization.py164 def test_usage_as_optional_field(CODE
LOWpython/tests/unit/test_serialization.py181 def test_usage_as_required_field(CODE
LOWpython/tests/unit/connectors/conftest.py56def azure_ai_search_unit_test_env(monkeypatch, exclude_list, override_env_param_dict):CODE
LOWpython/tests/unit/connectors/conftest.py129def google_search_unit_test_env(monkeypatch, exclude_list, override_env_param_dict):CODE
LOW…n/tests/unit/connectors/memory/test_azure_ai_search.py40def mock_ensure_collection_exists():CODE
LOW…n/tests/unit/connectors/memory/test_azure_ai_search.py47def mock_ensure_collection_deleted():CODE
LOW…n/tests/unit/connectors/memory/test_azure_ai_search.py54def mock_list_collection_names():CODE
LOW…n/tests/unit/connectors/memory/test_azure_ai_search.py152def test_init_with_search_index_client(azure_ai_search_unit_test_env, definition):CODE
LOW…n/tests/unit/connectors/memory/test_azure_ai_search.py173def test_init_with_search_index_client_fail(azure_ai_search_unit_test_env, definition):CODE
LOW…n/tests/unit/connectors/memory/test_azure_ai_search.py232async def test_ensure_collection_deleted(collection, mock_ensure_collection_deleted):CODE
LOW…n/tests/unit/connectors/memory/test_azure_ai_search.py237async def test_create_index_from_index(collection, mock_ensure_collection_exists):CODE
LOW…n/tests/unit/connectors/memory/test_azure_ai_search.py245async def test_create_index_from_definition(collection, mock_ensure_collection_exists):CODE
LOW…n/tests/unit/connectors/memory/test_azure_ai_search.py255async def test_create_index_from_index_fail(collection, mock_ensure_collection_exists):CODE
LOW…n/tests/unit/connectors/memory/test_azure_ai_search.py262def test_definition_to_azure_ai_search_index(definition):CODE
LOW…n/tests/unit/connectors/memory/test_azure_ai_search.py275async def test_vector_store_list_collection_names(vector_store, mock_list_collection_names):CODE
LOW…n/tests/unit/connectors/memory/test_azure_ai_search.py282async def test_vector_store_collection_existss(vector_store, mock_list_collection_names):CODE
LOW…n/tests/unit/connectors/memory/test_azure_ai_search.py289async def test_vector_store_ensure_collection_deleted(vector_store, mock_ensure_collection_deleted):CODE
LOW…n/tests/unit/connectors/memory/test_azure_ai_search.py309def test_get_collection_with_provided_search_index_client(azure_ai_search_unit_test_env, definition):CODE
LOW…n/tests/unit/connectors/memory/test_azure_ai_search.py333def test_get_search_index_client(azure_ai_search_unit_test_env):CODE
LOW…n/tests/unit/connectors/memory/test_azure_ai_search.py374async def test_search_vectorized_search(collection, mock_search, include_vectors):CODE
LOW…n/tests/unit/connectors/memory/test_azure_ai_search.py394async def test_search_vectorizable_search(collection, mock_search, include_vectors):CODE
LOW…n/tests/unit/connectors/memory/test_azure_ai_search.py417async def test_search_keyword_hybrid_search(collection, mock_search, include_vectors, keywords):CODE
LOWpython/tests/unit/connectors/memory/conftest.py10def mongodb_atlas_unit_test_env(monkeypatch, exclude_list, override_env_param_dict):CODE
LOWpython/tests/unit/connectors/memory/test_oracle.py85async def test_list_collection_names_with_schema(oracle_store):CODE
LOWpython/tests/unit/connectors/memory/test_oracle.py90def test_get_collection_returns_oracle_collection(oracle_store):CODE
LOWpython/tests/unit/connectors/memory/test_oracle.py101async def test_collection_exists_true(oracle_store, mock_connection_pool):CODE
LOWpython/tests/unit/connectors/memory/test_oracle.py115async def test_collection_exists_false(oracle_store, mock_connection_pool):CODE
LOWpython/tests/unit/connectors/memory/test_oracle.py129async def test_ensure_collection_exists_creates_when_missing(oracle_store, mock_connection_pool):CODE
LOWpython/tests/unit/connectors/memory/test_oracle.py139async def test_create_table_with_get_collection(oracle_store, mock_connection_pool):CODE
LOWpython/tests/unit/connectors/memory/test_oracle.py187async def test_index_creation_distance_with_get_collection(oracle_store, mock_connection_pool):CODE
LOWpython/tests/unit/connectors/memory/test_oracle.py207async def test_ensure_collection_deleted(oracle_store, mock_connection_pool):CODE
LOWpython/tests/unit/connectors/memory/test_oracle.py245async def test_get_with_include_vectors(oracle_store, mock_connection_pool):CODE
LOWpython/tests/unit/connectors/memory/test_chroma.py32def test_chroma_collection_initialization(chroma_collection):CODE
LOWpython/tests/unit/connectors/memory/test_chroma.py37def test_chroma_store_initialization(chroma_store):CODE
LOWpython/tests/unit/connectors/memory/test_chroma.py41def test_chroma_collection_get_collection(chroma_collection, mock_client):CODE
LOWpython/tests/unit/connectors/memory/test_chroma.py47def test_chroma_store_get_collection(chroma_store, mock_client, definition):CODE
LOWpython/tests/unit/connectors/memory/test_chroma.py53async def test_chroma_collection_collection_exists(chroma_collection, mock_client):CODE
LOWpython/tests/unit/connectors/memory/test_chroma.py59async def test_chroma_store_list_collection_names(chroma_store, mock_client):CODE
LOWpython/tests/unit/connectors/memory/test_chroma.py67async def test_chroma_collection_ensure_collection_exists(chroma_collection, mock_client):CODE
LOWpython/tests/unit/connectors/memory/test_chroma.py74async def test_chroma_collection_ensure_collection_deleted(chroma_collection, mock_client):CODE
LOWpython/tests/unit/connectors/memory/test_chroma.py79async def test_chroma_collection_upsert(chroma_collection, mock_client):CODE
LOWpython/tests/unit/connectors/memory/test_chroma.py86async def test_chroma_collection_get(chroma_collection, mock_client):CODE
LOWpython/tests/unit/connectors/memory/test_chroma.py98async def test_chroma_collection_delete(chroma_collection, mock_client):CODE
LOWpython/tests/unit/connectors/memory/test_chroma.py104async def test_chroma_collection_search(chroma_collection, mock_client, include_vectors):CODE
LOWpython/tests/unit/connectors/memory/test_in_memory.py116async def test_valid_lambda_filter_attribute_access(collection):CODE
3240 more matches not shown…
Cross-File Repetition592 hits · 2960 pts
SeverityFileLineSnippetContext
HIGHREADME.md0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGHpython/README.md0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…ion/step05_chat_completion_agent_plugin_with_kernel.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…mpletion/step04_chat_completion_agent_plugin_simple.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…completion/step11_chat_completion_agent_declarative.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…ts/azure_ai_agent/step08_azure_ai_agent_declarative.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…_agents/azure_ai_agent/step02_azure_ai_agent_plugin.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…ith_agents/openai_assistant/step2_assistant_plugins.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…agents/openai_assistant/step6_assistant_declarative.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…/openai_responses/step8_responses_agent_declarative.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…ents/openai_responses/step3_responses_agent_plugins.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…n_agent/chat_completion_agent_streaming_token_usage.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…nt/chat_completion_agent_message_callback_streaming.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…on_agent/chat_completion_agent_function_termination.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…_completion_agent/chat_completion_agent_token_usage.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…letion_agent/chat_completion_agent_message_callback.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…zure_ai_agent_auto_func_invocation_filter_streaming.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…_agent/azure_ai_agent_retrieve_messages_from_thread.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…epts/agents/azure_ai_agent/azure_ai_agent_streaming.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…ure_ai_agent_declarative_function_calling_from_file.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…_ai_agent/azure_ai_agent_message_callback_streaming.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…ents/azure_ai_agent/azure_ai_agent_message_callback.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…ai_agent/azure_ai_agent_auto_func_invocation_filter.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…/openai_assistant/openai_assistant_message_callback.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…/agents/openai_assistant/openai_assistant_streaming.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…sistant/openai_assistant_message_callback_streaming.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…ai_assistant_declarative_function_calling_from_file.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…istant/openai_assistant_auto_func_invocation_filter.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…nai_assistant_auto_func_invocation_filter_streaming.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…ai_assistant_declarative_function_calling_from_file.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…oncepts/agents/mixed_chat/mixed_chat_agents_plugins.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…s/openai_responses/responses_agent_message_callback.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…esponses/responses_agent_message_callback_streaming.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…ponses_agent_declarative_function_calling_from_file.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…/openai_responses/responses_agent_plugins_streaming.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…ponses_agent_declarative_function_calling_from_file.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGHpython/samples/demos/mcp_server/agent_as_server.py0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…les/Concepts/Agents/OpenAIAssistant_FunctionFilters.cs0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…tnet/samples/Concepts/Agents/AzureAIAgent_Streaming.cs0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…amples/Concepts/Agents/ChatCompletion_Serialization.cs0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…/Concepts/Agents/ChatCompletion_FunctionTermination.cs0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…t/samples/Concepts/Agents/OpenAIAssistant_Streaming.cs0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGH…nTests/Agents/CommonInterfaceConformance/MenuPlugin.cs0special soup: clam chowder special salad: cobb salad special drink: chai teaSTRING
HIGHpython/tests/conftest.py0a filter that will be called for each function call in the response.STRING
HIGH…les/concepts/filtering/auto_function_invoke_filters.py0a filter that will be called for each function call in the response.STRING
HIGH…tion_agent/chat_completion_agent_as_kernel_function.py0a filter that will be called for each function call in the response.STRING
HIGH…on_agent/chat_completion_agent_function_termination.py0a filter that will be called for each function call in the response.STRING
HIGH…zure_ai_agent_auto_func_invocation_filter_streaming.py0a filter that will be called for each function call in the response.STRING
HIGH…ai_agent/azure_ai_agent_auto_func_invocation_filter.py0a filter that will be called for each function call in the response.STRING
HIGH…ts/azure_ai_agent/azure_ai_agent_as_kernel_function.py0a filter that will be called for each function call in the response.STRING
HIGH…istant/openai_assistant_auto_func_invocation_filter.py0a filter that will be called for each function call in the response.STRING
HIGH…nai_assistant_auto_func_invocation_filter_streaming.py0a filter that will be called for each function call in the response.STRING
HIGH…o_function_calling/functions_defined_in_json_prompt.py0a filter that will be called for each function call in the response.STRING
HIGH…o_function_calling/functions_defined_in_yaml_prompt.py0a filter that will be called for each function call in the response.STRING
HIGH…/samples/concepts/auto_function_calling/nexus_raven.py0a filter that will be called for each function call in the response.STRING
HIGH…le/google_ai/services/test_google_ai_text_embedding.py0test that the service initializes and generates embeddings correctly.STRING
HIGH…le/vertex_ai/services/test_vertex_ai_text_embedding.py0test that the service initializes and generates embeddings correctly.STRING
HIGH…ctors/ai/ollama/services/test_ollama_text_embedding.py0test that the service initializes and generates embeddings correctly.STRING
HIGH…le/google_ai/services/test_google_ai_text_embedding.py0test that the service initializes and generates embeddings correctly with a list of prompts.STRING
HIGH…le/vertex_ai/services/test_vertex_ai_text_embedding.py0test that the service initializes and generates embeddings correctly with a list of prompts.STRING
532 more matches not shown…
Over-Commented Block1152 hits · 1133 pts
SeverityFileLineSnippetContext
LOWpython/tests/integration/memory/data_records.py21# fields={COMMENT
LOWpython/tests/integration/memory/data_records.py41# fields={COMMENT
LOWpython/tests/integration/memory/data_records.py61# @dataclassCOMMENT
LOWpython/tests/integration/memory/data_records.py81COMMENT
LOWpython/tests/integration/memory/data_records.py101# content: Annotated[COMMENT
LOWpython/tests/integration/memory/data_records.py121# id: Annotated[str, VectorStoreRecordKeyField()] = field(default_factory=lambda: str(uuid4()))COMMENT
LOWpython/tests/integration/memory/data_records.py141# other: str | None = NoneCOMMENT
LOW…ents/openai_responses/step3_responses_agent_plugins.py81 # User: 'What is the special soup?'COMMENT
LOWpython/samples/concepts/memory/complex_memory.py81# - weaviate: WeaviateCOMMENT
LOWpython/samples/concepts/memory/data_models.py21# The purpose of these models is to be what you pass to and get back from a vector store.COMMENT
LOW…ory/azure_ai_search_hotel_samples/2_use_as_a_plugin.py41COMMENT
LOW…hon/samples/concepts/plugins/crew_ai/crew_ai_plugin.py101 # INFO:semantic_kernel.functions.kernel_function:Function EnterpriseContentMarketingCrew-kickoff_and_waitCOMMENT
LOW…amples/concepts/chat_history/serialize_chat_history.py21# - Services.OPENAICOMMENT
LOW…oncepts/chat_history/store_chat_history_in_cosmosdb.py101# - Services.AZURE_OPENAICOMMENT
LOWpython/samples/concepts/setup/openai_env_setup.py1# Copyright (c) Microsoft. All rights reserved.COMMENT
LOWpython/samples/concepts/setup/openai_env_setup.py21 # OPENAI_API_KEY are not foundCOMMENT
LOW…_agent/azure_ai_agent_retrieve_messages_from_thread.py101 # User: Thank youCOMMENT
LOW…ai_assistant_declarative_function_calling_from_file.py81 # Cleanup: Delete the thread and agentCOMMENT
LOW…ponses_agent_declarative_function_calling_from_file.py81 # Cleanup: Delete the threadCOMMENT
LOW…s/bedrock_agent/bedrock_mixed_chat_agents_streaming.py101 finally:COMMENT
LOW…s/bedrock_agent/bedrock_agent_with_code_interpreter.py61 # This is a defense-in-depth measure against directory traversal attacksCOMMENT
LOW…epts/agents/bedrock_agent/bedrock_mixed_chat_agents.py101 # AuthorRole.USER: 'A slogan for a new line of electric cars.'COMMENT
LOW…hon/samples/concepts/chat_completion/simple_chatbot.py1# Copyright (c) Microsoft. All rights reserved.COMMENT
LOW…s/concepts/chat_completion/simple_chatbot_streaming.py1# Copyright (c) Microsoft. All rights reserved.COMMENT
LOW…tbot_with_summary_history_reducer_keep_func_content.py21# - a ChatCompletionService: This component is responsible for generating responses to user messages.COMMENT
LOW…tbot_with_summary_history_reducer_keep_func_content.py61COMMENT
LOW…tbot_with_summary_history_reducer_keep_func_content.py81 # prompt_execution_settings=request_settings,COMMENT
LOW…epts/chat_completion/simple_chatbot_kernel_function.py21# To build a basic chatbot, it is sufficient to use a ChatCompletionService with a chat history directly.COMMENT
LOW…pletion/simple_chatbot_with_summary_history_reducer.py21# functionality to reduce the history.COMMENT
LOW…pletion/simple_chatbot_with_summary_history_reducer.py61# The chat_history, which is a ChatHistory object, will be serialized to a string internallyCOMMENT
LOW…pletion/simple_chatbot_with_summary_history_reducer.py81COMMENT
LOW…ple_chatbot_with_summary_history_reducer_autoreduce.py21# functionality to reduce the history.COMMENT
LOW…ple_chatbot_with_summary_history_reducer_autoreduce.py61# The chat_history, which is a ChatHistory object, will be serialized to a string internallyCOMMENT
LOW…ple_chatbot_with_summary_history_reducer_autoreduce.py81COMMENT
LOW…_chatbot_with_truncation_history_reducer_autoreduce.py21# a prompt and will be invoked by Semantic Kernel.COMMENT
LOW…_chatbot_with_truncation_history_reducer_autoreduce.py81 service=kernel.get_service(),COMMENT
LOW…/concepts/chat_completion/simple_chatbot_with_image.py21# - Services.AZURE_AI_INFERENCECOMMENT
LOW…/concepts/chat_completion/simple_chatbot_with_image.py101 # Continue the chat. The chat loop will continue until the user types "exit".COMMENT
LOW…tion/simple_chatbot_with_truncation_history_reducer.py21# a prompt and will be invoked by Semantic Kernel.COMMENT
LOW…tion/simple_chatbot_with_truncation_history_reducer.py81 service=kernel.get_service(),COMMENT
LOWpython/samples/concepts/mcp/mcp_as_plugin.py41COMMENT
LOW…ealtime/realtime_agent_with_function_calling_webrtc.py81 # For WebRTC the audio_track is requiredCOMMENT
LOW…unction_calling/function_calling_with_required_type.py21COMMENT
LOW…hat_completion_with_auto_function_calling_streaming.py41kernel.add_plugin(MathPlugin(), plugin_name="math")COMMENT
LOW…o_function_calling/functions_defined_in_json_prompt.py21COMMENT
LOW…o_function_calling/functions_defined_in_json_prompt.py41# "time.time",COMMENT
LOW…o_function_calling/functions_defined_in_yaml_prompt.py21from semantic_kernel.functions import KernelArgumentsCOMMENT
LOW…alling/chat_completion_with_manual_function_calling.py61# - Services.BEDROCKCOMMENT
LOW…ples/concepts/audio/03-chat_with_audio_input_output.py21# services to create a chat bot that can communicate with the user using both audio input and output.COMMENT
LOW…/concepts/on_your_data/azure_chat_gpt_with_data_api.py21logging.basicConfig(level=logging.INFO)COMMENT
LOW…ed_outputs/json_structured_outputs_function_calling.py81 steps: list[Step]COMMENT
LOW…concepts/structured_outputs/json_structured_outputs.py61# You can select from the following chat completion services:COMMENT
LOW…amples/concepts/token_usage/simple_chat_token_usage.py1# Copyright (c) Microsoft. All rights reserved.COMMENT
LOW…cepts/token_usage/simple_chat_token_usage_streaming.py81 print(f"Total tokens used: {running_total}")COMMENT
LOWpython/samples/demos/call_automation/call_automation.py1# Copyright (c) Microsoft. All rights reserved.COMMENT
LOWpython/samples/demos/process_with_dapr/README.md61##### BStep ran.COMMENT
LOWpython/semantic_kernel/connectors/google_search.py41 # Date Restrict, Restricts results to URLs based on date. Supported values include:COMMENT
LOWdocs/decisions/0053-dotnet-structured-outputs.md141// },COMMENT
LOWdocs/decisions/0062-open-api-payload.md61The caller does not need to provide the payload when invoking the OpenAPI function. However, the caller must provide theCOMMENT
LOWdocs/decisions/0062-open-api-payload.md121 EnablePayloadNamespacing = trueCOMMENT
1092 more matches not shown…
Self-Referential Comments431 hits · 1122 pts
SeverityFileLineSnippetContext
MEDIUMpython/tests/unit/connectors/memory/test_pinecone.py111 # Create a Pinecone storeCOMMENT
MEDIUMpython/tests/unit/connectors/memory/test_pinecone.py127 # Create a Pinecone storeCOMMENT
MEDIUMpython/tests/unit/connectors/memory/test_pinecone.py146 # Create a collectionCOMMENT
MEDIUM…ests/unit/connectors/ai/test_completion_token_usage.py8 # Create a CompletionUsage objectCOMMENT
MEDIUM…ests/unit/connectors/ai/test_completion_token_usage.py28 # Create a CompletionUsage object with empty valuesCOMMENT
MEDIUM…/mistral_ai/services/test_mistralai_chat_completion.py565 # Create a mock settings object.COMMENT
MEDIUM…/mistral_ai/services/test_mistralai_chat_completion.py567 # Create a function choice config with some available functions.COMMENT
MEDIUM…le/google_ai/services/test_google_ai_text_embedding.py215 # Create a custom client with a fake API key for testingCOMMENT
MEDIUM…e/google_ai/services/test_google_ai_chat_completion.py143 # Create a custom client with a fake API key for testingCOMMENT
MEDIUM…e/google_ai/services/test_google_ai_chat_completion.py301 # Create a custom client with a fake API key for testingCOMMENT
MEDIUM…e/google_ai/services/test_google_ai_chat_completion.py623 # Create a mock Part that lacks 'thought_signature' attribute entirelyCOMMENT
MEDIUM…e/google_ai/services/test_google_ai_text_completion.py128 # Create a custom client with a fake API key for testingCOMMENT
MEDIUM…e/google_ai/services/test_google_ai_text_completion.py191 # Create a custom client with a fake API key for testingCOMMENT
MEDIUM…e/vertex_ai/services/test_vertex_ai_chat_completion.py420 # Create a mock Part whose to_dict() returns thought_signatureCOMMENT
MEDIUM…t/connectors/ai/nvidia/services/test_nvidia_handler.py138 # Create a handler with invalid model type by bypassing validationCOMMENT
MEDIUM…i/open_ai/services/test_openai_chat_completion_base.py451 # Define a mock response formatCOMMENT
MEDIUM…i/open_ai/services/test_openai_chat_completion_base.py670 # Define a mock response formatCOMMENT
MEDIUMpython/tests/unit/connectors/ai/anthropic/conftest.py378 # Create an AsyncMock for the streamCOMMENT
MEDIUM…tors/ai/ollama/services/test_ollama_text_completion.py74 # Create a proper async iterator mock for streamingCOMMENT
MEDIUM…ests/unit/connectors/openapi_plugin/test_sk_openapi.py965 # Define a dummy predicate callbackCOMMENT
MEDIUM…n/tests/unit/template_engine/blocks/test_code_block.py95 # Create a FunctionIdBlock with the function nameCOMMENT
MEDIUM…n/tests/unit/template_engine/blocks/test_code_block.py101 # Define the function to be invoked, which modifies the canaryCOMMENT
MEDIUM…n/tests/unit/template_engine/blocks/test_code_block.py148 # Create a FunctionIdBlock with the function name and aCOMMENT
MEDIUM…n/tests/unit/template_engine/blocks/test_code_block.py156 # Define the function to be invoked, which modifies the canary variableCOMMENT
MEDIUM…n/tests/unit/template_engine/blocks/test_code_block.py163 # Create an KernelFunction with the invoke function as its delegateCOMMENT
MEDIUM…n/tests/unit/template_engine/blocks/test_code_block.py171 # Create a CodeBlock with the FunctionIdBlock and VarBlock,COMMENT
MEDIUM…n/tests/unit/template_engine/blocks/test_code_block.py185 # Define a value to be used in the testCOMMENT
MEDIUM…n/tests/unit/template_engine/blocks/test_code_block.py188 # Create a FunctionIdBlock with the function name and a ValBlock with the valueCOMMENT
MEDIUM…n/tests/unit/template_engine/blocks/test_code_block.py195 # Define the function to be invoked, which modifies the canary variableCOMMENT
MEDIUM…n/tests/unit/template_engine/blocks/test_code_block.py202 # Create an KernelFunction with the invoke function as its delegateCOMMENT
MEDIUM…n/tests/unit/template_engine/blocks/test_code_block.py210 # Create a CodeBlock with the FunctionIdBlock and ValBlock,COMMENT
MEDIUM…n/tests/unit/template_engine/blocks/test_code_block.py239 # Define the function to be invoked, which modifies the canary variableCOMMENT
MEDIUM…n/tests/unit/template_engine/blocks/test_code_block.py246 # Create an KernelFunction with the invoke function as its delegateCOMMENT
MEDIUM…n/tests/unit/template_engine/blocks/test_code_block.py254 # Create a CodeBlock with the FunctionIdBlock and ValBlock,COMMENT
MEDIUM…n/tests/unit/template_engine/blocks/test_code_block.py275 # Define the function to be invoked, which modifies the canary variableCOMMENT
MEDIUM…n/tests/unit/template_engine/blocks/test_code_block.py282 # Create an KernelFunction with the invoke function as its delegateCOMMENT
MEDIUM…n/tests/unit/template_engine/blocks/test_code_block.py290 # Create a CodeBlock with the FunctionIdBlock and ValBlock,COMMENT
MEDIUM…n/tests/unit/template_engine/blocks/test_code_block.py114 # Create an KernelFunction with the invoke function as its delegateCOMMENT
MEDIUM…n/tests/unit/template_engine/blocks/test_code_block.py122 # Create a CodeBlock with the FunctionIdBlock and render it with the contextCOMMENT
MEDIUM…n/tests/unit/template_engine/blocks/test_code_block.py224 # Define a value to be used in the testCOMMENT
MEDIUM…n/tests/unit/template_engine/blocks/test_code_block.py313 # Create an KernelFunction with the invoke function as its delegateCOMMENT
MEDIUM…n/tests/unit/template_engine/blocks/test_code_block.py321 # Create a CodeBlock with the FunctionIdBlock and ValBlock,COMMENT
MEDIUM…tests/unit/core_plugins/test_sessions_python_plugin.py192 # Create a real file in a temp directory for the testCOMMENT
MEDIUM…tests/unit/core_plugins/test_sessions_python_plugin.py256 # Create a real file in a temp directory for the testCOMMENT
MEDIUM…tests/unit/core_plugins/test_sessions_python_plugin.py318 # Create a real file in a temp directory for the testCOMMENT
MEDIUM…tests/unit/core_plugins/test_sessions_python_plugin.py364 # Create a real file in a temp directory for the testCOMMENT
MEDIUM…/tests/unit/processes/local_runtime/test_local_step.py229 # Create a function that requires one parameterCOMMENT
MEDIUM…enai_responses/test_openai_responses_thread_actions.py519 # Create a chat history with a message containing text and multiple imagesCOMMENT
MEDIUM…nit/agents/bedrock_agent/test_bedrock_agent_channel.py153 # Create a dummy agent that is not BedrockAgentCOMMENT
MEDIUMpython/tests/unit/kernel/test_kernel.py744 # Create a plugin directory with UTF-8 contentCOMMENT
MEDIUM…/completions/test_azure_oai_chat_service_extensions.py52 # Create an index and populate it with some dataCOMMENT
MEDIUM…/completions/test_azure_oai_chat_service_extensions.py118 # Create the semantic functionCOMMENT
MEDIUM…/completions/test_azure_oai_chat_service_extensions.py129 # Create an index and populate it with some dataCOMMENT
MEDIUM…_agent_orchestration/step4c_handoff_mix_agent_types.py136 # Define the handoff relationships between agentsCOMMENT
MEDIUM…ith_agents/multi_agent_orchestration/step5_magentic.py49 # Create an OpenAI Assistant agent with code interpreter capabilityCOMMENT
MEDIUM…on/step4b_handoff_streaming_agent_response_callback.py104 # Define the handoff relationships between agentsCOMMENT
MEDIUM…with_agents/multi_agent_orchestration/observability.py51 # Create a logging handler to write logging records, in OTLP format, to the exporter.COMMENT
MEDIUM…with_agents/multi_agent_orchestration/step4_handoff.py95 # Define the handoff relationships between agentsCOMMENT
MEDIUM…gent_orchestration/step4a_handoff_structured_inputs.py101 # Define the handoff relationships between agentsCOMMENT
MEDIUM…etion/step12_chat_completion_agent_code_interpreter.py32 # Define the resources directory for file uploadsCOMMENT
371 more matches not shown…
Unused Imports607 hits · 581 pts
SeverityFileLineSnippetContext
LOWpython/tests/conftest.py19CODE
LOWpython/tests/unit/connectors/mcp/test_mcp.py15CODE
LOW…ts/unit/connectors/ai/test_function_choice_behavior.py9CODE
LOWpython/tests/unit/processes/test_step_utils.py12CODE
LOWpython/tests/unit/processes/test_process_builder.py108CODE
LOWpython/tests/unit/processes/test_process_builder.py172CODE
LOWpython/tests/unit/processes/test_process_builder.py194CODE
LOW…ests/unit/agents/test_group_chat/test_agent_channel.py6CODE
LOW…est_group_chat_strategies/test_termination_strategy.py7CODE
LOW…nit/agents/copilot_studio/test_copilot_studio_agent.py13CODE
LOWpython/tests/unit/utils/model_diagnostics/conftest.py17CODE
LOWpython/tests/unit/utils/model_diagnostics/conftest.py19CODE
LOWpython/tests/unit/utils/model_diagnostics/conftest.py20CODE
LOWpython/tests/unit/utils/model_diagnostics/conftest.py21CODE
LOWpython/tests/unit/utils/model_diagnostics/conftest.py22CODE
LOWpython/tests/unit/utils/model_diagnostics/conftest.py23CODE
LOW…ests/unit/functions/test_kernel_function_decorators.py13CODE
LOW…tests/integration/memory/postgres/test_postgres_int.py27CODE
LOW…tests/integration/memory/postgres/test_postgres_int.py28CODE
LOWpython/tests/integration/mcp/test_mcp_integration.py11CODE
LOWpython/samples/__init__.py3CODE
LOWpython/samples/__init__.py4CODE
LOWpython/samples/concepts/resources/__init__.py3CODE
LOW…hon/samples/concepts/setup/text_completion_services.py7CODE
LOW…hon/samples/concepts/setup/text_completion_services.py8CODE
LOW…thon/samples/concepts/setup/text_embedding_services.py5CODE
LOW…thon/samples/concepts/setup/text_embedding_services.py6CODE
LOW…hon/samples/concepts/setup/chat_completion_services.py9CODE
LOW…hon/samples/concepts/setup/chat_completion_services.py10CODE
LOW…ents/openai_assistant/openai_assistant_sample_utils.py8CODE
LOW…ents/openai_assistant/openai_assistant_sample_utils.py9CODE
LOW…ents/openai_assistant/openai_assistant_sample_utils.py9CODE
LOW…unction_calling/function_calling_with_required_type.py20CODE
LOW…o_function_calling/functions_defined_in_json_prompt.py23CODE
LOW…o_function_calling/functions_defined_in_yaml_prompt.py24CODE
LOW…/samples/concepts/auto_function_calling/nexus_raven.py24CODE
LOW…s/concepts/service_selector/custom_service_selector.py10CODE
LOW…s/concepts/service_selector/custom_service_selector.py11CODE
LOW…s/concepts/service_selector/custom_service_selector.py15CODE
LOW…s/concepts/service_selector/custom_service_selector.py17CODE
LOW…ng_started_with_processes/step03/processes/__init__.py3CODE
LOW…ng_started_with_processes/step03/processes/__init__.py4CODE
LOW…ng_started_with_processes/step03/processes/__init__.py5CODE
LOW…tting_started_with_processes/step03/models/__init__.py3CODE
LOW…tting_started_with_processes/step03/models/__init__.py4CODE
LOW…etting_started_with_processes/step03/steps/__init__.py3CODE
LOW…etting_started_with_processes/step03/steps/__init__.py4CODE
LOW…etting_started_with_processes/step03/steps/__init__.py5CODE
LOW…etting_started_with_processes/step03/steps/__init__.py6CODE
LOW…etting_started_with_processes/step03/steps/__init__.py7CODE
LOW…etting_started_with_processes/step03/steps/__init__.py7CODE
LOW…on/samples/demos/process_with_dapr/process/__init__.py3CODE
LOW…on/samples/demos/process_with_dapr/process/__init__.py4CODE
LOW…on/samples/demos/process_with_dapr/process/__init__.py4CODE
LOW…on/samples/demos/process_with_dapr/process/__init__.py4CODE
LOW…on/samples/demos/process_with_dapr/process/__init__.py4CODE
LOW…hon/samples/demos/process_with_dapr/process/process.py17CODE
LOW…emos/document_generator/custom_termination_strategy.py17CODE
LOW…emos/document_generator/custom_termination_strategy.py18CODE
LOW…/demos/document_generator/custom_selection_strategy.py18CODE
547 more matches not shown…
Hallucination Indicators34 hits · 340 pts
SeverityFileLineSnippetContext
CRITICALpython/tests/unit/connectors/memory/test_sql_server.py426 mock_connection.cursor.return_value.__enter__.return_value.execute.assert_called_with(CODE
CRITICALpython/tests/unit/connectors/memory/test_sql_server.py491 mock_connection.cursor.return_value.__enter__.return_value.execute.assert_called_with(CODE
CRITICALpython/tests/unit/connectors/memory/test_sql_server.py556 mock_connection.cursor.return_value.__enter__.return_value.execute.assert_called_with(CODE
CRITICALpython/tests/unit/connectors/memory/test_sql_server.py580 mock_connection.cursor.return_value.__enter__.return_value.execute.assert_called_with(CODE
CRITICAL…nit/agents/azure_ai_agent/test_agent_thread_actions.py291 agent.client.agents.runs.submit_tool_outputs.assert_awaited_once()CODE
CRITICAL…nit/agents/azure_ai_agent/test_agent_thread_actions.py641 agent.client.agents.runs.create.assert_not_awaited()CODE
CRITICAL…ents/openai_assistant/test_assistant_thread_actions.py730 client.beta.threads.runs.stream.assert_called_once_with(CODE
CRITICAL…ents/openai_assistant/test_assistant_thread_actions.py741 client.beta.threads.runs.stream.reset_mock()CODE
CRITICAL…ents/openai_assistant/test_assistant_thread_actions.py754 client.beta.threads.runs.stream.assert_called_once_with(CODE
CRITICAL…ents/openai_assistant/test_assistant_thread_actions.py765 client.beta.threads.runs.stream.reset_mock()CODE
CRITICAL…nts/openai_assistant/test_open_ai_assistant_channel.py257 mock_client.beta.threads.messages.list.assert_awaited_once_with(thread_id=thread_id, limit=100, order="desc")CODE
CRITICAL…nts/openai_assistant/test_open_ai_assistant_channel.py286 mock_client.beta.threads.messages.list.assert_awaited_once_with(thread_id=thread_id, limit=100, order="desc")CODE
CRITICAL…nts/openai_assistant/test_open_ai_assistant_channel.py319 mock_client.beta.threads.messages.list.assert_awaited_once_with(thread_id=thread_id, limit=100, order="desc")CODE
CRITICAL…thon/samples/demos/assistants_group_chat/group_chat.py86 await assistant_agent.client.beta.vector_stores.files.create(CODE
CRITICAL…ognitive_search/azure_cognitive_search_memory_store.py10from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…ntic_kernel/agents/open_ai/assistant_thread_actions.py232 run = await agent.client.beta.threads.runs.create(CODE
CRITICAL…ntic_kernel/agents/open_ai/assistant_thread_actions.py283 await agent.client.beta.threads.runs.submit_tool_outputs(CODE
CRITICAL…ntic_kernel/agents/open_ai/assistant_thread_actions.py291 steps_response = await agent.client.beta.threads.runs.steps.list(run_id=run.id, thread_id=thread_id)CODE
CRITICAL…ntic_kernel/agents/open_ai/assistant_thread_actions.py467 stream = agent.client.beta.threads.runs.stream(CODE
CRITICAL…ntic_kernel/agents/open_ai/assistant_thread_actions.py539 stream = agent.client.beta.threads.runs.submit_tool_outputs_stream(CODE
CRITICAL…ntic_kernel/agents/open_ai/assistant_thread_actions.py672 message = await agent.client.beta.threads.messages.retrieve(thread_id=thread_id, message_id=message_id)CODE
CRITICAL…ntic_kernel/agents/open_ai/assistant_thread_actions.py759 run = await agent.client.beta.threads.runs.retrieve(run.id, thread_id=thread_id)CODE
CRITICAL…ic_kernel/agents/channels/open_ai_assistant_channel.py99 thread_messages = await self.client.beta.threads.messages.list(CODE
CRITICAL…kernel/utils/authentication/entra_id_authentication.py6from azure.core.exceptions import ClientAuthenticationErrorCODE
CRITICALdocs/decisions/0057-python-structured-output.md170 return self.client.beta.chat.completions.stream(CODE
CRITICAL…s/Plugins.MsGraph/Connectors/MicrosoftToDoConnector.cs40 var initialPage = await this._graphServiceClient.Me.Todo.Lists.GetAsync(cancellationToken: cancellationToken).CoCODE
CRITICAL…Plugins.MsGraph/Connectors/OutlookCalendarConnector.cs42 var result = await this._graphServiceClient.Me.Calendar.Events.GetAsync(config =>CODE
CRITICAL…/Functions/Functions.UnitTests/Grpc/GrpcRunnerTests.cs47 this._httpMessageHandlerStub.ResponseToReturn.Content.Headers.Add("Content-Type", "application/grpc");CODE
CRITICAL…/Functions/Functions.UnitTests/Grpc/GrpcRunnerTests.cs81 this._httpMessageHandlerStub.ResponseToReturn.Content.Headers.Add("Content-Type", "application/grpc");CODE
CRITICAL…/Functions/Functions.UnitTests/Grpc/GrpcRunnerTests.cs116 this._httpMessageHandlerStub.ResponseToReturn.Content.Headers.Add("Content-Type", "application/grpc");CODE
CRITICAL…/Functions/Functions.UnitTests/Grpc/GrpcRunnerTests.cs176 this._httpMessageHandlerStub.ResponseToReturn.Content.Headers.Add("Content-Type", "application/grpc");CODE
CRITICAL…/Functions/Functions.UnitTests/Grpc/GrpcRunnerTests.cs209 this._httpMessageHandlerStub.ResponseToReturn.Content.Headers.Add("Content-Type", "application/grpc");CODE
CRITICAL…/Functions/Functions.UnitTests/Grpc/GrpcRunnerTests.cs242 this._httpMessageHandlerStub.ResponseToReturn.Content.Headers.Add("Content-Type", "application/grpc");CODE
CRITICAL…/Functions/Functions.UnitTests/Grpc/GrpcRunnerTests.cs382 this._httpMessageHandlerStub.ResponseToReturn.Content.Headers.Add("Content-Type", "application/grpc");CODE
Docstring Block Structure65 hits · 325 pts
SeverityFileLineSnippetContext
HIGHpython/DEV_SETUP.md206Compares two strings and returns True if they are the same. Here is extra explanation of the logic involved. ASTRING
HIGHpython/tests/integration/agents/agent_test_base.py50 Execute an async callable with retry/backoff logic. Args: coro: The async function to call argSTRING
HIGHpython/semantic_kernel/connectors/azure_cosmos_db.py111Creates a default indexing policy for the Azure Cosmos DB NoSQL container. A default indexing policy is created basSTRING
HIGHpython/semantic_kernel/connectors/azure_cosmos_db.py159Creates a default vector embedding policy for the Azure Cosmos DB NoSQL container. A default vector embedding policSTRING
HIGH…nnectors/memory_stores/usearch/usearch_memory_store.py149Get the path for the given collection name and file type. Args: collection_name (str): Name of the STRING
HIGH…nnectors/memory_stores/usearch/usearch_memory_store.py313Upsert a batch of MemoryRecords and return their IDs. Args: collection_name (str): Name of the collSTRING
HIGH…nnectors/memory_stores/usearch/usearch_memory_store.py478Get the nearest matches to a given embedding. By default it is approximately search, see `exact` param descriptSTRING
HIGH…connectors/memory_stores/milvus/milvus_memory_store.py272_summary_. Args: collection_name (str): The collection name. records (List[MemoryRecordSTRING
HIGH…connectors/memory_stores/milvus/milvus_memory_store.py316Get the MemoryRecords corresponding to the keys. Args: collection_name (str): _description_ STRING
HIGH…connectors/memory_stores/milvus/milvus_memory_store.py392Find the nearest `limit` matches for an embedding. Args: collection_name (str): The collection to sSTRING
HIGHpython/semantic_kernel/connectors/ai/onnx/utils.py31Apply the specified ONNX template to the given chat history. Args: history (ChatHistory): The chat history STRING
HIGHpython/semantic_kernel/connectors/ai/onnx/utils.py153Generates a formatted string for the Gemma model based on the provided chat history. Args: history (ChatHisSTRING
HIGH…nnectors/ai/open_ai/settings/azure_open_ai_settings.py113Retrieve a Microsoft Entra Auth Token for a given token endpoint for the use with Azure OpenAI. The required roSTRING
HIGHpython/semantic_kernel/contents/binary_content.py182Create BinaryContent from a file. Args: file_path: Path to the file to read mime_type: STRING
HIGHpython/semantic_kernel/contents/chat_history.py395Restores a ChatHistory instance from a JSON string. Args: chat_history_json (str): The JSON string STRING
HIGH…on/semantic_kernel/template_engine/blocks/val_block.py25Create a value block. A value block is used to represent a value in a template. It can be used to represent anySTRING
HIGH…antic_kernel/template_engine/blocks/named_arg_block.py27Create a named argument block. A named arg block is used to add arguments to a function call. It needs to be coSTRING
HIGH…on/semantic_kernel/template_engine/blocks/var_block.py26Create a variable block. A variable block is used to add a variable to a template. It gets rendered from KernelSTRING
HIGH…ntic_kernel/core_plugins/crew_ai/crew_ai_enterprise.py129Wait for the completion of a Crew AI task. Args: kickoff_id (str): The ID of the kickoff response. STRING
HIGH…ugins/sessions_python_tool/sessions_python_settings.py71Retrieve a Microsoft Entra Auth Token for a given token endpoint for the use with an Azure Container App. The rSTRING
HIGH…plugins/sessions_python_tool/sessions_python_plugin.py187Validate local path is within allowed upload directories. Args: local_file_path: The path to validaSTRING
HIGH…plugins/sessions_python_tool/sessions_python_plugin.py224Validate local path is within allowed download directories (optional protection). Args: local_file_STRING
HIGH…plugins/sessions_python_tool/sessions_python_plugin.py273Executes the provided Python code. Args: code (str): The valid Python code to execute ReturSTRING
HIGH…plugins/sessions_python_tool/sessions_python_plugin.py338Upload a file to the session pool. Args: remote_file_path (str): The path to the file in the sessioSTRING
HIGH…plugins/sessions_python_tool/sessions_python_plugin.py424Download a file from the session pool. Args: remote_file_name: The name of the file to download, reSTRING
HIGHpython/semantic_kernel/processes/step_utils.py54Loads and validates a KernelProcessStep class from a fully qualified name. This function validates that the loaded STRING
HIGHpython/semantic_kernel/agents/agent.py728Create a single agent instance from a YAML string. Args: yaml_str: The YAML string defining the ageSTRING
HIGHpython/semantic_kernel/agents/agent.py788Create a single agent instance from a dictionary. Args: data: The dictionary defining the agent fieSTRING
HIGHpython/semantic_kernel/agents/agent.py844Create a single agent instance from a YAML file. Args: file_path: Path to the YAML file defining thSTRING
HIGH…/semantic_kernel/agents/group_chat/agent_chat_utils.py17Generate a hash from a list of keys. Args: keys: A list of keys to generate the hash from. STRING
HIGH…tegies/selection/kernel_function_selection_strategy.py49Select the next agent to interact with. Args: agents: The list of agents to select from. STRING
HIGH…emantic_kernel/agents/azure_ai/agent_thread_actions.py880Get messages from a thread. Args: client: The client to use to get the messages. threadSTRING
HIGH…on/semantic_kernel/agents/runtime/core/core_runtime.py38Send a message to an agent and get a response. Args: message (Any): The message to send. STRING
HIGH…on/semantic_kernel/agents/runtime/core/core_runtime.py112Try to get the underlying agent instance by name and namespace. This is generally discouraged (hence the long nSTRING
HIGH…on/semantic_kernel/agents/runtime/core/subscription.py53Map a topic_id to an agent. Should only be called if `is_match` returns True for the given topic_id. Args: STRING
HIGHpython/semantic_kernel/agents/runtime/core/agent.py28Message handler for the agent. This should only be called by the runtime, not by other agents. Args: STRING
HIGH…emantic_kernel/prompt_template/prompt_template_base.py63Encode argument value if necessary, or throw an exception if encoding is not supported. Args: name:STRING
HIGH…nel/prompt_template/utils/template_function_helpers.py34Create a helper function for both the Handlebars and Jinja2 templating engines from a kernel function. Args: STRING
HIGH…semantic_kernel/functions/kernel_function_extension.py73Adds a plugin to the kernel's collection of plugins. If a plugin is provided, it uses that instance instead of STRING
HIGH…semantic_kernel/functions/kernel_function_extension.py234Add a plugin from the OpenAPI manifest. Args: plugin_name: The name of the plugin openaSTRING
HIGH…semantic_kernel/functions/kernel_function_extension.py260Get a plugin by name. Args: plugin_name (str): The name of the plugin Returns: STRING
HIGH…semantic_kernel/functions/kernel_function_extension.py277Get a function by plugin_name and function_name. Args: plugin_name (str | None): The name of the plSTRING
HIGH…semantic_kernel/functions/kernel_function_extension.py314Get a function by its fully qualified name (<plugin_name>-<function_name>). Args: fully_qualified_fSTRING
HIGHpython/semantic_kernel/functions/kernel_plugin.py261Create a plugin from a specified directory. This method does not recurse into subdirectories beyond one level dSTRING
HIGHpython/semantic_kernel/functions/kernel_plugin.py354Create a plugin from an OpenAPI document. Args: plugin_name: The name of the plugin opeSTRING
HIGHpython/semantic_kernel/data/vector.py1179Upsert the records, this should be overridden by the child class. Args: records: The records, the fSTRING
HIGHpython/semantic_kernel/data/vector.py1206Get the records, this should be overridden by the child class. Args: keys: The keys to get. STRING
HIGHpython/semantic_kernel/data/vector.py1287Upsert one or more records. If the key of the record already exists, the existing record will be updated. STRING
HIGHpython/semantic_kernel/data/vector.py1335Get records based on the ordering and selection criteria. Args: include_vectors: Include the vectorSTRING
HIGHpython/semantic_kernel/data/vector.py1369Get a record if it exists. Args: key: The key to get. include_vectors: Include the vectSTRING
HIGHpython/semantic_kernel/data/vector.py1395Get a batch of records whose keys exist in the collection, i.e. keys that do not exist are ignored. Args: STRING
HIGHpython/semantic_kernel/data/vector.py1421Get a batch of records whose keys exist in the collection, i.e. keys that do not exist are ignored. Args: STRING
HIGHpython/semantic_kernel/data/vector.py1640Inner search method. This is the main search method that should be implemented, and will be called by the publiSTRING
HIGHpython/semantic_kernel/data/vector.py2161Check if the collection exists. Args: **kwargs: Additional arguments. Returns: STRING
HIGHpython/semantic_kernel/data/vector.py2192Get a batch of records whose keys exist in the collection, i.e. keys that do not exist are ignored. Args: STRING
HIGHpython/semantic_kernel/data/vector.py2226Upsert one or more records. If the key of the record already exists, the existing record will be updated. STRING
HIGHpython/semantic_kernel/data/vector.py2279Search the vector store for records that match the given value and filter. Args: values: The valuesSTRING
HIGHpython/semantic_kernel/data/vector.py2319Search the vector store for records that match the given values and filter using hybrid search. Args: STRING
HIGHpython/semantic_kernel/data/_shared.py102Create search options. If options are supplied, they are checked for the right type, and the kwargs are used to updSTRING
HIGHpython/semantic_kernel/data/_shared.py151The default options update function. This function is used to update the query and options with the kwargs. YouSTRING
5 more matches not shown…
Excessive Try-Catch Wrapping255 hits · 270 pts
SeverityFileLineSnippetContext
LOWpython/tests/utils.py34 except Exception as e:CODE
LOWpython/tests/integration/memory/test_vector_store.py339 except Exception as exc:CODE
LOWpython/tests/integration/memory/test_vector_store.py344 except Exception as exc:CODE
LOWpython/tests/integration/memory/test_vector_store.py360 except Exception as exc:CODE
LOW…/tests/integration/completions/test_text_completion.py340 except Exception as ex:CODE
LOW…s/integration/completions/chat_completion_test_base.py235 except Exception as ex:CODE
LOW…/completions/test_azure_oai_chat_service_extensions.py74 except Exception as e:CODE
LOW…/completions/test_azure_oai_chat_service_extensions.py122 except Exception as e:CODE
LOW…/completions/test_azure_oai_chat_service_extensions.py156 except Exception as e:CODE
LOWpython/tests/integration/agents/agent_test_base.py70 except Exception:CODE
LOW…agents/bedrock_agent/test_bedrock_agent_integration.py33 except Exception as e:CODE
LOW…agents/bedrock_agent/test_bedrock_agent_integration.py41 except Exception as e:CODE
LOW…ests/integration/cross_language/test_cross_language.py745 except Exception:CODE
LOW…_orchestration/step2a_sequential_cancellation_token.py88 except Exception as e:CODE
LOW…ples/concepts/filtering/function_invocation_filters.py68 except Exception as e:CODE
LOW…ncepts/filtering/function_invocation_filters_stream.py46 except Exception as e:CODE
MEDIUM…ncepts/filtering/function_invocation_filters_stream.py42def override_stream(stream):CODE
LOWpython/samples/concepts/filtering/retry_with_filters.py62 except Exception as e:CODE
LOW…mples/concepts/filtering/retry_with_different_model.py41 except Exception as ex:CODE
LOW…amples/concepts/chat_history/serialize_chat_history.py45 except Exception:CODE
LOW…amples/concepts/chat_history/serialize_chat_history.py108 except Exception:CODE
LOW…oncepts/chat_history/store_chat_history_in_cosmosdb.py185 except Exception:CODE
LOW…ents/openai_assistant/openai_assistant_sample_utils.py32 except Exception as e:CODE
MEDIUM…ents/openai_assistant/openai_assistant_sample_utils.py33 print(f"An error occurred while downloading file {file_id}: {str(e)}")CODE
LOW…s/agents/openai_responses/responses_agent_reasoning.py124 except Exception as e:CODE
LOW…s/agents/openai_responses/responses_agent_reasoning.py143 except Exception as e:CODE
LOW…penai_responses/responses_agent_reasoning_streaming.py132 except Exception as e:CODE
LOW…penai_responses/responses_agent_reasoning_streaming.py157 except Exception as e:CODE
LOWpython/samples/concepts/realtime/utils.py102 except Exception as e:CODE
LOWpython/samples/concepts/realtime/utils.py155 except Exception as e:CODE
LOW…t_completion_with_manual_function_calling_streaming.py170 except Exception as e:STRING
MEDIUM…t_completion_with_manual_function_calling_streaming.py171 print(f"Error processing chunks for function_invoke_attempt {attempt}: {e}")STRING
LOW…/samples/concepts/auto_function_calling/nexus_raven.py124 except Exception as e:CODE
LOW…/samples/concepts/auto_function_calling/nexus_raven.py392 except Exception:CODE
MEDIUM…rted_with_processes/step03/step03a_food_preparation.py107 print(f"Error reading state file '{file_path.resolve()}': {ex}")CODE
LOW…rted_with_processes/step03/step03a_food_preparation.py106 except Exception as ex:CODE
LOWpython/samples/demos/call_automation/call_automation.py119 except Exception:CODE
LOW…_conversations/guided_conversation/plugins/artifact.py159 except Exception as e:CODE
LOW…versations/guided_conversation/utils/base_model_llm.py35 except Exception:CODE
LOW…es/demos/copilot_studio_agent/src/direct_line_agent.py79 except Exception as ex:CODE
LOWpython/samples/demos/telemetry/scenarios.py97 except Exception as e:CODE
MEDIUMpython/samples/demos/telemetry/scenarios.py99 print(f"Error running AI service: {e}")CODE
LOWpython/samples/demos/telemetry/scenarios.py141 except Exception as e:CODE
MEDIUMpython/samples/demos/telemetry/scenarios.py143 print(f"Error running kernel plugin: {e}")CODE
LOWpython/samples/demos/telemetry/scenarios.py191 except Exception as e:CODE
MEDIUMpython/samples/demos/telemetry/scenarios.py193 print(f"Error running auto function invocation: {e}")CODE
LOWpython/samples/demos/process_with_dapr/fastapi_app.py80 except Exception:CODE
LOWpython/samples/demos/process_with_dapr/flask_app.py58 except Exception:CODE
MEDIUMpython/samples/demos/process_with_dapr/flask_app.py42def start_process(process_id):CODE
LOW…/demos/mcp_with_oauth/server/mcp_simple_auth/server.py164 except Exception:CODE
LOW…cp_with_oauth/server/mcp_simple_auth/token_verifier.py80 except Exception as e:CODE
LOW…/samples/demos/copilot_studio_skill/src/api/adapter.py53 except Exception as exception:CODE
LOW…/samples/demos/copilot_studio_skill/src/api/adapter.py69 except Exception as exception:CODE
LOW…thon/samples/demos/copilot_studio_skill/src/api/app.py54 except Exception as error:CODE
LOW…n/samples/learn_resources/agent_docs/assistant_code.py58 except Exception as e:CODE
MEDIUM…n/samples/learn_resources/agent_docs/assistant_code.py59 print(f"An error occurred while downloading file {file_id}: {str(e)}")CODE
LOW…ples/learn_resources/agent_docs/agent_collaboration.py168 except Exception:STRING
LOW…ples/learn_resources/agent_docs/agent_collaboration.py181 except Exception as e:STRING
MEDIUM…ples/learn_resources/agent_docs/agent_collaboration.py182 print(f"Error during chat invocation: {e}")STRING
LOWpython/semantic_kernel/kernel.py206 except Exception as exc:CODE
195 more matches not shown…
Modern AI Meta-Vocabulary73 hits · 218 pts
SeverityFileLineSnippetContext
MEDIUM…s/unit/agents/orchestration/test_orchestration_base.py400 # Cancel the orchestration before completionCOMMENT
MEDIUM…hon/tests/unit/agents/orchestration/test_sequential.py153 # Wait for the orchestration to completeCOMMENT
MEDIUMpython/tests/unit/agents/orchestration/test_handoff.py689 # Wait for the orchestration to completeCOMMENT
MEDIUM…hon/tests/unit/agents/orchestration/test_group_chat.py282 # Wait for the orchestration to completeCOMMENT
MEDIUM…hon/tests/unit/agents/orchestration/test_concurrent.py155 # Wait for the orchestration to completeCOMMENT
MEDIUM…pletions/test_chat_completion_with_function_calling.py468 # Anthropic will often include a chain of thought in the tool call by default.COMMENT
MEDIUM…pletions/test_chat_completion_with_function_calling.py469 # If this is not in the message, it will complain about the missing chain of thought.COMMENT
MEDIUM…_agent_orchestration/step4c_handoff_mix_agent_types.py194 # 1. Create a handoff orchestration with multiple agentsCOMMENT
MEDIUM…_agent_orchestration/step4c_handoff_mix_agent_types.py208 # 3. Invoke the orchestration with a task and the runtimeCOMMENT
MEDIUM…ith_agents/multi_agent_orchestration/step5_magentic.py75 # 1. Create a Magentic orchestration with two agents and a Magentic managerCOMMENT
MEDIUM…ith_agents/multi_agent_orchestration/step5_magentic.py92 # 3. Invoke the orchestration with a task and the runtimeCOMMENT
MEDIUM…_orchestration/step2a_sequential_cancellation_token.py67 # 1. Create a sequential orchestration with multiple agentsCOMMENT
MEDIUM…_orchestration/step2a_sequential_cancellation_token.py75 # 3. Invoke the orchestration with a task and the runtimeCOMMENT
MEDIUM…_orchestration/step2a_sequential_cancellation_token.py81 # 4. Cancel the orchestration before it finishesCOMMENT
MEDIUM…h_agents/multi_agent_orchestration/step1_concurrent.py44 # 1. Create a concurrent orchestration with multiple agentsCOMMENT
MEDIUM…h_agents/multi_agent_orchestration/step1_concurrent.py52 # 3. Invoke the orchestration with a task and the runtimeCOMMENT
MEDIUM…h_agents/multi_agent_orchestration/step1_concurrent.py60 # as the order of the agents in the orchestration.COMMENT
MEDIUM…h_agents/multi_agent_orchestration/step3_group_chat.py65 # 1. Create a group chat orchestration with a round robin managerCOMMENT
MEDIUM…h_agents/multi_agent_orchestration/step3_group_chat.py78 # 3. Invoke the orchestration with a task and the runtimeCOMMENT
MEDIUM…on/step4b_handoff_streaming_agent_response_callback.py178 # 1. Create a handoff orchestration with multiple agentsCOMMENT
MEDIUM…on/step4b_handoff_streaming_agent_response_callback.py191 # 3. Invoke the orchestration with a task and the runtimeCOMMENT
MEDIUM…tion/step3b_group_chat_with_chat_completion_manager.py312 # 1. Create a group chat orchestration with the custom group chat managerCOMMENT
MEDIUM…tion/step3b_group_chat_with_chat_completion_manager.py329 # 3. Invoke the orchestration with a task and the runtimeCOMMENT
MEDIUM…tarted_with_agents/multi_agent_orchestration/README.md1# Multi-agent orchestrationCOMMENT
MEDIUM…h_agents/multi_agent_orchestration/step2_sequential.py69 # 1. Create a sequential orchestration with multiple agents and an agentCOMMENT
MEDIUM…h_agents/multi_agent_orchestration/step2_sequential.py81 # 3. Invoke the orchestration with a task and the runtimeCOMMENT
MEDIUM…with_agents/multi_agent_orchestration/step4_handoff.py149 # 1. Create a handoff orchestration with multiple agentsCOMMENT
MEDIUM…with_agents/multi_agent_orchestration/step4_handoff.py162 # 3. Invoke the orchestration with a task and the runtimeCOMMENT
MEDIUM…step2b_sequential_streaming_agent_response_callback.py85 # 1. Create a sequential orchestration with multiple agents and an agentCOMMENT
MEDIUM…step2b_sequential_streaming_agent_response_callback.py98 # 3. Invoke the orchestration with a task and the runtimeCOMMENT
MEDIUM…t_orchestration/step3a_group_chat_human_in_the_loop.py106 # 1. Create a group chat orchestration with a round robin managerCOMMENT
MEDIUM…t_orchestration/step3a_group_chat_human_in_the_loop.py122 # 3. Invoke the orchestration with a task and the runtimeCOMMENT
MEDIUM…gent_orchestration/step4a_handoff_structured_inputs.py155 # 1. Create a handoff orchestration with multiple agentsCOMMENT
MEDIUM…gent_orchestration/step4a_handoff_structured_inputs.py158 # and the generic types for the orchestration,COMMENT
MEDIUM…gent_orchestration/step4a_handoff_structured_inputs.py170 # 3. Invoke the orchestration with a task and the runtimeCOMMENT
MEDIUM…_orchestration/step1a_concurrent_structured_outputs.py59 # 1. Create a concurrent orchestration with multiple agentsCOMMENT
MEDIUM…_orchestration/step1a_concurrent_structured_outputs.py62 # and the generic types for the orchestration.COMMENT
MEDIUM…_orchestration/step1a_concurrent_structured_outputs.py80 # 4. Invoke the orchestration with a task and the runtimeCOMMENT
MEDIUMpython/samples/concepts/README.md218### RAG - Different ways of `RAG` (Retrieval-Augmented Generation)COMMENT
MEDIUMpython/samples/concepts/memory/simple_memory.py18# it needs openai api key and embedding model idCOMMENT
MEDIUM…ples/concepts/local_models/lm_studio_text_embedding.py14# to applications with a local embedding model running in LM studio: https://lmstudio.ai/COMMENT
MEDIUM…ided_conversation/plugins/guided_conversation_agent.py100 # Send message will be executed first and since the orchestration step returns, end conversation will not be eCOMMENT
MEDIUM…ided_conversation/plugins/guided_conversation_agent.py158 # Run a step of the orchestration logic based on the plugins called by the model.COMMENT
MEDIUMpython/samples/learn_resources/your_first_prompt.py103 # <FewShotPrompt> 3.0 Provide examples with few-shot promptingCOMMENT
MEDIUMpython/semantic_kernel/connectors/ai/bedrock/README.md75- [Guardrail](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html)CODE
MEDIUM…ntic_kernel/agents/orchestration/orchestration_base.py214 # This unique topic type is used to isolate the orchestration run from others.COMMENT
MEDIUMdocs/decisions/0069-mcp.md31| [Sampling](https://modelcontextprotocol.io/docs/concepts/sampling) | get_chat_message_content | Sampling is a powerfulCODE
MEDIUMdocs/decisions/0069-mcp.md47| [Sampling](https://modelcontextprotocol.io/docs/concepts/sampling) | Unclear | Sampling is a powerful MCP feature thatCODE
MEDIUMdocs/decisions/0072-agents-with-memory.md150### Using a RAG componentCOMMENT
MEDIUMdocs/decisions/0034-rag-in-sk.md9# Retrieval-Augmented Generation (RAG) in Semantic KernelCOMMENT
MEDIUMdocs/decisions/0064-hybrid-model-orchestration.md24### Option 1: IChatClient implementation per orchestration strategyCOMMENT
MEDIUMdocs/decisions/0064-hybrid-model-orchestration.md80### Option 2: HybridChatClient class with chat completion handler(s) per orchestration strategyCOMMENT
MEDIUMdocs/decisions/0071-multi-agent-orchestration.md130- Topics mentioned in the [Open Discussions](#open-discussions) section will not be addressed in the initial implementatCODE
MEDIUMdocs/decisions/0071-multi-agent-orchestration.md130- Topics mentioned in the [Open Discussions](#open-discussions) section will not be addressed in the initial implementatCODE
MEDIUMdocs/decisions/0071-multi-agent-orchestration.md409We mentioned in the [State management](#state-management) section that orchestrations do not manage the state of the ageCODE
MEDIUMdocs/decisions/0071-multi-agent-orchestration.md411An option is to have a context provider that provides agent contexts given an agent ID. The context provider will be attCODE
MEDIUMdocs/decisions/0071-multi-agent-orchestration.md429> The group chat orchestration has an experimental feature that allows input from users. Please refer to the [Group ChatCODE
MEDIUMdocs/decisions/0071-multi-agent-orchestration.md457Safety is also a priority. A powerful orchestration may accomplish a lot of things, but it may also do a lot of harm. WeCODE
MEDIUMdotnet/samples/Concepts/README.md214### RAG - Retrieval-Augmented GenerationCOMMENT
MEDIUMdotnet/samples/Demos/VectorStoreRAG/README.md1# Vector Store RAG DemoCODE
13 more matches not shown…
Slop Phrases82 hits · 170 pts
SeverityFileLineSnippetContext
LOWpython/samples/concepts/memory/simple_memory.py17# This sample uses openai text embeddings, so make sure to have your environment variables set upCOMMENT
MEDIUMpython/samples/concepts/memory/simple_memory.py23# you can also use a pydantic model, or a vanilla python class, see "data_models.py" for more examplesCOMMENT
MEDIUMpython/samples/concepts/memory/data_models.py33# Or you can use the definition in container mode with something like a Pandas Dataframe.COMMENT
MEDIUM…ples/concepts/filtering/function_invocation_filters.py61 # you can use both the literal term and the FilterTypes enumCOMMENT
LOW…hon/samples/concepts/plugins/crew_ai/crew_ai_plugin.py127 # Please make sure you have configured your environment correctly for the selected chat completion service.COMMENT
LOW…amples/concepts/chat_history/serialize_chat_history.py32# Please make sure you have configured your environment correctly for the selected chat completion service.COMMENT
LOW…oncepts/chat_history/store_chat_history_in_cosmosdb.py111# Please make sure you have configured your environment correctly for the selected chat completion service.COMMENT
LOW…amples/concepts/embedding/text_embedding_generation.py22# Please make sure you have configured your environment correctly for the selected text embedding service.COMMENT
MEDIUMpython/samples/concepts/setup/openai_env_setup.py10# After installing the semantic-kernel package, you can use the following code to setup OpenAI ConnectorCOMMENT
MEDIUMpython/samples/concepts/setup/openai_env_setup.py55# the loader that we use is case insensitive, so you can use any case you want in your env variablesCOMMENT
MEDIUM…tion_agent/chat_completion_agent_as_kernel_function.py35# The filter is used for demonstration purposes to show the function invocation.COMMENT
MEDIUM…ts/azure_ai_agent/azure_ai_agent_as_kernel_function.py67 # The filter is used for demonstration purposes to show the function invocation.COMMENT
MEDIUM…ents/openai_assistant/openai_assistant_sample_utils.py24 f"{file_id}.{file_extension}", # You can modify this to use the actual filename with proper extensionCODE
MEDIUM…nai_responses/responses_agent_binary_content_upload.py41 """Create sample text content for demonstration purposes.STRING
MEDIUM…nai_responses/responses_agent_binary_content_upload.py86 # Create a temporary text file for demonstration purposesSTRING
LOW…hon/samples/concepts/chat_completion/simple_chatbot.py26# Please make sure you have configured your environment correctly for the selected chat completion service.COMMENT
LOW…s/concepts/chat_completion/simple_chatbot_streaming.py27# Please make sure you have configured your environment correctly for the selected chat completion service.COMMENT
LOW…tbot_with_summary_history_reducer_keep_func_content.py49# Please make sure you have configured your environment correctly for the selected chat completion service.COMMENT
LOW…/concepts/chat_completion/simple_chatbot_logit_bias.py25# Please make sure you have configured your environment correctly for the selected chat completion service.COMMENT
LOW…epts/chat_completion/simple_chatbot_kernel_function.py35# Please make sure you have configured your environment correctly for the selected chat completion service.COMMENT
LOW…pletion/simple_chatbot_with_summary_history_reducer.py44# Please make sure you have configured your environment correctly for the selected chat completion service.COMMENT
LOW…ple_chatbot_with_summary_history_reducer_autoreduce.py44# Please make sure you have configured your environment correctly for the selected chat completion service.COMMENT
LOW…_chatbot_with_truncation_history_reducer_autoreduce.py39# Please make sure you have configured your environment correctly for the selected chat completion service.COMMENT
LOW…/concepts/chat_completion/simple_chatbot_with_image.py29# Please make sure you have configured your environment correctly for the selected chat completion service.COMMENT
LOW…/concepts/chat_completion/simple_chatbot_with_image.py34# make sure to use a service that supports image input from a URI.COMMENT
LOW…tion/simple_chatbot_with_truncation_history_reducer.py39# Please make sure you have configured your environment correctly for the selected chat completion service.COMMENT
LOW…cepts/chat_completion/simple_chatbot_store_metadata.py24# Please make sure you have configured your environment correctly for the selected chat completion service.COMMENT
LOWpython/samples/concepts/mcp/mcp_as_plugin.py57# Please make sure you have configured your environment correctly for the selected chat completion service.STRING
MEDIUMpython/samples/concepts/mcp/mcp_as_plugin.py107 # instead of using this async context manager, you can also use:STRING
LOW…hat_completion_with_auto_function_calling_streaming.py63# Please make sure you have configured your environment correctly for the selected chat completion service.STRING
LOW…_calling/chat_completion_with_auto_function_calling.py64# Please make sure you have configured your environment correctly for the selected chat completion service.STRING
LOW…alling/chat_completion_with_manual_function_calling.py68# Please make sure you have configured your environment correctly for the selected chat completion service.STRING
LOW…/concepts/text_completion/text_completion_streaming.py21# Please make sure you have configured your environment correctly for the selected text embedding service.COMMENT
LOW…on/samples/concepts/text_completion/text_completion.py21# Please make sure you have configured your environment correctly for the selected text embedding service.COMMENT
LOW…ed_outputs/json_structured_outputs_function_calling.py100# Please make sure you have configured your environment correctly for the selected chat completion service.COMMENT
LOW…concepts/structured_outputs/json_structured_outputs.py74# Please make sure you have configured your environment correctly for the selected chat completion service.STRING
LOW…amples/concepts/token_usage/simple_chat_token_usage.py26# Please make sure you have configured your environment correctly for the selected chat completion service.COMMENT
LOW…cepts/token_usage/simple_chat_token_usage_streaming.py28# Please make sure you have configured your environment correctly for the selected chat completion service.COMMENT
LOW…ed_conversations/guided_conversation/plugins/agenda.py62 kernel (Kernel): The Semantic Kernel instance to use for calling the LLM. Don't forget to set yourSTRING
LOW…_conversations/guided_conversation/plugins/artifact.py65 kernel (Kernel): The Semantic Kernel instance to use for calling the LLM. Don't forget to set yourSTRING
MEDIUM…/demos/mcp_with_oauth/server/mcp_simple_auth/server.py9NOTE: this is a simplified example for demonstration purposes.STRING
MEDIUM…h_oauth/server/mcp_simple_auth/simple_auth_provider.py7for demonstration purposes. No external authentication provider is required.STRING
MEDIUM…h_oauth/server/mcp_simple_auth/simple_auth_provider.py9NOTE: this is a simplified example for demonstration purposes.STRING
MEDIUM…s/mcp_with_oauth/server/mcp_simple_auth/auth_server.py9NOTE: this is a simplified example for demonstration purposes.STRING
MEDIUM…_with_oauth/server/mcp_simple_auth/legacy_as_server.py9NOTE: this is a simplified example for demonstration purposes.STRING
MEDIUM…cp_with_oauth/server/mcp_simple_auth/token_verifier.py16 This is a simple example implementation for demonstration purposes.STRING
LOWpython/samples/learn_resources/templates.py24# and make sure to add the user message to the history before invoking.COMMENT
LOW…hon/samples/learn_resources/plugins/MathPlugin/Math.py36 description="Multiply two numbers. When increasing by a percentage, don't forget to add 1 to the percentage.",CODE
MEDIUM…n/samples/learn_resources/agent_docs/assistant_code.py50 f"{file_id}.png", # You can modify this to use the actual filename with proper extensionCODE
MEDIUMpython/semantic_kernel/connectors/oracle.py431 # if you only want to set these in certain circumstances you can add a parameter toCOMMENT
MEDIUM…hAgents/BedrockAgent/Step05_BedrockAgent_FileSearch.cs49 // Feel free to modify the user query according to the information in your knowledge base.COMMENT
MEDIUM…edWithAgents/BedrockAgent/Step04_BedrockAgent_Trace.cs67 /// This only outputs the orchestration trace for demonstration purposes.COMMENT
MEDIUM…net/samples/Concepts/Filtering/MaxTokensWithFilters.cs20 /// <summary>Output max tokens value for demonstration purposes.</summary>COMMENT
MEDIUM…net/samples/Concepts/Filtering/MaxTokensWithFilters.cs112 /// <summary>Movie plugin for demonstration purposes.</summary>COMMENT
MEDIUMdotnet/samples/Concepts/Filtering/PIIDetection.cs122 // Define instructions for LLM how to react when certain conditions are met for demonstration purposesCOMMENT
MEDIUMdotnet/samples/Concepts/Filtering/PIIDetection.cs253 /// PII entities Presidio Text Analyzer is capable of detecting. Only some of them are defined here for demonstratioCOMMENT
MEDIUMdotnet/samples/Concepts/Filtering/PIIDetection.cs269 /// Request model for Text Analyzer. Only required properties are defined here for demonstration purposes.COMMENT
MEDIUMdotnet/samples/Concepts/Filtering/PIIDetection.cs284 /// Response model from Text Analyzer. Only required properties are defined here for demonstration purposes.COMMENT
MEDIUMdotnet/samples/Concepts/Filtering/PIIDetection.cs447 /// Contact model for demonstration purposes.COMMENT
MEDIUMdotnet/samples/Concepts/Filtering/PIIDetection.cs457 /// Search Plugin to be called from prompt for demonstration purposes.COMMENT
22 more matches not shown…
Modern Structural Boilerplate153 hits · 154 pts
SeverityFileLineSnippetContext
LOWpython/tests/utils.py10logger = logging.getLogger(__name__)CODE
LOW…ts/unit/template_engine/blocks/test_named_arg_block.py15logger = logging.getLogger(__name__)CODE
LOW…on/tests/unit/template_engine/blocks/test_var_block.py14logger = logging.getLogger(__name__)CODE
LOWpython/tests/integration/completions/conftest.py7logger = logging.getLogger(__name__)CODE
LOW…ests/integration/cross_language/test_cross_language.py25logger = logging.getLogger(__name__)CODE
LOWpython/samples/__init__.py6__all__ = ["add_service", "ServiceSettings"]CODE
LOW…ples/concepts/filtering/function_invocation_filters.py17logger = logging.getLogger(__name__)CODE
LOW…ncepts/filtering/function_invocation_filters_stream.py15logger = logging.getLogger(__name__)CODE
LOWpython/samples/concepts/filtering/retry_with_filters.py23logger = logging.getLogger(__name__)CODE
LOW…mples/concepts/filtering/retry_with_different_model.py21logger = logging.getLogger(__name__)CODE
LOWpython/samples/concepts/resources/__init__.py5__all__ = ["Colors"]CODE
LOW…pletion_agent_truncate_history_reducer_single_agent.py25logger = logging.getLogger(__name__)CODE
LOW…ompletion_agent_truncate_history_reducer_agent_chat.py31logger = logging.getLogger(__name__)CODE
LOW…mpletion_agent_summary_history_reducer_single_agent.py20logger = logging.getLogger(__name__)CODE
LOWpython/samples/concepts/mcp/agent_with_mcp_sampling.py14logger = logging.getLogger(__name__)CODE
LOW…thon/samples/concepts/mcp/servers/menu_agent_server.py18logger = logging.getLogger(__name__)CODE
LOW…oncepts/mcp/servers/restaurant_booking_agent_server.py19logger = logging.getLogger(__name__)CODE
LOW…time/realtime_agent_with_function_calling_websocket.py22logger = logging.getLogger(__name__)CODE
LOW…ealtime/realtime_agent_with_function_calling_webrtc.py22logger = logging.getLogger(__name__)CODE
LOWpython/samples/concepts/realtime/utils.py21logger = logging.getLogger(__name__)CODE
LOW…mples/concepts/realtime/simple_realtime_chat_webrtc.py17logger = logging.getLogger(__name__)CODE
LOW…es/concepts/realtime/simple_realtime_chat_websocket.py17logger = logging.getLogger(__name__)CODE
LOW…ng_started_with_processes/step03/processes/__init__.py7__all__ = ["FishAndChipsProcess", "FriedFishProcess", "FishSandwichProcess"]CODE
LOW…tting_started_with_processes/step03/models/__init__.py6__all__ = ["FoodIngredients", "FoodItem"]CODE
LOW…etting_started_with_processes/step03/steps/__init__.py12__all__ = [CODE
LOW…ions/guided_conversation/utils/conversation_helpers.py108 def set_turn_numbers(self, turn_number: int) -> None:CODE
LOW…tions/guided_conversation/utils/openai_tool_calling.py12logger = logging.getLogger(__name__)CODE
LOW…ons/guided_conversation/functions/conversation_plan.py13logger = logging.getLogger(__name__)CODE
LOWpython/samples/demos/copilot_studio_agent/src/chat.py16logger = logging.getLogger(__name__)CODE
LOW…es/demos/copilot_studio_agent/src/direct_line_agent.py24logger = logging.getLogger(__name__)CODE
LOW…on/samples/demos/process_with_dapr/process/__init__.py6__all__ = ["AStep", "BStep", "KickOffStep", "CStep", "get_process"]CODE
LOW…/demos/mcp_with_oauth/server/mcp_simple_auth/server.py25logger = logging.getLogger(__name__)CODE
LOW…h_oauth/server/mcp_simple_auth/simple_auth_provider.py34logger = logging.getLogger(__name__)CODE
LOW…s/mcp_with_oauth/server/mcp_simple_auth/auth_server.py31logger = logging.getLogger(__name__)CODE
LOW…_with_oauth/server/mcp_simple_auth/legacy_as_server.py28logger = logging.getLogger(__name__)CODE
LOW…cp_with_oauth/server/mcp_simple_auth/token_verifier.py10logger = logging.getLogger(__name__)CODE
LOWpython/samples/demos/mcp_with_oauth/agent/main.py48 async def set_tokens(self, tokens: OAuthToken) -> None:CODE
LOWpython/samples/demos/mcp_with_oauth/agent/main.py54 async def set_client_info(self, client_info: OAuthClientInformationFull) -> None:CODE
LOW…thon/samples/demos/copilot_studio_skill/src/api/app.py12logger = logging.getLogger(__name__)CODE
LOWpython/samples/demos/mcp_server/sk_mcp_server.py18logger = logging.getLogger(__name__)CODE
LOW…on/samples/demos/mcp_server/mcp_server_with_prompts.py16logger = logging.getLogger(__name__)CODE
LOW…n/samples/demos/mcp_server/mcp_server_with_sampling.py19logger = logging.getLogger(__name__)CODE
LOWpython/samples/demos/mcp_server/agent_as_server.py18logger = logging.getLogger(__name__)CODE
LOWpython/semantic_kernel/__init__.py9__all__ = ["DEFAULT_RC_VERSION", "Kernel", "__version__"]CODE
LOWpython/semantic_kernel/kernel_types.py17__all__ = ["AI_SERVICE_CLIENT_TYPE", "OneOrList", "OneOrMany", "OptionalOneOrList", "OptionalOneOrMany"]CODE
LOWpython/semantic_kernel/filters/__init__.py10__all__ = [CODE
LOWpython/semantic_kernel/connectors/pinecone.py45logger = logging.getLogger(__name__)CODE
LOWpython/semantic_kernel/connectors/sql_server.py58logger = logging.getLogger(__name__)CODE
LOWpython/semantic_kernel/connectors/sql_server.py79__all__ = ["SqlServerCollection", "SqlServerStore"]CODE
LOWpython/semantic_kernel/connectors/mongodb.py69logger = logging.getLogger(__name__)CODE
LOWpython/semantic_kernel/connectors/faiss.py32logger = logging.getLogger(__name__)CODE
LOWpython/semantic_kernel/connectors/redis.py58logger = logging.getLogger(__name__)CODE
LOWpython/semantic_kernel/connectors/mcp.py58logger = logging.getLogger(__name__)CODE
LOWpython/semantic_kernel/connectors/mcp.py1228 async def _set_logging_level(level: types.LoggingLevel) -> None:CODE
LOWpython/semantic_kernel/connectors/weaviate.py59logger = logging.getLogger(__name__)CODE
LOWpython/semantic_kernel/connectors/azure_ai_search.py127__all__ = [CODE
LOWpython/semantic_kernel/connectors/postgres.py51logger = logging.getLogger(__name__)CODE
LOWpython/semantic_kernel/connectors/oracle.py66logger = logging.getLogger(__name__)CODE
LOWpython/semantic_kernel/connectors/oracle.py70__all__ = [CODE
LOWpython/semantic_kernel/connectors/chroma.py44logger = logging.getLogger(__name__)CODE
93 more matches not shown…
Deep Nesting148 hits · 139 pts
SeverityFileLineSnippetContext
LOW…/unit/connectors/openapi_plugin/test_openapi_parser.py145CODE
LOW…/completions/test_azure_oai_chat_service_extensions.py128CODE
LOW…ests/integration/cross_language/test_cross_language.py726CODE
LOW…ests/integration/cross_language/test_cross_language.py733CODE
LOW…samples/concepts/model_as_a_service/mmlu_model_eval.py134CODE
LOW…les/concepts/filtering/auto_function_invoke_filters.py123CODE
LOW…completion_agent_summary_history_reducer_agent_chat.py29CODE
LOW…zure_ai_agent_auto_func_invocation_filter_streaming.py96CODE
LOW…epts/agents/azure_ai_agent/azure_ai_agent_streaming.py39CODE
LOW…nts/azure_ai_agent/azure_ai_agent_file_manipulation.py20CODE
LOW…gent_bing_grounding_streaming_with_message_callback.py43CODE
LOW…agents/azure_ai_agent/azure_ai_agent_bing_grounding.py38CODE
LOW…ure_ai_agent/azure_ai_agent_deep_research_streaming.py34CODE
LOW…ai_agent/azure_ai_agent_auto_func_invocation_filter.py96CODE
LOW…ai_agent/azure_ai_agent_declarative_azure_ai_search.py51CODE
LOW…ai_agent/azure_ai_agent_declarative_azure_ai_search.py77CODE
LOW…gents/openai_assistant/openai_assistant_chart_maker.py19CODE
LOW…istant/openai_assistant_file_manipulation_streaming.py19CODE
LOW…openai_assistant/openai_assistant_file_manipulation.py20CODE
LOW…/openai_assistant/openai_assistant_vision_streaming.py20CODE
LOW…istant/openai_assistant_auto_func_invocation_filter.py97CODE
LOW…nai_assistant_auto_func_invocation_filter_streaming.py97CODE
LOW…ai_assistant/openai_assistant_chart_maker_streaming.py19CODE
LOW…samples/concepts/agents/mixed_chat/mixed_chat_files.py37CODE
LOW…amples/concepts/agents/mixed_chat/mixed_chat_images.py37CODE
LOW…tbot_with_summary_history_reducer_keep_func_content.py129CODE
LOW…t_completion_with_manual_function_calling_streaming.py101CODE
LOW…/samples/concepts/auto_function_calling/nexus_raven.py139CODE
LOWpython/samples/concepts/audio/audio_player.py25CODE
LOW…processes/step03/processes/single_food_item_process.py45CODE
LOW…ed_conversations/guided_conversation/plugins/agenda.py91CODE
LOW…_conversations/guided_conversation/plugins/artifact.py107CODE
LOW…_conversations/guided_conversation/plugins/artifact.py188CODE
LOW…_conversations/guided_conversation/plugins/artifact.py198CODE
LOW…ided_conversation/plugins/guided_conversation_agent.py127CODE
LOW…ided_conversation/plugins/guided_conversation_agent.py230CODE
LOW…ided_conversation/plugins/guided_conversation_agent.py284CODE
LOW…d_conversations/guided_conversation/utils/resources.py90CODE
LOW…ions/guided_conversation/utils/conversation_helpers.py30CODE
LOW…ions/guided_conversation/utils/conversation_helpers.py53CODE
LOW…tions/guided_conversation/utils/openai_tool_calling.py35CODE
LOW…es/demos/copilot_studio_agent/src/direct_line_agent.py48CODE
LOWpython/samples/demos/telemetry/scenarios.py50CODE
LOWpython/samples/demos/mcp_server/sk_mcp_server.py99CODE
LOWpython/samples/demos/mcp_server/agent_as_server.py115CODE
LOW…n/samples/learn_resources/agent_docs/assistant_code.py69CODE
LOW…samples/learn_resources/agent_docs/assistant_search.py38CODE
LOW…ples/learn_resources/agent_docs/agent_collaboration.py42CODE
LOWpython/semantic_kernel/kernel.py104CODE
LOWpython/semantic_kernel/kernel.py257CODE
LOWpython/semantic_kernel/kernel.py486CODE
LOWpython/semantic_kernel/connectors/brave.py266CODE
LOWpython/semantic_kernel/connectors/qdrant.py481CODE
LOWpython/semantic_kernel/connectors/sql_server.py869CODE
LOWpython/semantic_kernel/connectors/sql_server.py984CODE
LOWpython/semantic_kernel/connectors/google_search.py294CODE
LOWpython/semantic_kernel/connectors/mcp.py1034CODE
LOWpython/semantic_kernel/connectors/weaviate.py210CODE
LOWpython/semantic_kernel/connectors/weaviate.py689CODE
LOWpython/semantic_kernel/connectors/azure_ai_search.py210CODE
88 more matches not shown…
Fake / Example Data122 hits · 132 pts
SeverityFileLineSnippetContext
LOW…connectors/ai/open_ai/services/test_openai_realtime.py1008 mocked_open_ai_realtime_webrtc._get_ephemeral_token = AsyncMock(return_value="fake-token")CODE
LOW…ests/unit/connectors/openapi_plugin/test_sk_openapi.py950 return {"Authorization": "Bearer dummy-token"}CODE
LOW…nit/agents/copilot_studio/test_copilot_studio_agent.py235 monkeypatch.setattr(_CopilotStudioAgentTokenFactory, "acquire", lambda self: "fake-token")CODE
LOW…nit/agents/copilot_studio/test_copilot_studio_agent.py252 mock_client_ctor.assert_called_once_with(dummy_settings, "fake-token")CODE
LOW…/unit/agents/orchestration/test_orchestration_tools.py97 mock_model = MockModel(name="John Doe", age=30)CODE
LOW…/unit/agents/orchestration/test_orchestration_tools.py128 mock_model = MockModel(name="John Doe", age=30)CODE
LOW…s/integration/completions/chat_completion_test_base.py87 return PersonDetails(id=person_id, name="John Doe", age=42)CODE
LOW…ration/completions/test_conversation_summary_plugin.py46Jane: That's a good idea. Let me see if I can find one. Maybe Lorem Ipsum?CODE
LOW…ples/concepts/local_models/lm_studio_text_embedding.py23 api_key="fake_key", # This cannot be an empty string, use a fake keyCODE
LOW…les/concepts/local_models/lm_studio_chat_completion.py32 api_key="fake-key", # This cannot be an empty string, use a fake keySTRING
LOW…amples/concepts/local_models/ollama_chat_completion.py36 api_key="fake-key", # This cannot be an empty string, use a fake keySTRING
LOW…pts/auto_function_calling/parallel_function_calling.py57 return "John Doe"CODE
LOW…port-multiple-named-args-in-template-function-calls.md29{{Skill.MyFunction street: "123 Main St", zip: "98123", city:"Seattle", age: 25}}CODE
LOW…port-multiple-named-args-in-template-function-calls.md45{{MyFunction street:"123 Main St" zip:"98123" city:"Seattle" age: "25"}}CODE
LOW…port-multiple-named-args-in-template-function-calls.md61{{MyFunction street="123 Main St" zip="98123" city="Seattle"}}CODE
LOW…port-multiple-named-args-in-template-function-calls.md77{{MyFunction street="123 Main St" zip="98123" city="Seattle"}}CODE
LOW…port-multiple-named-args-in-template-function-calls.md101{{MyFunction "inputVal" street="123 Main St" zip="98123" city="Seattle"}}CODE
LOW…/VectorData/Chroma.UnitTests/ChromaMemoryStoreTests.cs51 await store.GetAsync("fake-collection", "fake-key");CODE
LOW…/VectorData/Chroma.UnitTests/ChromaMemoryStoreTests.cs69 await store.GetAsync("fake-collection", "fake-key");CODE
LOW…ctorData/Weaviate.UnitTests/WeaviateCollectionTests.cs353 [InlineData(true, "http://test-endpoint/schema", "Bearer fake-key")]CODE
LOW…ctorData/Weaviate.UnitTests/WeaviateCollectionTests.cs361 new WeaviateCollectionOptions() { Endpoint = new Uri("http://test-endpoint"), ApiKey = "fake-key" } :CODE
LOW…et/samples/Concepts/Memory/TextChunkingAndEmbedding.cs120Jane: That's a good idea. Let me see if I can find one. Maybe Lorem Ipsum?CODE
LOW…et/samples/Concepts/Memory/TextChunkingAndEmbedding.cs122Jane: I found a Lorem Ipsum generator.CODE
LOW…et/samples/Concepts/Memory/TextChunkingAndEmbedding.cs123Jane: Here's a 4096 character Lorem Ipsum text:CODE
LOW…et/samples/Concepts/Memory/TextChunkingAndEmbedding.cs124Jane: Lorem ipsum dolor sit amet, conCODE
LOW…et/samples/Concepts/Memory/TextChunkingAndEmbedding.cs124Jane: Lorem ipsum dolor sit amet, conCODE
LOW…et/samples/Concepts/Memory/TextChunkingAndEmbedding.cs125Jane: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, nunc sit amet aliquamCODE
LOW…et/samples/Concepts/Memory/TextChunkingAndEmbedding.cs125Jane: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, nunc sit amet aliquamCODE
LOW…et/samples/Concepts/Memory/TextChunkingAndEmbedding.cs126Jane: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, nunc sit amet aliquamCODE
LOW…et/samples/Concepts/Memory/TextChunkingAndEmbedding.cs126Jane: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, nunc sit amet aliquamCODE
LOW…/samples/Concepts/Plugins/ConversationSummaryPlugin.cs72Jane: That's a good idea. Let me see if I can find one. Maybe Lorem Ipsum?CODE
LOW…/samples/Concepts/Plugins/ConversationSummaryPlugin.cs74Jane: I found a Lorem Ipsum generator.CODE
LOW…/samples/Concepts/Plugins/ConversationSummaryPlugin.cs75Jane: Here's a 4096 character Lorem Ipsum text:CODE
LOW…/samples/Concepts/Plugins/ConversationSummaryPlugin.cs76Jane: Lorem ipsum dolor sit amet, conCODE
LOW…/samples/Concepts/Plugins/ConversationSummaryPlugin.cs76Jane: Lorem ipsum dolor sit amet, conCODE
LOW…/samples/Concepts/Plugins/ConversationSummaryPlugin.cs77Jane: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, nunc sit amet aliquamCODE
LOW…/samples/Concepts/Plugins/ConversationSummaryPlugin.cs77Jane: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, nunc sit amet aliquamCODE
LOW…/samples/Concepts/Plugins/ConversationSummaryPlugin.cs78Jane: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, nunc sit amet aliquamCODE
LOW…/samples/Concepts/Plugins/ConversationSummaryPlugin.cs78Jane: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, nunc sit amet aliquamCODE
LOW…/samples/Concepts/Plugins/ConversationSummaryPlugin.cs199- They use a Lorem Ipsum generator, but it repeats itself after a while.CODE
LOW…/samples/Concepts/Plugins/ConversationSummaryPlugin.cs250 "Lorem Ipsum",CODE
LOW…pletion/ChatHistoryReducers/ChatHistoryReducerTests.cs70 var text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore CODE
LOW…pletion/ChatHistoryReducers/ChatHistoryReducerTests.cs70 var text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore CODE
LOW…ticKernel.UnitTests/Utilities/StreamJsonParserTests.cs17 data: {"candidates": [{"content": {"parts": [{"text": "lorem ipsum"}],"role": "model"},"finishReason": "STOP","iSTRING
LOW…ticKernel.UnitTests/Utilities/StreamJsonParserTests.cs19 data: {"candidates": [{"content": {"parts": [{"text": "lorem ipsum"}],"role": "model"},"finishReason": "STOP","iSTRING
LOW…ticKernel.UnitTests/Utilities/StreamJsonParserTests.cs21 data: {"candidates": [{"content": {"parts": [{"text": " lorem ipsum"}],"role": "model"},"finishReason": "STOP","STRING
LOW…nticKernel.UnitTests/Functions/KernelArgumentsTests.cs40 KernelArguments sut = new() { { "fake-key", "fake-value" } };CODE
LOW…nticKernel.UnitTests/Functions/KernelArgumentsTests.cs46 Assert.Equal("fake-key", argument.Key);CODE
LOW…nticKernel.UnitTests/Functions/KernelArgumentsTests.cs57 KernelArguments sut = new(executionSettings) { { "fake-key", "fake-value" } };CODE
LOW…nticKernel.UnitTests/Functions/KernelArgumentsTests.cs63 Assert.Equal("fake-key", argument.Key);CODE
LOW…nticKernel.UnitTests/Functions/KernelArgumentsTests.cs76 KernelArguments sut = new([executionSettings1, executionSettings2, executionSettings3]) { { "fake-key", "fake-vaCODE
LOW…nticKernel.UnitTests/Functions/KernelArgumentsTests.cs84 Assert.Equal("fake-key", argument.Key);CODE
LOW…nticKernel.UnitTests/Functions/KernelArgumentsTests.cs101 Assert.Throws<ArgumentException>(() => new KernelArguments(executionSettingsList) { { "fake-key", "fake-value" }CODE
LOW…nticKernel.UnitTests/Functions/KernelArgumentsTests.cs110 Assert.True(sut.ContainsName("fake-key"));CODE
LOW…nticKernel.UnitTests/Functions/KernelArgumentsTests.cs115 Assert.True(sut.ContainsName("fake-key"));CODE
LOW…nticKernel.UnitTests/Functions/KernelArgumentsTests.cs120 Assert.True(sut.ContainsName("fake-key"));CODE
LOW…nticKernel.UnitTests/Functions/KernelArgumentsTests.cs127 IDictionary<string, object?> source = new Dictionary<string, object?> { { "fake-key", "fake-value" } };CODE
LOW…nticKernel.UnitTests/Functions/KernelArgumentsTests.cs134 Assert.True(sut.ContainsName("fake-key"));CODE
LOW…nticKernel.UnitTests/Functions/KernelArgumentsTests.cs135 Assert.Equal("fake-value", sut["fake-key"]);CODE
LOW…nticKernel.UnitTests/Functions/KernelArgumentsTests.cs152 Assert.True(sut.ContainsName("fake-key"));CODE
62 more matches not shown…
Decorative Section Separators28 hits · 116 pts
SeverityFileLineSnippetContext
MEDIUM…ess.IntegrationTests.Shared/ProcessCloudEventsTests.cs167 /// ┌────────┐ ┌────────┐COMMENT
MEDIUM…ess.IntegrationTests.Shared/ProcessCloudEventsTests.cs169 /// └────────┘ │ └────────┘ │COMMENT
MEDIUM…ess.IntegrationTests.Shared/ProcessCloudEventsTests.cs171 /// │ ┌───────┐ │COMMENT
MEDIUM…ess.IntegrationTests.Shared/ProcessCloudEventsTests.cs173 /// └───────┘COMMENT
MEDIUM…mental/Process.IntegrationTests.Shared/ProcessTests.cs263 /// ┌───────────────────────────────────────────────┐COMMENT
MEDIUM…mental/Process.IntegrationTests.Shared/ProcessTests.cs265 /// ┌───────┐ │ ┌──────────────┐ ┌──────────────┐ ┌──────┐COMMENT
MEDIUM…mental/Process.IntegrationTests.Shared/ProcessTests.cs267 /// └───────┘ │ └──────────────┘ │ └──────────────┘ │ └──────┘COMMENT
MEDIUM…mental/Process.IntegrationTests.Shared/ProcessTests.cs269 /// ┌─────────┐ ┌─────────┐ ┌─────────┐COMMENT
MEDIUM…mental/Process.IntegrationTests.Shared/ProcessTests.cs271 /// └─────────┘ └─────────┘ └─────────┘COMMENT
MEDIUM…mental/Process.IntegrationTests.Shared/ProcessTests.cs335 /// ┌───────────────────────────────────────────────┐COMMENT
MEDIUM…mental/Process.IntegrationTests.Shared/ProcessTests.cs337 /// ┌───────┐ │ ┌───────┐ ┌───────┐ ┌────────┐ ┌──────┐COMMENT
MEDIUM…mental/Process.IntegrationTests.Shared/ProcessTests.cs339 /// └───────┘ └───────┘ └───────┘ └────────┘ └──────┘COMMENT
MEDIUM…mental/Process.IntegrationTests.Shared/ProcessTests.cs404 /// ┌─────────┐COMMENT
MEDIUM…mental/Process.IntegrationTests.Shared/ProcessTests.cs405 /// │ echoA ├──────┐COMMENT
MEDIUM…mental/Process.IntegrationTests.Shared/ProcessTests.cs406 /// └─────────┘ ▼COMMENT
MEDIUM…mental/Process.IntegrationTests.Shared/ProcessTests.cs407 /// ┌────────┐COMMENT
MEDIUM…mental/Process.IntegrationTests.Shared/ProcessTests.cs409 /// └────────┘COMMENT
MEDIUM…mental/Process.IntegrationTests.Shared/ProcessTests.cs410 /// ┌─────────┐ ▲COMMENT
MEDIUM…mental/Process.IntegrationTests.Shared/ProcessTests.cs411 /// │ repeatB ├──────┘COMMENT
MEDIUM…mental/Process.IntegrationTests.Shared/ProcessTests.cs412 /// └─────────┘COMMENT
MEDIUM…mental/Process.IntegrationTests.Shared/ProcessTests.cs438 /// ┌────────┐COMMENT
MEDIUM…mental/Process.IntegrationTests.Shared/ProcessTests.cs439 /// ┌───────►│ repeat │COMMENT
MEDIUM…mental/Process.IntegrationTests.Shared/ProcessTests.cs440 /// │ └────────┘COMMENT
MEDIUM…mental/Process.IntegrationTests.Shared/ProcessTests.cs444 /// │ ┌────────┐COMMENT
MEDIUM…mental/Process.IntegrationTests.Shared/ProcessTests.cs445 /// └───────►│ report │COMMENT
MEDIUM…mental/Process.IntegrationTests.Shared/ProcessTests.cs446 /// └────────┘COMMENT
MEDIUM…mental/Process.IntegrationTests.Shared/ProcessTests.cs379 /// ┌────────┐ ┌────────┐COMMENT
MEDIUM…mental/Process.IntegrationTests.Shared/ProcessTests.cs381 /// └────────┘ └────────┘COMMENT
AI Slop Vocabulary38 hits · 90 pts
SeverityFileLineSnippetContext
LOW…ed_with_agents/azure_ai_agent/step01_azure_ai_agent.py70 # Assistant: I'm here as your assistant, so you can just call me Assistant. How can I help you today?STRING
MEDIUM…/azure_ai_agent/step10_azure_ai_agent_deep_research.py109 # I'll update you with a comprehensive overview soon.STRING
LOW…les/concepts/filtering/auto_function_invoke_filters.py90 # Note: to simply return the unaltered function results, uncomment the `context.terminate = True` line andCOMMENT
MEDIUM…tbot_with_summary_history_reducer_keep_func_content.py18# This sample shows how to create a chatbot using a kernel function and leverage a chat historyCOMMENT
MEDIUM…pletion/simple_chatbot_with_summary_history_reducer.py15# This sample shows how to create a chatbot using a kernel function and leverage a chat historyCOMMENT
MEDIUM…ple_chatbot_with_summary_history_reducer_autoreduce.py15# This sample shows how to create a chatbot using a kernel function and leverage a chat historyCOMMENT
MEDIUM…_chatbot_with_truncation_history_reducer_autoreduce.py13# This sample shows how to create a chatbot using a kernel function and leverage a chat historyCOMMENT
MEDIUM…tion/simple_chatbot_with_truncation_history_reducer.py13# This sample shows how to create a chatbot using a kernel function and leverage a chat historyCOMMENT
LOWpython/semantic_kernel/contents/utils/hashing.py51 # If it's already something hashable, just return itCOMMENT
LOWpython/semantic_kernel/agents/agent.py132 # If the thread ID is already set, we're done, just return the Id.COMMENT
LOWpython/semantic_kernel/agents/agent.py146 # If the thread ID is not set, we're done, just return.COMMENT
LOW…kernel/utils/telemetry/model_diagnostics/decorators.py109 # If model diagnostics are not enabled, just return the completionCOMMENT
LOW…kernel/utils/telemetry/model_diagnostics/decorators.py162 # If model diagnostics are not enabled, just return the completionCOMMENT
LOW…kernel/utils/telemetry/model_diagnostics/decorators.py225 # If model diagnostics are not enabled, just return the completionCOMMENT
LOW…kernel/utils/telemetry/model_diagnostics/decorators.py276 # If model diagnostics are not enabled, just return the completionCOMMENT
LOW…kernel/utils/telemetry/agent_diagnostics/decorators.py71 # If model diagnostics are not enabled, just return the responsesCOMMENT
LOW…kernel/utils/telemetry/agent_diagnostics/decorators.py105 # If model diagnostics are not enabled, just return the responsesCOMMENT
LOW…kernel/utils/telemetry/agent_diagnostics/decorators.py143 # If model diagnostics are not enabled, just return the responsesCOMMENT
LOWpython/semantic_kernel/data/vector.py1504 # it might return a sequence, so we just return the first element,COMMENT
LOWpython/semantic_kernel/data/_shared.py133 # This is very unlikely to happen, but if it does, we will just create new options.COMMENT
MEDIUM…epts/FunctionCalling/FunctionCalling_ReturnMetadata.cs19/// utilize other return type metadata, such as descriptions or schemas, to reason about their content.COMMENT
MEDIUM…les/Concepts/FunctionCalling/Gemini_FunctionCalling.cs178 // Add a plugin with some helper functions we want to allow the model to utilize.COMMENT
MEDIUM…et/samples/Concepts/Plugins/OpenApiPlugin_Filtering.cs63 // I can also utilize the `multi_tool_use.parallel` function to execute multiple tools in parallel if required.COMMENT
MEDIUM…et/samples/Concepts/PromptTemplates/ChatWithPrompts.cs19/// This can be used to leverage the template engine (which executes functions internally)COMMENT
MEDIUM…Tests/TestData/tavily_what_is_the_semantic_kernel.json31 "content": "Semantic Kernel is an open-source SDK that integrates and orchestrates AI models and services like OpeCODE
MEDIUM…Tests/TestData/tavily_what_is_the_semantic_kernel.json33 "raw_content": "Semantic Kernel overview for .NET - .NET | Microsoft Learn\nSkip to main content\nThis browser is CODE
MEDIUM…Tests/TestData/tavily_what_is_the_semantic_kernel.json33 "raw_content": "Semantic Kernel overview for .NET - .NET | Microsoft Learn\nSkip to main content\nThis browser is CODE
MEDIUM…Tests/TestData/tavily_what_is_the_semantic_kernel.json47 "raw_content": "Skip to content\nNavigation Menu\nProduct\nSolutions\nResources\nOpen Source\nEnterprise\nPricing\CODE
MEDIUMdotnet/src/Agents/Orchestration/AgentActor.cs104 // No need to utilize streaming if no callback is providedCOMMENT
MEDIUM…tnet/src/Agents/AzureAI/Internal/AgentThreadActions.cs130 /// <param name="invocationOptions">Options to utilize for the invocation</param>COMMENT
MEDIUM…tnet/src/Agents/AzureAI/Internal/AgentThreadActions.cs131 /// <param name="logger">The logger to utilize (might be agent or channel scoped)</param>COMMENT
MEDIUM…tnet/src/Agents/AzureAI/Internal/AgentThreadActions.cs362 /// <param name="invocationOptions">Options to utilize for the invocation</param>COMMENT
MEDIUM…tnet/src/Agents/AzureAI/Internal/AgentThreadActions.cs363 /// <param name="logger">The logger to utilize (might be agent or channel scoped)</param>COMMENT
MEDIUM…t/src/Agents/OpenAI/Internal/AssistantThreadActions.cs107 /// <param name="invocationOptions">Options to utilize for the invocation</param>COMMENT
MEDIUM…t/src/Agents/OpenAI/Internal/AssistantThreadActions.cs109 /// <param name="logger">The logger to utilize (might be agent or channel scoped)</param>COMMENT
MEDIUM…t/src/Agents/OpenAI/Internal/AssistantThreadActions.cs343 /// <param name="invocationOptions">Options to utilize for the invocation</param>COMMENT
MEDIUM…t/src/Agents/OpenAI/Internal/AssistantThreadActions.cs345 /// <param name="logger">The logger to utilize (might be agent or channel scoped)</param>COMMENT
MEDIUM…cKernel.Abstractions/PromptTemplate/TemplateOptions.cs38 /// Essentially, the engine looks for the {{template.parser}}.{{model.api}} to find the appropriate parser.COMMENT
AI Structural Patterns91 hits · 82 pts
SeverityFileLineSnippetContext
LOW…nversations/guided_conversation/functions/execution.py75CODE
LOW…ons/guided_conversation/functions/final_update_plan.py99CODE
LOW…ons/guided_conversation/functions/conversation_plan.py195CODE
LOWpython/semantic_kernel/connectors/pinecone.py91CODE
LOWpython/semantic_kernel/connectors/qdrant.py136CODE
LOWpython/semantic_kernel/connectors/qdrant.py555CODE
LOWpython/semantic_kernel/connectors/sql_server.py303CODE
LOWpython/semantic_kernel/connectors/mongodb.py168CODE
LOWpython/semantic_kernel/connectors/redis.py198CODE
LOWpython/semantic_kernel/connectors/redis.py517CODE
LOWpython/semantic_kernel/connectors/redis.py645CODE
LOWpython/semantic_kernel/connectors/mcp.py239CODE
LOWpython/semantic_kernel/connectors/mcp.py653CODE
LOWpython/semantic_kernel/connectors/mcp.py733CODE
LOWpython/semantic_kernel/connectors/mcp.py816CODE
LOWpython/semantic_kernel/connectors/mcp.py903CODE
LOWpython/semantic_kernel/connectors/weaviate.py210CODE
LOWpython/semantic_kernel/connectors/weaviate.py689CODE
LOWpython/semantic_kernel/connectors/azure_ai_search.py759CODE
LOWpython/semantic_kernel/connectors/postgres.py323CODE
LOWpython/semantic_kernel/connectors/oracle.py289CODE
LOWpython/semantic_kernel/connectors/azure_cosmos_db.py285CODE
LOWpython/semantic_kernel/connectors/azure_cosmos_db.py560CODE
LOWpython/semantic_kernel/connectors/azure_cosmos_db.py671CODE
LOWpython/semantic_kernel/connectors/azure_cosmos_db.py1064CODE
LOW…google/google_ai/services/google_ai_text_completion.py38CODE
LOW…google/google_ai/services/google_ai_chat_completion.py67CODE
LOW…/google/google_ai/services/google_ai_text_embedding.py29CODE
LOW…onnectors/ai/nvidia/services/nvidia_chat_completion.py59CODE
LOW…onnectors/ai/open_ai/services/azure_chat_completion.py43CODE
LOW…/connectors/ai/open_ai/services/open_ai_config_base.py24CODE
LOW…connectors/ai/open_ai/services/azure_text_embedding.py26CODE
LOW…el/connectors/ai/open_ai/services/azure_config_base.py28CODE
LOW…nnectors/ai/open_ai/services/open_ai_text_embedding.py26CODE
LOW…nectors/ai/open_ai/services/open_ai_text_completion.py23CODE
LOW…ernel/connectors/ai/open_ai/services/azure_realtime.py51CODE
LOW…ernel/connectors/ai/open_ai/services/azure_realtime.py199CODE
LOW…nel/connectors/ai/open_ai/services/open_ai_realtime.py42CODE
LOW…nel/connectors/ai/open_ai/services/open_ai_realtime.py123CODE
LOW…onnectors/ai/open_ai/services/azure_text_completion.py36CODE
LOW…/connectors/ai/open_ai/services/azure_text_to_image.py23CODE
LOW…/connectors/ai/open_ai/services/azure_text_to_audio.py23CODE
LOW…/connectors/ai/open_ai/services/azure_audio_to_text.py23CODE
LOW…nectors/ai/open_ai/services/open_ai_chat_completion.py23CODE
LOW…onnectors/ai/open_ai/services/open_ai_text_to_image.py21CODE
LOW…onnectors/ai/open_ai/services/open_ai_audio_to_text.py21CODE
LOW…onnectors/ai/open_ai/services/open_ai_text_to_audio.py21CODE
LOW…ference/services/azure_ai_inference_chat_completion.py64CODE
LOW…azure_ai_inference/services/azure_ai_inference_base.py45CODE
LOW…ntic_kernel/contents/streaming_chat_message_content.py99CODE
LOW…on/semantic_kernel/contents/function_result_content.py44CODE
LOW…thon/semantic_kernel/contents/function_call_content.py47CODE
LOWpython/semantic_kernel/contents/chat_message_content.py134CODE
LOW…plugins/sessions_python_tool/sessions_python_plugin.py48CODE
LOW…thon/semantic_kernel/agents/azure_ai/azure_ai_agent.py639CODE
LOW…thon/semantic_kernel/agents/azure_ai/azure_ai_agent.py747CODE
LOW…thon/semantic_kernel/agents/azure_ai/azure_ai_agent.py856CODE
LOW…emantic_kernel/agents/azure_ai/agent_thread_actions.py109CODE
LOW…emantic_kernel/agents/azure_ai/agent_thread_actions.py463CODE
LOW…kernel/agents/chat_completion/chat_completion_agent.py126CODE
31 more matches not shown…
Redundant / Tautological Comments46 hits · 70 pts
SeverityFileLineSnippetContext
LOWpython/tests/unit/connectors/ai/bedrock/conftest.py178 # Check if model_provider fixture is requested by the testCOMMENT
LOWpython/tests/unit/connectors/ai/bedrock/conftest.py242 # Check if model_provider fixture is requested by the testCOMMENT
LOWpython/tests/unit/connectors/ai/bedrock/conftest.py281 # Check if model_provider fixture is requested by the testCOMMENT
LOWpython/tests/unit/agents/runtime/test_runtime.py223 # Check if logger has the exception.COMMENT
LOW…sts/unit/functions/test_kernel_function_from_prompt.py453 # Write files with UTF-8 encodingCOMMENT
LOW…sts/unit/functions/test_kernel_function_from_prompt.py514 # Write files with Latin-1 encodingCOMMENT
LOW…sts/unit/functions/test_kernel_function_from_prompt.py555 # Write files with Windows-1252 encodingCOMMENT
LOWpython/tests/unit/kernel/test_kernel.py774 # Write files with UTF-8 encodingCOMMENT
LOW…ory/azure_ai_search_hotel_samples/2_use_as_a_plugin.py183 # Check if the collection exists.COMMENT
LOW…search_hotel_samples/1_interact_with_the_collection.py30 # Check if the collection exists.COMMENT
LOW…les/concepts/filtering/auto_function_invoke_filters.py143 # Check if any result.value is a FunctionResultContentCOMMENT
LOW…amples/concepts/prompt_templates/handlebars_prompts.py71 # Set allow_dangerously_set_content to True only if arguments do not contain harmful content.STRING
LOW…ed_conversations/guided_conversation/plugins/agenda.py227 # Check if any item has a resource value of 0COMMENT
LOW…_conversations/guided_conversation/plugins/artifact.py140 # Check if the field name is valid, and return with a failure message if notCOMMENT
LOW…_conversations/guided_conversation/plugins/artifact.py150 # Check if there have been too many previous failed attempts to update the fieldCOMMENT
LOW…ided_conversation/plugins/guided_conversation_agent.py327 # Check if tool_args contains the field and value to updateCOMMENT
LOW…tions/guided_conversation/utils/openai_tool_calling.py140 # Check if any tool was called.COMMENT
LOW…tions/guided_conversation/utils/openai_tool_calling.py153 # Check if the required arguments were passed.COMMENT
LOW…h_oauth/server/mcp_simple_auth/simple_auth_provider.py248 # Check if expiredCOMMENT
LOW…n/samples/learn_resources/evaluate_with_prompt_flow.py42# Print the outputs of the flowCOMMENT
LOWpython/semantic_kernel/connectors/sql_server.py828 # Check if the type is a listCOMMENT
LOWpython/semantic_kernel/connectors/mcp.py190 # Check if 'properties' is missing or not a dictionaryCOMMENT
LOWpython/semantic_kernel/connectors/mcp.py209 # Check if 'properties' is missing or not a dictionaryCOMMENT
LOWpython/semantic_kernel/connectors/azure_ai_search.py650 # Check if the top-level property is in the data modelCOMMENT
LOWpython/semantic_kernel/connectors/postgres.py121 # Check if the type is a listCOMMENT
LOWpython/semantic_kernel/connectors/postgres.py129 # Check if the type is a dictionaryCOMMENT
LOWpython/semantic_kernel/connectors/in_memory.py775 # Check if the node type is allowedCOMMENT
LOW…connectors/memory_stores/milvus/milvus_memory_store.py287 # Check if the collection exists.COMMENT
LOW…connectors/memory_stores/milvus/milvus_memory_store.py330 # Check if the collection existsCOMMENT
LOW…connectors/memory_stores/milvus/milvus_memory_store.py408 # Check if collection existsCOMMENT
LOW…s/ai/mistral_ai/services/mistral_ai_chat_completion.py252 # Check if usage exists and has a value, then add it to the metadataCOMMENT
LOWpython/semantic_kernel/contents/binary_content.py205 # Read file as binary data to handle all file types properlyCOMMENT
LOW…contents/history_reducer/chat_history_reducer_utils.py202 # Check if the pair or itself fails filter_funcCOMMENT
LOWpython/semantic_kernel/processes/process_types.py27 # Check if t_state is a TypeVar (e.g., TypeVar('TState'))COMMENT
LOW…emantic_kernel/agents/azure_ai/agent_thread_actions.py231 # Check if function calling is requiredCOMMENT
LOW…emantic_kernel/agents/azure_ai/agent_thread_actions.py265 # Check if MCP tool approval is requiredCOMMENT
LOW…emantic_kernel/agents/azure_ai/agent_thread_actions.py692 # Check if this is a function call requestCOMMENT
LOW…emantic_kernel/agents/azure_ai/agent_thread_actions.py733 # Check if this is an MCP tool approval requestCOMMENT
LOW…rnel/agents/runtime/in_process/runtime_impl_helpers.py55 # Check if the subscription already existsCOMMENT
LOW…rnel/agents/runtime/in_process/runtime_impl_helpers.py64 # Check if the subscription existsCOMMENT
LOWpython/semantic_kernel/agents/bedrock/bedrock_agent.py317 # Check if there is function call requests. If there are function calls,COMMENT
LOWpython/semantic_kernel/agents/bedrock/bedrock_agent.py419 # Check if there is function call requests. If there are function calls,COMMENT
LOW…ernel/agents/open_ai/responses_agent_thread_actions.py236 # Check if tool calls are requiredCOMMENT
LOW…ntic_kernel/agents/open_ai/assistant_thread_actions.py260 # Check if function calling requiredCOMMENT
LOW…emantic_kernel/prompt_template/prompt_template_base.py78 # Check if this variable allows dangerous contentCOMMENT
LOW…Tests/TestData/tavily_what_is_the_semantic_kernel.json54 "raw_content": "How to quickly start with Semantic Kernel | Microsoft Learn\nSkip to main content\nThis browser isCODE
Structural Annotation Overuse36 hits · 67 pts
SeverityFileLineSnippetContext
LOW…/samples/concepts/auto_function_calling/nexus_raven.py52# Step 0: Define a custom AI Service, with Prompt Execution settings. ###COMMENT
LOW…/samples/concepts/auto_function_calling/nexus_raven.py222# Step 1: Define the functions you want to articulate. ###COMMENT
LOW…/samples/concepts/auto_function_calling/nexus_raven.py294# Step 2: Let's define some utils for building the prompt ###COMMENT
LOW…/samples/concepts/auto_function_calling/nexus_raven.py320# Step 3: Let's define the two prompts, one for Nexus, one for OpenAI ###COMMENT
LOW…/samples/concepts/auto_function_calling/nexus_raven.py359# Step 4: The main function and a runner ###COMMENT
LOW…es/demos/copilot_studio_agent/src/direct_line_agent.py182 # Step 2: Start a conversation if one hasn't already been started.COMMENT
LOW…es/demos/copilot_studio_agent/src/direct_line_agent.py194 # Step 3: Post the message payload.COMMENT
LOW…es/demos/copilot_studio_agent/src/direct_line_agent.py202 # Step 4: Poll for new activities using watermark until DynamicPlanFinished event is found.COMMENT
LOWpython/samples/demos/mcp_with_oauth/README.md12### Step 1: Start Authorization ServerCOMMENT
LOWpython/samples/demos/mcp_with_oauth/README.md30### Step 2: Start Resource Server (MCP Server)COMMENT
LOWpython/samples/demos/mcp_with_oauth/README.md44### Step 3: Test with ClientCOMMENT
LOWpython/samples/demos/document_generator/README.md47### Step 1: Set up the environmentCOMMENT
LOWpython/samples/demos/document_generator/README.md73### Step 2: Run the appCOMMENT
LOW…el/connectors/ai/open_ai/services/_open_ai_realtime.py453 # Step 1: check if function calling enabled:COMMENT
LOW…el/connectors/ai/open_ai/services/_open_ai_realtime.py461 # Step 2: check if there is a function that can be found.COMMENT
LOW…el/connectors/ai/open_ai/services/_open_ai_realtime.py469 # Step 3: Parse into the function call content, and yield that.COMMENT
LOW…el/connectors/ai/open_ai/services/_open_ai_realtime.py508 # Step 5: Create the function result eventCOMMENT
LOW…el/connectors/ai/open_ai/services/_open_ai_realtime.py513 # Step 6: send the result to the service and call `create response`COMMENT
LOW…el/connectors/ai/open_ai/services/_open_ai_realtime.py516 # Step 7: yield the function result back to the developer as wellCOMMENT
LOW…el/connectors/ai/open_ai/services/_open_ai_realtime.py482 # Step 4: Invoke the function callCOMMENT
LOWdocs/decisions/0054-processes.md193#### Step 3 - Get output from the Process:COMMENT
LOWdocs/decisions/0054-processes.md211#### Step 4 - Process object model:COMMENT
LOWdocs/decisions/0054-processes.md280#### Step 5 - Run the Process:COMMENT
LOW…/SqlServer.ConformanceTests/SqlServerIndexKindTests.cs25 // Step 1: Create the table using Flat index (no vector index) so we can insert data.COMMENT
LOW…/SqlServer.ConformanceTests/SqlServerIndexKindTests.cs46 // Step 2: Insert the 3 test rows + 97 filler rows to meet the 100-row minimum.COMMENT
LOW…/SqlServer.ConformanceTests/SqlServerIndexKindTests.cs67 // Step 3: Create the DiskANN vector index via raw SQL now that data is in the table.COMMENT
LOW…/SqlServer.ConformanceTests/SqlServerIndexKindTests.cs78 // Step 4: Create a new collection instance with DiskAnn to route searches through VECTOR_SEARCH().COMMENT
LOW…VectorData.ConformanceTests/TypeTests/DataTypeTests.cs169 // Step 1: Insert dataCOMMENT
LOW…VectorData.ConformanceTests/TypeTests/DataTypeTests.cs172 // Step 2: Read the values back via GetAsyncCOMMENT
LOW…VectorData.ConformanceTests/TypeTests/DataTypeTests.cs176 // Step 3: Exercise filtering by the value, using a constant in the filter expressionCOMMENT
LOW…VectorData.ConformanceTests/TypeTests/DataTypeTests.cs202 // Step 1: Insert dataCOMMENT
LOW…VectorData.ConformanceTests/TypeTests/DataTypeTests.cs205 // Step 2: Read the values back via GetAsyncCOMMENT
LOW…VectorData.ConformanceTests/TypeTests/DataTypeTests.cs209 // Step 3: Exercise dynamic filtering by the value, using a constant in the filter expressionCOMMENT
LOW…samples/Demos/ModelContextProtocolPluginAuth/README.md54### Step 1: Start the Test OAuth ServerCOMMENT
LOW…samples/Demos/ModelContextProtocolPluginAuth/README.md65### Step 2: Start the Protected MCP ServerCOMMENT
LOW…samples/Demos/ModelContextProtocolPluginAuth/README.md76### Step 3: Run the ModelContextProtocolPluginAuth sampleCOMMENT
Verbosity Indicators25 hits · 50 pts
SeverityFileLineSnippetContext
LOW…/samples/concepts/auto_function_calling/nexus_raven.py52# Step 0: Define a custom AI Service, with Prompt Execution settings. ###COMMENT
LOW…/samples/concepts/auto_function_calling/nexus_raven.py222# Step 1: Define the functions you want to articulate. ###COMMENT
LOW…/samples/concepts/auto_function_calling/nexus_raven.py294# Step 2: Let's define some utils for building the prompt ###COMMENT
LOW…/samples/concepts/auto_function_calling/nexus_raven.py320# Step 3: Let's define the two prompts, one for Nexus, one for OpenAI ###COMMENT
LOW…/samples/concepts/auto_function_calling/nexus_raven.py359# Step 4: The main function and a runner ###COMMENT
LOW…es/demos/copilot_studio_agent/src/direct_line_agent.py182 # Step 2: Start a conversation if one hasn't already been started.COMMENT
LOW…es/demos/copilot_studio_agent/src/direct_line_agent.py194 # Step 3: Post the message payload.COMMENT
LOW…es/demos/copilot_studio_agent/src/direct_line_agent.py202 # Step 4: Poll for new activities using watermark until DynamicPlanFinished event is found.COMMENT
LOW…el/connectors/ai/open_ai/services/_open_ai_realtime.py453 # Step 1: check if function calling enabled:COMMENT
LOW…el/connectors/ai/open_ai/services/_open_ai_realtime.py461 # Step 2: check if there is a function that can be found.COMMENT
LOW…el/connectors/ai/open_ai/services/_open_ai_realtime.py469 # Step 3: Parse into the function call content, and yield that.COMMENT
LOW…el/connectors/ai/open_ai/services/_open_ai_realtime.py508 # Step 5: Create the function result eventCOMMENT
LOW…el/connectors/ai/open_ai/services/_open_ai_realtime.py513 # Step 6: send the result to the service and call `create response`COMMENT
LOW…el/connectors/ai/open_ai/services/_open_ai_realtime.py516 # Step 7: yield the function result back to the developer as wellCOMMENT
LOW…el/connectors/ai/open_ai/services/_open_ai_realtime.py482 # Step 4: Invoke the function callCOMMENT
LOW…/SqlServer.ConformanceTests/SqlServerIndexKindTests.cs25 // Step 1: Create the table using Flat index (no vector index) so we can insert data.COMMENT
LOW…/SqlServer.ConformanceTests/SqlServerIndexKindTests.cs46 // Step 2: Insert the 3 test rows + 97 filler rows to meet the 100-row minimum.COMMENT
LOW…/SqlServer.ConformanceTests/SqlServerIndexKindTests.cs67 // Step 3: Create the DiskANN vector index via raw SQL now that data is in the table.COMMENT
LOW…/SqlServer.ConformanceTests/SqlServerIndexKindTests.cs78 // Step 4: Create a new collection instance with DiskAnn to route searches through VECTOR_SEARCH().COMMENT
LOW…VectorData.ConformanceTests/TypeTests/DataTypeTests.cs169 // Step 1: Insert dataCOMMENT
LOW…VectorData.ConformanceTests/TypeTests/DataTypeTests.cs172 // Step 2: Read the values back via GetAsyncCOMMENT
LOW…VectorData.ConformanceTests/TypeTests/DataTypeTests.cs176 // Step 3: Exercise filtering by the value, using a constant in the filter expressionCOMMENT
LOW…VectorData.ConformanceTests/TypeTests/DataTypeTests.cs202 // Step 1: Insert dataCOMMENT
LOW…VectorData.ConformanceTests/TypeTests/DataTypeTests.cs205 // Step 2: Read the values back via GetAsyncCOMMENT
LOW…VectorData.ConformanceTests/TypeTests/DataTypeTests.cs209 // Step 3: Exercise dynamic filtering by the value, using a constant in the filter expressionCOMMENT
Cross-Language Confusion4 hits · 20 pts
SeverityFileLineSnippetContext
HIGH…tors/ai/open_ai/services/test_azure_chat_completion.py775 "Error code: 400 - {'error': {'message': \"%s\", 'type': null, 'param': 'prompt', 'code': 'content_filter', "CODE
HIGH…tests/unit/data/test_vector_store_record_collection.py186 assert record_2.equals(record)CODE
HIGH…tests/unit/data/test_vector_store_record_collection.py202 assert records.equals(batch)CODE
HIGHpython/tests/unit/data/test_text_search.py61 ['{"name":null,"value":"test","link":null}'] if output_type is TextSearchResult else ["test"]CODE
Magic Placeholder Names4 hits · 18 pts
SeverityFileLineSnippetContext
HIGH…/getting_started_with_agents/chat_completion/README.md34 api_key="your-api-key",CODE
HIGH…tors/ai/open_ai/services/open_ai_text_to_image_base.py103 api_key="your-api-key",STRING
HIGH…tors/ai/open_ai/services/open_ai_text_to_image_base.py180 api_key="your-api-key",STRING
HIGH…Tests/TestData/tavily_what_is_the_semantic_kernel.json54 "raw_content": "How to quickly start with Semantic Kernel | Microsoft Learn\nSkip to main content\nThis browser isCODE
Overly Generic Function Names12 hits · 12 pts
SeverityFileLineSnippetContext
LOWpython/tests/unit/test_serialization.py59 def my_function(arguments: KernelArguments) -> str:CODE
LOWpython/tests/unit/utils/test_feature_stage_decorator.py7def my_function() -> None:CODE
LOW…ts/unit/prompt_template/test_kernel_prompt_template.py69 def my_function(arguments: KernelArguments) -> str:CODE
LOW…ts/unit/prompt_template/test_kernel_prompt_template.py88 def my_function(myVar: str) -> str:CODE
LOW…ts/unit/prompt_template/test_kernel_prompt_template.py107 async def my_function(myVar: str) -> str:CODE
LOW…ts/unit/prompt_template/test_kernel_prompt_template.py128 def my_function(arguments: KernelArguments) -> str:CODE
LOW…sts/unit/functions/test_kernel_function_from_method.py251 def my_function(input: str) -> str:CODE
LOW…sts/unit/functions/test_kernel_function_from_method.py266 def my_function(input_obj: InputObject) -> str:CODE
LOW…sts/unit/functions/test_kernel_function_from_method.py231 def my_function(kernel, service, execution_settings, arguments) -> str:CODE
LOW…sts/unit/functions/test_kernel_function_from_method.py287 def my_function(input_obj: InputObject) -> str:CODE
LOW…sts/unit/functions/test_kernel_function_from_method.py303 def my_function(input_obj: InputObject, input_str: str) -> str:CODE
LOW…sts/unit/functions/test_kernel_function_from_method.py319 def my_function(input_obj: InputObject, input_str: str | int) -> str:CODE
AI Response Leakage2 hits · 10 pts
SeverityFileLineSnippetContext
HIGH…/azure_ai_agent/step10_azure_ai_agent_deep_research.py109 # I'll update you with a comprehensive overview soon.STRING
HIGH…Tests/TestData/tavily_what_is_the_semantic_kernel.json54 "raw_content": "How to quickly start with Semantic Kernel | Microsoft Learn\nSkip to main content\nThis browser isCODE
Dead Code4 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUM…s/unit/agents/azure_ai_agent/test_mcp_tool_approval.py217CODE
MEDIUM…/tests/integration/completions/test_text_completion.py274CODE
MEDIUM…ic_kernel/connectors/ai/text_completion_client_base.py52CODE
MEDIUM…ic_kernel/connectors/ai/chat_completion_client_base.py78CODE
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHdotnet/samples/Demos/ContentSafety/README.md5[Azure AI Content Safety](https://learn.microsoft.com/en-us/azure/ai-services/content-safety/overview) detects harmful uCODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…time/Abstractions/Internal/KeyValueParserExtensions.cs34 /// Example usage:COMMENT