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

有辦法從callbacks 中取得完整的action log嗎? #2

Open
easontsai opened this issue Sep 18, 2023 · 1 comment
Open

有辦法從callbacks 中取得完整的action log嗎? #2

easontsai opened this issue Sep 18, 2023 · 1 comment

Comments

@easontsai
Copy link

我嘗試用intermediate steps來取得agent 執行過程的log,但我想要再進一步地取得更詳細的action input好像就沒辦法?好比說request_get這種tool,我想要紀錄他call 的request以及接收的response,這樣子似乎沒辦法實現?

我在想是不是能透過callbacks 裡面的一些event (on_llm_error, on_tool_start etc.) 來收集詳細的action過程,換句話說有辦法在agent.run()之後取得這run完整的log嗎?

thx

@taishan1994
Copy link
Owner

我嘗試用intermediate steps來取得agent 執行過程的log,但我想要再進一步地取得更詳細的action input好像就沒辦法?好比說request_get這種tool,我想要紀錄他call 的request以及接收的response,這樣子似乎沒辦法實現?

我在想是不是能透過callbacks 裡面的一些event (on_llm_error, on_tool_start etc.) 來收集詳細的action過程,換句話說有辦法在agent.run()之後取得這run完整的log嗎?

thx

应该是可以的,在memory组件里面找找。

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

No branches or pull requests

2 participants