How to run a semantic skills from file #4615
-
Hi, and this function: How do I get a different response each time I call it? How do I pass on $style variable when I call the function? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @YoungKim01, thank you for your question. If you were to run the joke function over and over you may see a bit of a variation. If you want to pass the
This would produce a result similar to:
|
Beta Was this translation helpful? Give feedback.
-
This can now be done more easily via Method One:
or Method Two:
|
Beta Was this translation helpful? Give feedback.
This can now be done more easily via
KernelArguments
or as kwargs, as shown below. As of the beta, the context has been removed.Method One:
arguments = KernelArguments(style="technical programming", input="Time travel to dinosaur age")
or Method Two:
result = await kernel.invoke(jokeFunction, style="technical programming", input="Time travel to dinosaur age")