Open
Conversation
Contributor
Greptile SummaryThis PR introduces a tool streams mechanism that allows long-running skills (
Issues found:
Confidence Score: 3/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Skill as Skill (e.g. follow_person)
participant TS as ToolStream
participant LCM as LCM (/tool_streams)
participant Server as McpServer
participant SSE as /mcp/streams (SSE)
participant Client as McpClient (SSE thread)
participant MQ as McpClient message queue
participant Agent as LLM Agent
Skill->>TS: start()
TS->>LCM: pLCMTransport.start()
Skill->>TS: send("Update 1")
TS->>LCM: publish(ToolStreamEvent{type=update})
LCM->>Server: _on_tool_stream_message(msg)
Server->>SSE: asyncio.run_coroutine_threadsafe(queue.put(msg))
SSE-->>Client: SSE line: data: {...}
Client->>MQ: queue.put(HumanMessage("[Tool stream update...]"))
MQ->>Agent: _process_message()
Skill->>TS: stop()
TS->>LCM: publish(ToolStreamEvent{type=close})
LCM->>Server: _on_tool_stream_message(msg)
Server->>SSE: asyncio.run_coroutine_threadsafe(queue.put(msg))
SSE-->>Client: SSE line: data: {type=close}
Note over Client: close event ignored by McpClient
TS->>LCM: pLCMTransport.stop()
Reviews (2): Last reviewed commit: "feat(tool-streams): add tool streams" | Re-trigger Greptile |
21bb763 to
888cf3f
Compare
2fc370a to
2b07827
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Closes DIM-633
Solution
Breaking Changes
None
How to Test
Contributor License Agreement