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

Log agent flow / experiments #241

Closed
gaspardmvr opened this issue May 20, 2024 · 3 comments
Closed

Log agent flow / experiments #241

gaspardmvr opened this issue May 20, 2024 · 3 comments

Comments

@gaspardmvr
Copy link

It would be helpful to log the flow that an agent has taken in order to review where it's reasoning/thoughts and actions could be improved and if changing the world model helps with that.

In agent.run make a "log" argument optional (boolean). Then create a log folder where to store the different runs. Include the parameters for the run (prompt, site/page, world model, LLM (system fingerprint)) and the output (thoughts, actions, chosen elements, screenshots (optionally the HTML?)) per step.

Extra options, thoughts:

  • succesful completion or not
  • number of steps to complete task
  • debug/improvement suggestions
  • sort runs per task to incrementally improve agent performance per experiment
@dhuynh95
Copy link
Collaborator

Hi @gaspardmvr!
That's a very good point. @JoFrost is actually working on that.
We will provide this feature soon, so stay tuned

@lyie28
Copy link
Contributor

lyie28 commented May 30, 2024

This feature is now live by the way - we'll document it in Learn>Debugging guide on our docs ASAP but basically you can get a Pandas dataframe with local log info by running:

df = agent.logger.return_pandas()

@lyie28 lyie28 closed this as completed May 30, 2024
@lyie28
Copy link
Contributor

lyie28 commented Jun 18, 2024

The logger guide is actually here: https://docs.lavague.ai/en/latest/docs/learn/local-log/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

3 participants