Skip to content
Discussion options

You must be logged in to vote

Hello @jamerainbow! I'm Dosu, a friendly bot here to help you solve bugs, answer questions, and assist you in becoming a contributor. I'll be here while you wait for a human maintainer. How can I assist you today?

To log the prompts generated by each component of an agent for debugging purposes, you can modify the debug method in the Generate class. This method constructs the prompt using the provided parameters and then uses the chat method of the LLMBundle to generate the response. You can add logging functionality to capture the prompts.

Here's an example of how you might modify the debug method to log the prompts:

def debug(self, **kwargs):
    chat_mdl = LLMBundle(self._canvas.get_t…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jamerainbow
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