You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we run a CodeAgent in a notebook, it print the question/task, the LLM model used, code (Executing this code, Execution logs) and the Final answer.
The return value from agent.run contrains only the final response.
I'm working on some demos for which I wanted to run a number of tasks, capture all the output (not just the final answer) and write them to an md or html file, so that I can show everything including the code generated by the agent without running the agents live in the demo.
I tried logging, stdout, from contextlib import redirect_stdout, etc but couldn't capture the full output to a variable.
Thanks,
The text was updated successfully, but these errors were encountered:
KannamSridharKumar
changed the title
How to capture CodeAgent's full thinking including the code, not just the final response into a variable or file
How to capture CodeAgent's full thinking including the code, not just the final response into a variable
Jan 23, 2025
When we run a CodeAgent in a notebook, it print the question/task, the LLM model used, code (Executing this code, Execution logs) and the Final answer.
The return value from agent.run contrains only the final response.
I'm working on some demos for which I wanted to run a number of tasks, capture all the output (not just the final answer) and write them to an md or html file, so that I can show everything including the code generated by the agent without running the agents live in the demo.
I tried logging, stdout, from contextlib import redirect_stdout, etc but couldn't capture the full output to a variable.
Thanks,
The text was updated successfully, but these errors were encountered: