diff options
| author | Paul Buetow <paul@buetow.org> | 2025-09-06 11:57:45 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-09-06 11:57:45 +0300 |
| commit | a48079fae6bb19d7c931f275901670cd5839ab5c (patch) | |
| tree | 5788a3e8cac34ffca9d39b0c4b5df720e869b578 /internal/lsp/testhelper_capture_llm_test.go | |
| parent | fb267966f7840df222338f57023273a993a73c9a (diff) | |
chore(version): bump to 0.6.0; configurable prompts via config + testsv0.6.0
Diffstat (limited to 'internal/lsp/testhelper_capture_llm_test.go')
| -rw-r--r-- | internal/lsp/testhelper_capture_llm_test.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/internal/lsp/testhelper_capture_llm_test.go b/internal/lsp/testhelper_capture_llm_test.go new file mode 100644 index 0000000..3274141 --- /dev/null +++ b/internal/lsp/testhelper_capture_llm_test.go @@ -0,0 +1,18 @@ +package lsp + +import ( + "context" + + "codeberg.org/snonux/hexai/internal/llm" +) + +// captureLLM captures messages sent to Chat for assertions. +type captureLLM struct{ msgs []llm.Message } + +func (c *captureLLM) Chat(_ context.Context, m []llm.Message, _ ...llm.RequestOption) (string, error) { + c.msgs = append([]llm.Message{}, m...) + return "OK", nil +} +func (*captureLLM) Name() string { return "cap" } +func (*captureLLM) DefaultModel() string { return "m" } + |
