ScuttleBot
|
1
|
package llm |
|
2
|
|
|
3
|
import "context" |
|
4
|
|
|
5
|
// StubProvider returns a fixed response. Useful in tests and as a no-op placeholder. |
|
6
|
type StubProvider struct { |
|
7
|
Response string |
|
8
|
Err error |
|
9
|
} |
|
10
|
|
|
11
|
func (s *StubProvider) Summarize(_ context.Context, _ string) (string, error) { |
|
12
|
return s.Response, s.Err |
|
13
|
} |
|
14
|
|