(t *testing.T, msgs ...fantasy.Message)
| 1941 | } |
| 1942 | |
| 1943 | func extractToolResultIDs(t *testing.T, msgs ...fantasy.Message) []string { |
| 1944 | t.Helper() |
| 1945 | var ids []string |
| 1946 | for _, msg := range msgs { |
| 1947 | for _, part := range msg.Content { |
| 1948 | tr, ok := asToolResultPartForTest(part) |
| 1949 | if ok { |
| 1950 | ids = append(ids, tr.ToolCallID) |
| 1951 | } |
| 1952 | } |
| 1953 | } |
| 1954 | return ids |
| 1955 | } |
| 1956 | |
| 1957 | func TestNulEscapeRoundTrip(t *testing.T) { |
| 1958 | t.Parallel() |
no test coverage detected