[Route Planner Agent] New websocket connection to smart traffic agent#2007
Open
krish918 wants to merge 4 commits intoopen-edge-platform:mainfrom
Open
[Route Planner Agent] New websocket connection to smart traffic agent#2007krish918 wants to merge 4 commits intoopen-edge-platform:mainfrom
krish918 wants to merge 4 commits intoopen-edge-platform:mainfrom
Conversation
Signed-off-by: Krishna Murti <krishna.murti@intel.com>
- New websockets endpoints - New default location list setup to allow placeholders - Minor refactoring of logger code Signed-off-by: Krishna Murti <krishna.murti@intel.com>
- Replaced polling logic with concurrently running calls and checks for asyncio queue - Removed logic of calling agentic workflow for finding direct route - direct route is shown immediately once current source and destination are selected - New setup to get direct route and a loop running in main event thread to get optimized route - Added new QueueItem schema for Queue content - Update RouteService to make all methods async - Added logic to destroy map_parser objects once not needed - Moved CSS part from the main.py UI to a separate file - Added new events, removed ununsed components, async capabilities to UI Signed-off-by: Krishna Murti <krishna.murti@intel.com>
Signed-off-by: Krishna Murti <krishna.murti@intel.com>
yogeshmpandey
approved these changes
Mar 5, 2026
| }, | ||
| { | ||
| "host": "http://localhost:8083" | ||
| "host": "ws://localhost:8083" |
Contributor
There was a problem hiding this comment.
Maybe in future the ws:// can be removed and handled internally. Also the api_host can be a direct list having list of Intersection Endpoints
bharagha
approved these changes
Mar 10, 2026
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.
Description
This PR introduces a websockets client based connection to multiple Smart Traffic Intersection agents. It contains design changes and refactoring required to replace the previous gradio based polling logic to asyncio based non-blocking calls at regular intervals.
Fixes # (issue)
Any Newly Introduced Dependencies
NA
How Has This Been Tested?
Verified end to end integrated with 3 smart traffic intersection agents.
Checklist: