Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Option to view underlying thoughts, observations and actions taken by the Agent #14626

Open
shazil-ahmed opened this issue Jul 8, 2024 · 1 comment
Labels
enhancement New feature or request triage Issue needs to be triaged/prioritized

Comments

@shazil-ahmed
Copy link

Feature Description

When I ask the ReAct agent to perform a task, it goes through a lot of reasoning and steps under the hood. It is in the form of observations, thoughts and actions. It would be very helpful if we could get these as part of the response that the agent returns after it is asked to perform a task. I would like to output the steps taken and the thoughts,observations,actions taken on a streamlit application.

Reason

The ReAct agent shows the thoughts,actions,observations on the terminal when it is performing the task. But once it is completed and the agent returns a response object, the observations,thoughts,actions that it took to complete that task are not part of that response object. I would like to output these on my application.

Value of Feature

This will allow the users to save the steps taken and the observations, thoughts, actions of the agents in a variable in the code. This will be helpful if you want to output these steps and under-the-hood working on the frontend of your application.

@shazil-ahmed shazil-ahmed added enhancement New feature or request triage Issue needs to be triaged/prioritized labels Jul 8, 2024
@logan-markewich
Copy link
Collaborator

This is already possible if you use the lower level api, or use callbacks.

Here's an example with the low level api
https://colab.research.google.com/drive/1hiDkBbAJcO3RDrS7CD2ZeQEHGqNv07pq?usp=sharing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage Issue needs to be triaged/prioritized
2 participants