Add Coot Assistant - #395
Draft
Dialpuri wants to merge 12 commits into
Draft
Conversation
…istant output - Updated test cases to include `playbook_k` parameter in agent calls for consistency. - Added new tests to handle empty responses from the agent, ensuring retries and fallback mechanisms work correctly. - Implemented Markdown rendering in the assistant output, allowing for formatted text (bold, code, headings) to be displayed correctly in the transcript. - Introduced new tags for Markdown elements and ensured they are applied during text insertion. - Enhanced the assistant's event handling to include playbook notifications and warnings in the output. - Improved UI layout for the assistant tab, ensuring proper spacing and organization of input and control elements.
- Updated the default model to "gemma4-long" and modified the system prompt to improve interaction. - Implemented streaming support in the _ollama_chat function to allow real-time reasoning updates. - Added new functions to merge tool call deltas and assemble streamed responses for better handling of OpenAI server-sent events. - Enhanced the run_agent function to manage streamed reasoning and emit thinking events appropriately. - Introduced a new focus module to manage view adjustments automatically based on the current residue or selection. - Updated navigation commands to utilize the new focus functionality for better user experience. - Added clash handling in validation commands, allowing users to navigate to specific clashes found during validation. - Improved playbook instructions for handling clashes, emphasizing step-by-step execution and reasoning.
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 pull requests add the infrastructure for a Coot Assistant which can aid interaction with Coot using a local LLM.
This work requires two models available via Ollama (~10 Gb)
This can be made with this command :
Once they are pulled it should detect them in the drop down for use in the Coot assistant interface.
Also included in this PR: