feat/plotchat-sdk#4
Merged
Merged
Conversation
…eration with inline image streaming
… synthesis with streaming support
…tgen extensions, and message orchestration
…ining chat, audio, file, and realtime clients
…tool OpenAI function calling (plotgen, explainer, recommender)
…t` assistant with user instruction injection
…me session keys via `OpenAI API`
…ents for chat and audio responses
…nd `SmartPlotGenerator`, replacing deprecated `PlotGenerator`
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.
This pull request introduces a new modular
plot_chatsubsystem for PlotSense, enabling advanced AI-powered chat, audio, file, and real-time interactions for data visualization and analysis. The changes add specialized clients for chat streaming, audio transcription and speech, file management, function calls, and real-time session handling, all orchestrated by a centralPlotChatClient. Additionally, the plot generation module is refactored to support both basic and smart generators.Major new PlotChat subsystem:
PlotChatClientas the main entrypoint, aggregating chat, audio, file, and real-time clients for PlotSense AI-powered chat features (plotsense/plot_chat/client.py).ChatClientfor streaming chat with extension support (e.g., plot generation), including AI-driven content block assembly and chat title generation (plotsense/plot_chat/chat.py).ActionClientfor handling plot generation requests via AI prompt extraction, DataFrame parsing, and dynamic image streaming/upload (plotsense/plot_chat/action.py).AudioClientfor audio transcription and speech synthesis using OpenAI models, supporting streaming and MP3 output (plotsense/plot_chat/audio.py).FileClientfor file upload and deletion, andRealtimeClientfor ephemeral key generation for real-time sessions (plotsense/plot_chat/file.py,plotsense/plot_chat/realtime.py). [1] [2]Function call orchestration and prompt improvements:
FunctionCallClientto orchestrate OpenAI multi-tool function calls for plot generation, explanation, and recommendations, with tool registration and result serialization (plotsense/plot_chat/function_calls.py).plotsense/plot_chat/prompts.py).Plot generation module refactor:
BasicPlotGeneratorandSmartPlotGeneratorfor improved flexibility (plotsense/__init__.py).Module initialization:
PlotChatClientin the mainplot_chatpackage for easy access (plotsense/plot_chat/__init__.py).