Skip to content
Discussion options

You must be logged in to vote

For debugging your prompt templates in agent_executor, you can follow these steps:

  1. Check the Prompt Template: Ensure your prompt templates are correctly defined with placeholders for inputs. Verify that tune_prompt, full_prompt, and metadata_prompt are set up properly.

  2. Invoke the Agent and Observe Outputs: Use the agent_executor to run a test input and observe the outputs. This helps verify if the agent responds as expected.

  3. Use Debugging Tools: Enable debugging to print intermediate steps and outputs. This can be done using set_debug(True) to trace the flow of data.

    from langchain.globals import set_debug
    
    set_debug(True)
    result = agent_executor.invoke({"input": "Test input"})
    print(

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mraguth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant