brokk
brokk copied to clipboard
LLM should determine file-type of pasted snippets (for usage in PreviewWindow/RSyntaxTextArea)
Make an extra call to an cheap LLM which support tool calling
#108 is related
two options
- try using tool calling to get summary + file type out of a single call
- make two calls (in parallel), each w/o tool calling
this is a minor enough use case, and the texts involved are generally small enough, that I'm inclined to recommend option 2 (#collaborating)
(but we should probably guarantee that the texts are small-ish by limiting to the first say 1000 words for both calls)
and to clarify this is talking about identifying the SyntaxConstants style for text, not mime types