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

kshard / thinker / 15082283232

17 May 2025 05:53AM UTC coverage: 33.807% (-24.4%) from 58.222%
15082283232

Pull #20

github

fogfish
establish agent taxonomy - prompter, manifold, automata
Pull Request #20: establish agent taxonomy - prompter, manifold, automata

241 of 611 new or added lines in 28 files covered. (39.44%)

145 existing lines in 5 files now uncovered.

381 of 1127 relevant lines covered (33.81%)

0.36 hits per line

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

0.0
/command/return.go
1
package command
2

3
import (
4
        "encoding/json"
5

6
        "github.com/kshard/thinker"
7
)
8

9
// A unique name for return command
10
const RETURN = "return"
11

12
// Creates new return command, instructing LLM return results
NEW
13
func Return() thinker.Cmd {
×
NEW
14
        return thinker.Cmd{
×
NEW
15
                Cmd:   RETURN,
×
NEW
16
                About: "indicate that workflow is completed and returns the expected result.",
×
NEW
17
                Args: []thinker.Arg{
×
NEW
18
                        {
×
NEW
19
                                Name:  "value",
×
NEW
20
                                Type:  "string",
×
NEW
21
                                About: `value to return as the workflow completion`,
×
NEW
22
                        },
×
NEW
23
                },
×
NEW
24
                Run: func(in json.RawMessage) ([]byte, error) {
×
NEW
25
                        var reply replyReturn
×
NEW
26
                        if err := json.Unmarshal(in, &reply); err != nil {
×
NEW
27
                                return nil, err
×
NEW
28
                        }
×
29

NEW
30
                        return []byte(reply.Value), nil
×
31
                },
32
        }
33
}
34

35
type replyReturn struct {
36
        Value string `json:"value,omitempty"`
37
}
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