MicrosoftDocs / semantic-kernel-docs

Semantic Kernel (SK) is a lightweight SDK enabling integration of AI Large Language Models (LLMs) with conventional programming languages.
MIT License
173 stars 100 forks source link

Visibility of ContextVariables to other Prompts / Plugins. #63

Closed Cotspheer closed 6 months ago

Cotspheer commented 8 months ago

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.

Cotspheer commented 6 months ago

Syntax changed with handlebars templates, closing therefore my issue.