Skip to content

Kernel Function ChatHistory not passing? #10214

Answered by moonbox3
mholland10 asked this question in Q&A
Discussion options

You must be logged in to vote

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 and arguments which will allow a user to use these specific complex objects as part of function calling.

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 arguments kernel function parameter will …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@moonbox3
Comment options

@mholland10
Comment options

Answer selected by moonbox3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
python Pull requests for the Python Semantic Kernel function_calling
2 participants