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
Just ran surprise_trip.ts locally, and it worked! Very nice. While I see that all the steps are logged to the terminal, the final WorkflowState only has the final messages array. Is there some way to get all the agents/tools executed, prompts, etc? While I could augment my tool functions with some way to log messages some place, I'm curious how I would do it for an agent. Maybe via the provider? Logging all workflow transitions would also be interesting.
The text was updated successfully, but these errors were encountered:
Yeah, we don't have this per se right now. We have built-in logger, which gets previous and next state, and that's how he figures the steps out.
I am guessing one way to implement this as of today would be via custom logger, that keeps internal execution state, stores prev/next state. When done, you could read the log from its state. It could also print it to a log file automatically.
We do not log prompts yet, which is something to keep in mind as we work on the provider abstraction. We need to implement token usage and other metrics as well, so whatever is the solution, should do this too!
I was thinking we could add (or replace logger entirely) with a new property telemetry or something on the workflow object, but I quickly got rid of that, as passing workflow object around the entire codebase is definitely not something I like.
Definitely open to ideas and discussion, taking from your functional experience! I am sure there's clean and elegant way this can be done.
Just ran
surprise_trip.ts
locally, and it worked! Very nice. While I see that all the steps are logged to the terminal, the finalWorkflowState
only has the final messages array. Is there some way to get all the agents/tools executed, prompts, etc? While I could augment mytool
functions with some way to log messages some place, I'm curious how I would do it for anagent
. Maybe via theprovider
? Logging allworkflow
transitions would also be interesting.The text was updated successfully, but these errors were encountered: