Find answers from the community

U
U1F40E
Offline, last seen 2 months ago
Joined September 25, 2024
I seem to have broken my llamatrace.com project. After login I see this error:
3 comments
U
Hi, I'm trying to use 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.

Is there a better way to produce structured output from an OpenAIAgent with tools?
20 comments
U
L