File tree Expand file tree Collapse file tree
python/semantic_kernel/functions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -156,9 +156,9 @@ def from_prompt(
156156 prompt="Summarize the following in one sentence: {{$input}}",
157157 )
158158 kernel.add_function(plugin_name="WriterPlugin", function=func)
159- print(func.name) # summarize
159+ print(func.name) # summarize
160160 print(func.plugin_name) # WriterPlugin
161- print(func.is_prompt) # True
161+ print(func.is_prompt) # True
162162 """
163163 from semantic_kernel .functions .kernel_function_from_prompt import KernelFunctionFromPrompt
164164
@@ -288,6 +288,7 @@ async def invoke(
288288 from semantic_kernel.connectors.ai.open_ai import OpenAIChatCompletion
289289 from semantic_kernel.functions import KernelArguments, KernelFunction
290290
291+
291292 async def main():
292293 kernel = Kernel()
293294 # Requires OPENAI_API_KEY env var (or pass api_key explicitly).
@@ -299,12 +300,11 @@ async def main():
299300 )
300301 result = await func.invoke(
301302 kernel=kernel,
302- arguments=KernelArguments(
303- input="Azure API Management is a fully managed gateway service."
304- ),
303+ arguments=KernelArguments(input="Azure API Management is a fully managed gateway service."),
305304 )
306305 print(result)
307306
307+
308308 asyncio.run(main())
309309 """
310310 if arguments is None :
You can’t perform that action at this time.
0 commit comments