Find answers from the community

I
INCITE
Offline, last seen 6 months ago
Joined September 25, 2024
im using the azureopenai and getting this error: 'AzureOpenAI' object has no attribute 'achat_with_tools'. Code is below:
Plain Text
# INDEXING_SERVICE.llm is AzureOpenAI gpt-35-turbo-16k 
# data_tool is a QueryEngineTool
worker = FunctionCallingAgentWorker.from_tools(
    [data_tool], verbose=True, llm=INDEXING_SERVICE.llm
)
agent = StructuredPlannerAgent(worker, tools=[data_tool], verbose=True, llm=INDEXING_SERVICE.llm)

r = agent.chat('Whats the ip information for customer0?')


I dont see the function achat_with_tools on the class AzureOpenAI. Is the StructuredPlannerAgent not available at all for the AzureOpenAI?
2 comments
I
W