Closed
Description
Describe the bug
Initially found in lesson 04-tools-use, two notebooks were not able to import from semantic_kernel
To Reproduce
- Folder 04-tools-use/code_samples
- File 04-semantic-kernel-tool.ipynb
from semantic_kernel.agents.open_ai import OpenAIAssistantAgent - failed
- File 04-sematic-kernel-python-aiagent-bookinghotel.ipynb
from semantic_kernel.agents.azure_ai import AzureAIAgentSettings - failed
Expected behavior
These agents exist but were not loading. Many other semantic_kernel agents, connectors, etc. were importing as expected.
Desktop (please complete the following information):
- OS: Windows 11
- Visual Studio Code v 1.98.2
Additional context
For both the OpenAIAssistantAgent and the AzureAIAgentSettings, their respective "init.py" were empty. By adding the appropriate references, it solved the problems importing them into the notebook.
For example on the file, ~/.python/current/lib/python3.12/site-packages/semantic_kernel/agents/open_ai/init.py, I added the following:
from semantic_kernel.agents.open_ai.open_ai_assistant_agent import OpenAIAssistantAgent
__all__ = ["OpenAIAssistantAgent"]