chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"description": "Test Description",
|
||||
"execution_settings": {
|
||||
"default": {
|
||||
"max_tokens": 123,
|
||||
"temperature": 0.0,
|
||||
"top_p": 1.0,
|
||||
"presence_penalty": 0.0,
|
||||
"frequency_penalty": 2.0
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{{$input}}
|
||||
|
||||
==
|
||||
Test prompt.
|
||||
==
|
||||
@@ -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,12 @@
|
||||
name: TestFunctionYaml
|
||||
template_format: semantic-kernel
|
||||
template: |
|
||||
{{$input}}
|
||||
description: A test function from a yaml file.
|
||||
execution_settings:
|
||||
default:
|
||||
temperature: 0.6
|
||||
max_tokens: 123
|
||||
top_p: 1.0
|
||||
presence_penalty: 0.0
|
||||
frequency_penalty: 2.0
|
||||
Reference in New Issue
Block a user