Files
semantic-kernel/python/tests/test_native_plugins/TestNativePlugin/native_function.py
T
Julio Carlos Menendez 08710373a4 Python: Renames SK prefix to Kernel (#4716)
### 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 😄
2024-01-24 15:51:56 +00:00

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