MCPcopy Create free account
hub / github.com/astercloud/aster / TestEvent_IsFinalResponse_WithToolCalls

Function TestEvent_IsFinalResponse_WithToolCalls

pkg/session/session_test.go:66–79  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

64}
65
66func TestEvent_IsFinalResponse_WithToolCalls(t *testing.T) {
67 event := &Event{
68 Content: types.Message{
69 Role: types.RoleAssistant,
70 ToolCalls: []types.ToolCall{
71 {ID: "call1", Name: "tool1"},
72 },
73 },
74 }
75
76 if event.IsFinalResponse() {
77 t.Error("expected IsFinalResponse to be false when ToolCalls is present")
78 }
79}
80
81func TestEvent_IsFinalResponse_NoToolCalls(t *testing.T) {
82 event := &Event{

Callers

nothing calls this directly

Calls 2

IsFinalResponseMethod · 0.95
ErrorMethod · 0.65

Tested by

no test coverage detected