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

kshard / thinker / 14181687602

31 Mar 2025 09:19PM UTC coverage: 61.033% (-4.9%) from 65.921%
14181687602

Pull #11

github

fogfish
add unit test for memory purge
Pull Request #11: enhance framework with composable primitives

7 of 81 new or added lines in 9 files covered. (8.64%)

390 of 639 relevant lines covered (61.03%)

0.65 hits per line

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

80.0
/reasoner/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 reasoner
10

11
import (
12
        "github.com/kshard/chatter"
13
        "github.com/kshard/thinker"
14
)
15

16
// The void reasoner always sets a new goal to return results.
17
type Void[B any] struct{}
18

19
// Creates new void reasoner that always sets a new goal to return results.
20
func NewVoid[B any]() *Void[B] { return &Void[B]{} }
1✔
21

NEW
22
func (Void[B]) Purge() {}
×
23

24
// Deduct new goal for the agent to pursue.
25
func (Void[B]) Deduct(thinker.State[B]) (thinker.Phase, chatter.Prompt, error) {
1✔
26
        return thinker.AGENT_RETURN, chatter.Prompt{}, nil
1✔
27
}
1✔
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