ScuttleBot
| 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 | } |