Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named 'agentai.openai_function' #21

Open
RahulSundar opened this issue Sep 30, 2023 · 1 comment
Open

No module named 'agentai.openai_function' #21

RahulSundar opened this issue Sep 30, 2023 · 1 comment

Comments

@RahulSundar
Copy link

RahulSundar commented Sep 30, 2023

Hey, Nirant,

I ran the following as pr the README.md file:
from agentai.api import chat_complete, chat_complete_execute_fn
from agentai.openai_function import tool, ToolRegistry
from agentai.conversation import Conversation
from enum import Enum
weather_registry = ToolRegistry()

Looks like openai_function is not found. This could be because in the updated agentai folder, there is no module named openai_function. Please look into that. Thanks

I believe the openai_function has been moved to annotations from which tool and tool registry can be imported as per the google colab notebook.

@jarvisx17
Copy link

from agentai import tool, ToolRegistry
it works...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants