brokk icon indicating copy to clipboard operation
brokk copied to clipboard

LLM should determine file-type of pasted snippets (for usage in PreviewWindow/RSyntaxTextArea)

Open lutzleonhardt opened this issue 7 months ago • 1 comments

Image

Make an extra call to an cheap LLM which support tool calling

lutzleonhardt avatar May 27 '25 16:05 lutzleonhardt

#108 is related

jbellis avatar May 27 '25 16:05 jbellis

two options

  1. try using tool calling to get summary + file type out of a single call
  2. 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)

jbellis avatar Jun 05 '25 12:06 jbellis

and to clarify this is talking about identifying the SyntaxConstants style for text, not mime types

jbellis avatar Jun 05 '25 13:06 jbellis