• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kshard / thinker / 14957705673

11 May 2025 04:34PM UTC coverage: 58.222% (+0.2%) from 58.036%
14957705673

Pull #19

github

fogfish
update chatter to v0.6.0
Pull Request #19: update deps (chatter v0.6.0)

44 of 56 new or added lines in 18 files covered. (78.57%)

393 of 675 relevant lines covered (58.22%)

0.62 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/memory/void.go
1
//
2
// Copyright (C) 2025 Dmitry Kolesnikov
3
//
4
// This file may be modified and distributed under the terms
5
// of the MIT license.  See the LICENSE file for details.
6
// https://github.com/kshard/thinker
7
//
8

9
package memory
10

11
import (
12
        "fmt"
13

14
        "github.com/kshard/chatter"
15
        "github.com/kshard/thinker"
16
)
17

18
// The void memory does not retain any observations.
19
type Void struct {
20
        stratum chatter.Stratum
21
}
22

23
var _ thinker.Memory = (*Void)(nil)
24

25
// Create the void memory that does not retain any observations.
26
func NewVoid(stratum chatter.Stratum) *Void {
×
27
        return &Void{stratum: stratum}
×
28
}
×
29

30
// intentional the loss of memories, including facts, information and experiences
31
func (s *Void) Purge() {}
×
32

33
// Commit new observation into memory.
34
func (s *Void) Commit(e *thinker.Observation) {}
×
35

36
// Builds the context window for LLM using incoming prompt.
NEW
37
func (s *Void) Context(prompt *chatter.Prompt) []fmt.Stringer {
×
38
        if len(s.stratum) == 0 {
×
39
                return prompt.ToSeq()
×
40
        }
×
41

42
        return []fmt.Stringer{s.stratum, prompt}
×
43
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc