mirror of
https://github.com/microsoft/autogen.git
synced 2025-12-27 06:59:03 +00:00
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:
parent
54c309007a
commit
9d235d2585
@ -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] = []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user