ScuttleBot

scuttlebot / internal / bots / oracle / providers.go
Source Blame History 13 lines
49f7ee2… lmata 1 package oracle
49f7ee2… lmata 2
5ac549c… lmata 3 import "context"
49f7ee2… lmata 4
49f7ee2… lmata 5 // StubProvider returns a fixed summary. Used in tests and when no LLM is configured.
49f7ee2… lmata 6 type StubProvider struct {
49f7ee2… lmata 7 Response string
49f7ee2… lmata 8 Err error
49f7ee2… lmata 9 }
49f7ee2… lmata 10
49f7ee2… lmata 11 func (s *StubProvider) Summarize(_ context.Context, _ string) (string, error) {
49f7ee2… lmata 12 return s.Response, s.Err
49f7ee2… 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