[GH-ISSUE #3687] How to identify the sentence 'Agent session complete' #2378

Closed
opened 2026-02-22 18:29:25 -05:00 by yindo · 1 comment
Owner

Originally created by @checkHup on GitHub (Apr 21, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3687

I utilize the MCP feature of AnythingLLM, and once I activate it using @agent, I am eager to find out how I can determine, through an API interface rather than the desktop client, when the prompt 'Agent session complete' appears appropriately.

Image

Originally created by @checkHup on GitHub (Apr 21, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3687 I utilize the MCP feature of AnythingLLM, and once I activate it using @agent, I am eager to find out how I can determine, through an API interface rather than the desktop client, when the prompt 'Agent session complete' appears appropriately. ![Image](https://github.com/user-attachments/assets/cd4a5fe5-d62a-40f2-b063-6aa839aa6172)
yindo closed this issue 2026-02-22 18:29:25 -05:00
Author
Owner

@timothycarambat commented on GitHub (Apr 21, 2025):

We dont expose the internal workspace_agent_invocations table which determines if a specific chat session is still open or closed and to what result.

If you are using the API already, why not just call the @agent via the workspace API /chat endpoint? We will run the agent in a single session and when you get a response you get the result + thoughts and the agent session is for sure closed when doing so.

It is unlikely we will expose this table via the API because its just not something really that should be directly interacted with since it simply for session tracking in-app.

@timothycarambat commented on GitHub (Apr 21, 2025): We dont expose the internal `workspace_agent_invocations` table which determines if a specific chat session is still open or closed and to what result. If you are using the API already, why not just call the `@agent` via the workspace API `/chat` endpoint? We will run the agent in a single session and when you get a response you get the result + thoughts and the agent session is for sure closed when doing so. It is unlikely we will expose this table via the API because its just not something really that should be directly interacted with since it simply for session tracking in-app.
yindo changed title from How to identify the sentence 'Agent session complete' to [GH-ISSUE #3687] How to identify the sentence 'Agent session complete' 2026-06-05 14:46:13 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#2378