Feature Request: option for preset to not send context
When using CWC to orchestrate a multi-agent process it can be helpful to have a formatter agent which has the sole responsibility of ensuring a template is followed. This agent doesn't need the context, just the prompt, but the presets are useful and it would be nice to be able to build a preset which has the option selected to not send any context files.
My specific use case is an enhanced version of Team-Think as discussed here: https://github.com/robertpiosik/CodeWebChat/discussions/316
This may be accomplishable using a template strategy where a specific token in the prefix or affix such as ${{chat}} or ${{full_context}} or ${{file_context}} is replaced.
Nice idea! I'm going to look into it.
Starting 1.119.0 a "No context" mode can be selected:
Thanks for the feature request! 🤓
#334
Thanks! This allows me to accomplish my objective much easier and is a great feature on its own. To be clear, this isn't exactly what I had in mind, but it's a great addition.
What I originally had in mind was an option to pick no context in the preset creation so it would always be that way:
After thinking about this further I realize it would be MUCH more useful/extensible to connect a preset to a saved context from .vscode/context.json as this way I can create a "none" context and another "docs" context and attach each of these to their own presets for specific workloads
I'm thinking about your ideas... They're great although they don't really align with my vision of the purpose of presets. For what you need we would need some other abstraction to not mix things a bit too much.
I appreciate you considering my request and respect that you have much deeper knowledge of the project and its abstractions and definitely don't want to take any approach that's forcing a round peg through a square hole.
From my perspective of using CWC I'm interested in being able to "customize" the way CWC orchestrates a web chat by augmenting the chat experience with my message and some subset of presets. I often want to customize the system message, prompt start, and prompt end, in addition to what context i'm sending, and where my custom input is within the prompt.
It feels to me like I'm interested in weaving together a template, a selection of contexts, a model configuration, and a user message. If there were a way that each of these (except the user message) could be saved similarly to how the context could be saved, and a grouping of the three could be saved and chosen at the time of sending a chat, that would provide the full flexibility for any use case I can envision. I'd love to talk through this further, I know from experience users rarely know what they want so much as what they want to accomplish and so I could see needing to refine the idea(s) further before making any changes
Starting 1.124.0 you can use placeholder @SavedContext:JSON "[CONTEXT NAME]" in chat input and prefix/suffix. Just type @ for an interactive wizard. The wizard will come to prefix/suffix fields soon.
Let me know how it works for you 🤓
Thank you for your work implementing this, because the prefix/suffix of the presets and context are both saved within json files I have all the pieces I had been describing and expect this will provide the flexibility I had been looking for.
Alright then! Closing this issue now, please feel free to open new ones if you feel like! Thank you for the feature request.