MCPcopy Create free account
hub / github.com/aurora-develop/aurora / TestFirstToolCallExamplePicksBash

Function TestFirstToolCallExamplePicksBash

internal/toolcall/parser_test.go:378–387  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

376}
377
378func TestFirstToolCallExamplePicksBash(t *testing.T) {
379 tools := []official.Tool{
380 {Type: "function", Function: official.ToolFunction{Name: "glob"}},
381 {Type: "function", Function: official.ToolFunction{Name: "bash"}},
382 }
383 ex := FirstToolCallExample(tools, "/tmp")
384 if !strings.Contains(ex, `"bash"`) {
385 t.Fatalf("ex = %q", ex)
386 }
387}
388
389func TestFirstToolCallExamplePicksFirst(t *testing.T) {
390 tools := []official.Tool{

Callers

nothing calls this directly

Calls 1

FirstToolCallExampleFunction · 0.85

Tested by

no test coverage detected