Find answers from the community

Updated 4 months ago

Hey, I am trying to get verbose logging

Hey, I am trying to get verbose logging while using FunctionCallingAgentWorker and AgentRunner. I enabled verbose logging, but I'm only seeing the final response, not any of the tools that are being called

Here's how I'm declaring the AgentWorker and AgentRunner:
Plain Text
def createToolCallingAgent(tool1: FunctionTool, tool2: FunctionTool, tool3: FunctionTool, system_prompt:str) -> AgentRunner:
    agent_worker = FunctionCallingAgentWorker.from_tools(
        [tool1, tool2, tool3], 
        llm=llm, 
        verbose=True,
        system_prompt=system_prompt
    )
    agent_runner = AgentRunner(agent_worker, verbose=True)
    return agent_runner


I've also tried enabling debug logging in both the module i'm importing into my main script, and also in my main script:
Plain Text
import logging

logging.basicConfig(level=logging.DEBUG)


I'm only seeing output for === LLM Response === and not also === Calling Function === . There's an example of what I expected to see in this lesson here: https://learn.deeplearning.ai/courses/building-agentic-rag-with-llamaindex/lesson/3/tool-calling

Any help would be appreciated!
p
1 comment
try upgrading or re installing
Add a reply
Sign up and join the conversation on Discord