microsoft / semantic-kernel

Integrate cutting-edge LLM technology quickly and easily into your apps
https://aka.ms/semantic-kernel
MIT License
21.49k stars 3.17k forks source link

.Net: Null properties crash Handlebars plans #6187

Open matthewbolanos opened 4 months ago

matthewbolanos commented 4 months ago

Discussed in https://github.com/microsoft/semantic-kernel/discussions/6098

Originally posted by **preezie-yasir** May 2, 2024 When i use {{set "variable_name" null}} and pass variable_name as a parameter to a function call, it throws an error passing in i guess an empty string. Is there a way we can do this? Im using C#'s Semantic Kernel library Handlebars planners txt files
Kee2u commented 4 months ago

Im interested in this issue as well. Im working with the code interpreter sample https://github.com/microsoft/semantic-kernel/blob/main/python/samples/concepts/plugins/azure_python_code_interpreter.py and the upload_file function requires some optional arguments as is evident from this line in the SessionsPythonTool class:

if data and local_file_path:
    raise ValueError("data and local_file_path cannot be provided together")

But if I dont provide data and just provide the local_file_path, it errors out saying the data field is required

github-actions[bot] commented 4 weeks ago

This issue is stale because it has been open for 90 days with no activity.