agentai icon indicating copy to clipboard operation
agentai copied to clipboard

No module named 'agentai.openai_function'

Open RahulSundar opened this issue 2 years ago • 1 comments

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.

RahulSundar avatar Sep 30 '23 06:09 RahulSundar

from agentai import tool, ToolRegistry it works...

jarvisx17 avatar Nov 01 '23 17:11 jarvisx17