as_structured_llm
with llama_index.llms.openai.OpenAI
and pass that as the llm
to llama_index.agent.openai.OpenAIAgent.from_tools()
, but I'm getting an error ValueError: llm must be a OpenAI instance
. It seems as_structured_llm
changes the LLM enough that it's not considered an OpenAI instance anymore.