microsoft / TaskWeaver

A code-first agent framework for seamlessly planning and executing data analytics tasks.
https://microsoft.github.io/TaskWeaver/
MIT License
5.37k stars 688 forks source link

when using TaskWeaver as a library, how to output log #386

Closed SHX9610 closed 2 months ago

SHX9610 commented 4 months ago

when using TaskWeaver as a library, how to output intermediate logs (planner's planning process, etc.) like the intermediate process displayed in the front-end UI

liqul commented 4 months ago

If you look at the response (like here), it contains all the information generated by the planner.

So, I think you are asking if there is something like the stream mode, where the output is streamed to the client piece by piece. If this is the case, we do not support directly yet, but you can take a look at this thread.