Add wsl linter and fix

Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
Émile Ré
2026-05-19 14:51:08 +04:00
parent eedfdcecc8
commit 9156d6a16a
882 changed files with 6068 additions and 574 deletions

View File

@@ -156,11 +156,13 @@ func TestWithHandoffInputFilter(t *testing.T) {
target,
agent.WithHandoffInputFilter(func(data agent.HandoffInputData) []llm.Message {
var filtered []llm.Message
for _, m := range data.NewItems {
if m.Role == llm.RoleUser {
filtered = append(filtered, m)
}
}
return filtered
}),
)
@@ -194,6 +196,7 @@ func TestWithHandoffInputFilter(t *testing.T) {
all := make([]llm.Message, 0, len(data.InputHistory)+len(data.NewItems))
all = append(all, data.InputHistory...)
all = append(all, data.NewItems...)
return all
}),
)