Skip to content

Python: ChatCompletionAgent with Auto Function Calling - Pass sensitive information to functions #11698

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

You must be logged in to vote

Hi @vslepakov, we only broadcast the kernel function's arguments to the model, so it knows what is required/not required. We are not broadcasting kernel argument values.

As a note, can you please have a look at the follow doc: https://learn.microsoft.com/en-us/semantic-kernel/concepts/ai-services/chat-completion/function-calling/?pivots=programming-language-python#custom-reserved-parameter-names-for-auto-function-calling

In a code sample there, we show special_arg: Annotated[str, {"include_in_function_choices": False} - where you can now provide the Annotated metadata. This tells the model that the argument is not required, and thus can be handled as a kernel argument and not have the mod…

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
1 reply
@vslepakov
Comment options

Answer selected by sophialagerkranspandey
Comment options

You must be logged in to vote
10 replies
@vslepakov
Comment options

@moonbox3
Comment options

@vslepakov
Comment options

@moonbox3
Comment options

@vslepakov
Comment options

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