mirror of
https://github.com/microsoft/semantic-kernel.git
synced 2026-10-12 02:19:06 +00:00
### Motivation and Context The .NET SDK uses the `Kernel` prefix instead of `SK` for the context, function, model, etc. classes. This PR aligns the Python package with that policy. Fixes #4561 ### Contribution Checklist - [X] The code builds clean without any errors or warnings - [X] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [X] All unit tests pass, and I have added new tests where possible - [X] I didn't break anyone 😄
27 lines
581 B
Python
27 lines
581 B
Python
from semantic_kernel.plugin_definition import kernel_function
|
|
|
|
|
|
class TestNativeEchoBotPlugin:
|
|
"""
|
|
Description: Test Native Plugin for testing purposes
|
|
"""
|
|
|
|
@kernel_function(
|
|
description="Echo for input text",
|
|
name="echoAsync",
|
|
input_description="The text to echo",
|
|
)
|
|
async def echo(self, text: str) -> str:
|
|
"""
|
|
Echo for input text
|
|
|
|
Example:
|
|
"hello world" => "hello world"
|
|
Args:
|
|
text -- The text to echo
|
|
|
|
Returns:
|
|
input text
|
|
"""
|
|
return text
|