| 14804 | .is_custom = false, |
| 14805 | .output_index = 0, |
| 14806 | }; |
| 14807 | |
| 14808 | buf out = {0}; |
| 14809 | responses_append_function_call_item(&out, &calls.v[0], &item, |
| 14810 | "completed", true, &orders); |
| 14811 | TEST_ASSERT(strstr(out.ptr, "\"type\":\"tool_search_call\"") != NULL); |
| 14812 | TEST_ASSERT(strstr(out.ptr, "\"execution\":\"client\"") != NULL); |
| 14813 | TEST_ASSERT(strstr(out.ptr, "\"status\":\"completed\"") != NULL); |
| 14814 | TEST_ASSERT(strstr(out.ptr, "\"arguments\":{\"limit\":3,\"query\":\"perplexity\"}") != NULL); |
| 14815 | TEST_ASSERT(strstr(out.ptr, "\"type\":\"function_call\"") == NULL); |
| 14816 | |
| 14817 | buf_free(&out); |
| 14818 | free(schemas); |
| 14819 | tool_schema_orders_free(&orders); |
| 14820 | tool_calls_free(&calls); |
| 14821 | } |
| 14822 | |
| 14823 | static tool_calls make_swapped_bash_call(void) { |
| 14824 | tool_calls calls = {0}; |
| 14825 | tool_call tc = {0}; |
| 14826 | tc.name = xstrdup("bash"); |
| 14827 | tc.arguments = xstrdup("{\"description\":\"list files\",\"command\":\"ls -la\",\"timeout\":10}"); |
| 14828 | tool_calls_push(&calls, tc); |
| 14829 | return calls; |
| 14830 | } |
| 14831 |
no test coverage detected