Kernel Function ChatHistory not passing? #10214
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @mholland10, thanks for your question. We can do a better job of documenting this (I will file an issue to update our documentation and even provide a sample if that is helpful, too). We have some "reserved" function parameter names like So if I have the following code: class SimplePlugin:
@kernel_function(name="GetWeather", description="Get the weather for a location.")
async def get_the_weather(self, location: str, arguments: KernelArguments) -> str:
return f"Received user input: {location}, the weather is nice!" The We can see the location is populated and the If you're really keen to understand where this happens, it's in the following method called As a note: the reason why your |
Beta Was this translation helpful? Give feedback.
Hi @mholland10, thanks for your question. We can do a better job of documenting this (I will file an issue to update our documentation and even provide a sample if that is helpful, too). We have some "reserved" function parameter names like
kernel
andarguments
which will allow a user to use these specific complex objects as part of function calling.So if I have the following code:
The
arguments
kernel function parameter will …