MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / streamContentsOfType

Function streamContentsOfType

test/agent_test.go:120–128  ·  view source on GitHub ↗
(events []agent.StreamEvent, eventType string)

Source from the content-addressed store, hash-verified

118}
119
120func streamContentsOfType(events []agent.StreamEvent, eventType string) []string {
121 var contents []string
122 for _, event := range events {
123 if event.Type == eventType {
124 contents = append(contents, event.Content)
125 }
126 }
127 return contents
128}
129
130func newInvalidRunShellTool() *invalidRunShellTool {
131 return &invalidRunShellTool{BaseTool: coretools.BaseTool{Spec: coretools.ToolSpec{

Calls

no outgoing calls

Tested by

no test coverage detected