unable to fetch CoT agent runner log #2873

Closed
opened 2026-02-21 17:51:02 -05:00 by yindo · 0 comments
Owner

Originally created by @sinomoe on GitHub (May 2, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a quesion, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • Pleas do not modify this template :) and fill in all the required fields.

Dify version

0.6.5

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

image

I am using a locally provided Ollama model in agent mode, and this model does not have a model_features definition. As a result, dify will utilize the CotChatAgentRunner to execute the chat process, finnaly saving the "agent logs".

image
image

I observed that the CotChatAgentRunner saved "agent logs" in a format that differs from how the AgentLogApi retrieves logs from the database. which might lead to the issue

image

✔️ Expected Behavior

show agent logs

Actual Behavior

api error occured

Originally created by @sinomoe on GitHub (May 2, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a quesion, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] Pleas do not modify this template :) and fill in all the required fields. ### Dify version 0.6.5 ### Cloud or Self Hosted Self Hosted (Source) ### Steps to reproduce ![image](https://github.com/langgenius/dify/assets/18367114/371d7787-8542-4e6c-aafa-6f159983d176) I am using a locally provided Ollama model in agent mode, and this model does not have a model_features definition. As a result, dify will utilize the `CotChatAgentRunner` to execute the chat process, finnaly saving the "agent logs". ![image](https://github.com/langgenius/dify/assets/18367114/320bf198-bf50-4778-8935-811b93c357e5) ![image](https://github.com/langgenius/dify/assets/18367114/aade8788-e3c5-46d6-bb17-1adc7d2eb138) I observed that the `CotChatAgentRunner` saved "agent logs" in a format that differs from how the `AgentLogApi` retrieves logs from the database. which might lead to the issue ![image](https://github.com/langgenius/dify/assets/18367114/42b05e30-b559-45f0-a9d7-3061b031435e) ### ✔️ Expected Behavior show agent logs ### ❌ Actual Behavior api error occured
yindo added the 🐞 bug🤖 feat:agent labels 2026-02-21 17:51:02 -05:00
yindo closed this issue 2026-02-21 17:51:02 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#2873