fix: add plugin to kernel (#5830)

Line that adds the plugin to the kernel was accidentally removed, which
caused SK to be unable to invoke tools.
This commit is contained in:
Leonardo Pinheiro 2025-03-05 14:37:43 +10:00 committed by GitHub
parent 54c309007a
commit 9d235d2585
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -376,6 +376,8 @@ class SKChatCompletionAdapter(ChatCompletionClient):
kernel_function = KernelFunctionFromTool(tool) # type: ignore
self._tools_plugin.functions[tool.schema["name"]] = kernel_function
kernel.add_plugin(self._tools_plugin)
def _process_tool_calls(self, result: ChatMessageContent) -> list[FunctionCall]:
"""Process tool calls from SK ChatMessageContent"""
function_calls: list[FunctionCall] = []