MicrosoftDocs / semantic-kernel-docs

Semantic Kernel (SK) is a lightweight SDK enabling integration of AI Large Language Models (LLMs) with conventional programming languages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Visibility of ContextVariables to other Prompts / Plugins.

Cotspheer opened this issue · comments

It is not quite clear (to me at least) if the variables in ContextVariables are "visible" in other nested prompts / calls. Because then I really see a chance for conflicts. One may be unaware that one of the plugins - selected by the planner - uses "style" like the FunPlugin and uses it in its own lets say CssPlugin as well.

Could we get a clarification on this at this page prompt-template-syntax and probably an additional note over here at chaining-functions? So that it is clear that only the "input" variable is passed and no other variable? And like a note in the prompt-template-syntax that "input" is treated different?

EDIT: If I understood the code documentation correctly of SKFunctionAttribute all variables will be visible and there is a chance for conflicts. Correct? So in that case there should be really a warning about that.

Syntax changed with handlebars templates, closing therefore my issue.