(t *testing.T)
| 64 | } |
| 65 | |
| 66 | func 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 | |
| 81 | func TestEvent_IsFinalResponse_NoToolCalls(t *testing.T) { |
| 82 | event := &Event{ |
nothing calls this directly
no test coverage detected