chore: import upstream snapshot with attribution
CodeQL / Analyze (csharp) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run

This commit is contained in:
wehub-resource-sync
2026-07-13 13:21:23 +08:00
commit b957a53def
5423 changed files with 863745 additions and 0 deletions
@@ -0,0 +1,26 @@
# Copyright (c) Microsoft. All rights reserved.
from typing import Annotated
from semantic_kernel.functions.kernel_function_decorator import kernel_function
class TestNativeEchoBotPlugin:
"""Description: Test Native Plugin for testing purposes"""
@kernel_function(
description="Echo for input text",
name="echoAsync",
)
async def echo(self, text: Annotated[str, "The text to echo"]) -> str:
"""Echo for input text
Example:
"hello world" => "hello world"
Args:
text -- The text to echo
Returns:
input text
"""
return text
@@ -0,0 +1,29 @@
# Copyright (c) Microsoft. All rights reserved.
from typing import Annotated
from semantic_kernel.functions.kernel_function_decorator import kernel_function
class TestNativeEchoBotPlugin:
"""Description: Test Native Plugin for testing purposes"""
def __init__(self, static_input: str | None = None):
self.static_input = static_input or ""
@kernel_function(
description="Echo for input text with static",
name="echo",
)
def echo(self, text: Annotated[str, "The text to echo"]) -> str:
"""Echo for input text with a static input
Example:
"hello world" => "hello world"
Args:
text -- The text to echo
Returns:
input text
"""
return self.static_input + text
@@ -0,0 +1,23 @@
# Copyright (c) Microsoft. All rights reserved.
from typing import Annotated
from semantic_kernel.functions.kernel_function_decorator import kernel_function
@kernel_function(
description="Echo for input text",
name="echoAsync",
)
async def echo(text: Annotated[str, "The text to echo"]) -> str:
"""Echo for input text
Example:
"hello world" => "hello world"
Args:
text -- The text to echo
Returns:
input text
"""
return text