ScuttleBot

scuttlebot / internal / llm / stub.go
Source Blame History 13 lines
5ac549c… lmata 1 package llm
5ac549c… lmata 2
5ac549c… lmata 3 import "context"
5ac549c… lmata 4
5ac549c… lmata 5 // StubProvider returns a fixed response. Useful in tests and as a no-op placeholder.
5ac549c… lmata 6 type StubProvider struct {
5ac549c… lmata 7 Response string
5ac549c… lmata 8 Err error
5ac549c… lmata 9 }
5ac549c… lmata 10
5ac549c… lmata 11 func (s *StubProvider) Summarize(_ context.Context, _ string) (string, error) {
5ac549c… lmata 12 return s.Response, s.Err
5ac549c… lmata 13 }

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button