Skip to content

Instantly share code, notes, and snippets.

@Aaron1011
Created October 17, 2025 17:24
Show Gist options
  • Select an option

  • Save Aaron1011/a400cd79b38ec882ae33a9efe6c343a1 to your computer and use it in GitHub Desktop.

Select an option

Save Aaron1011/a400cd79b38ec882ae33a9efe6c343a1 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="nextest-run" tests="70" failures="2" errors="0" uuid="7ec32e56-7fd8-41df-9ccd-cf0e5477eab3" timestamp="2025-10-17T13:07:52.966-04:00" time="278.596">
<testsuite name="tensorzero-core" tests="7" disabled="0" errors="0" failures="0">
<testcase name="providers::sglang::tests::test_sglang_provider_new_api_base_check" classname="tensorzero-core" timestamp="2025-10-17T13:07:53.181-04:00" time="0.028">
</testcase>
<testcase name="providers::sglang::tests::test_sglang_response_with_metadata_try_into" classname="tensorzero-core" timestamp="2025-10-17T13:07:53.182-04:00" time="0.033">
</testcase>
<testcase name="providers::sglang::export_bindings_sglangprovider" classname="tensorzero-core" timestamp="2025-10-17T13:07:53.182-04:00" time="0.046">
</testcase>
<testcase name="config::provider_types::export_bindings_sglangdefaults" classname="tensorzero-core" timestamp="2025-10-17T13:07:53.181-04:00" time="0.067">
</testcase>
<testcase name="config::provider_types::export_bindings_sglangprovidertypeconfig" classname="tensorzero-core" timestamp="2025-10-17T13:07:53.181-04:00" time="0.099">
</testcase>
<testcase name="providers::sglang::tests::test_sglang_request_new" classname="tensorzero-core" timestamp="2025-10-17T13:07:53.182-04:00" time="0.237">
</testcase>
<testcase name="providers::sglang::tests::test_sglang_tools" classname="tensorzero-core" timestamp="2025-10-17T13:07:53.182-04:00" time="0.505">
</testcase>
</testsuite>
<testsuite name="tensorzero-core::e2e" tests="63" disabled="0" errors="0" failures="2">
<testcase name="providers::sglang::test_bulk_embedding" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.182-04:00" time="0.045">
</testcase>
<testcase name="providers::sglang::test_basic_embedding" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.183-04:00" time="0.048">
</testcase>
<testcase name="providers::sglang::test_embedding_cache" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.216-04:00" time="0.036">
</testcase>
<testcase name="providers::sglang::test_embedding_cache_options" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.228-04:00" time="0.038">
</testcase>
<testcase name="providers::sglang::test_embedding_dryrun" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.232-04:00" time="0.051">
</testcase>
<testcase name="providers::sglang::test_bad_auth_extra_headers" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.183-04:00" time="0.110">
</testcase>
<testcase name="providers::sglang::test_embedding_with_dimensions" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.267-04:00" time="0.025">
</testcase>
<testcase name="providers::sglang::test_embedding_consistency" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.229-04:00" time="0.068">
</testcase>
<testcase name="providers::sglang::test_embedding_with_encoding_format" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.282-04:00" time="0.039">
</testcase>
<testcase name="providers::sglang::test_embedding_with_user_parameter" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.284-04:00" time="0.047">
</testcase>
<testcase name="providers::sglang::test_embedding_large_bulk" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.256-04:00" time="0.078">
</testcase>
<testcase name="providers::sglang::test_embedding_invalid_model_error" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.249-04:00" time="0.092">
</testcase>
<testcase name="providers::sglang::test_image_inference_store_filesystem" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.300-04:00" time="0.044">
</testcase>
<testcase name="providers::sglang::test_image_inference_store_amazon_s3" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.293-04:00" time="0.055">
</testcase>
<testcase name="providers::sglang::test_inference_params_inference_request" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.334-04:00" time="0.054">
</testcase>
<testcase name="providers::sglang::test_inference_params_streaming_inference_request" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.342-04:00" time="0.050">
</testcase>
<testcase name="providers::sglang::test_image_url_inference_store_filesystem" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.325-04:00" time="0.069">
</testcase>
<testcase name="providers::sglang::test_multi_turn_parallel_tool_use_inference_request" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.393-04:00" time="0.033">
</testcase>
<testcase name="providers::sglang::test_multi_turn_parallel_tool_use_streaming_inference_request" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.395-04:00" time="0.037">
</testcase>
<testcase name="providers::sglang::test_parallel_tool_use_inference_request" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.427-04:00" time="0.032">
</testcase>
<testcase name="providers::sglang::test_parallel_tool_use_streaming_inference_request" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.432-04:00" time="0.056">
</testcase>
<testcase name="providers::sglang::test_dynamic_tool_use_inference_request_http_gateway" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.183-04:00" time="0.315">
</testcase>
<testcase name="providers::sglang::test_pdf_inference_store_filesystem" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.464-04:00" time="0.058">
</testcase>
<testcase name="providers::sglang::test_dynamic_tool_use_streaming_inference_request_http_gateway" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.215-04:00" time="0.308">
</testcase>
<testcase name="providers::sglang::test_provider_type_default_credentials" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.489-04:00" time="0.039">
</testcase>
<testcase name="providers::sglang::test_provider_type_default_credentials_shorthand" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.498-04:00" time="0.031">
</testcase>
<testcase name="providers::sglang::test_reasoning_inference_request_json_mode" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.524-04:00" time="0.027">
</testcase>
<testcase name="providers::sglang::test_reasoning_inference_request_simple" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.529-04:00" time="0.032">
</testcase>
<testcase name="providers::sglang::test_shorthand_inference_request" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.552-04:00" time="0.029">
</testcase>
<testcase name="providers::sglang::test_dynamic_tool_use_streaming_inference_request_embedded_gateway" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.183-04:00" time="1.260">
</testcase>
<testcase name="providers::sglang::test_dynamic_tool_use_inference_request_embedded_gateway" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.183-04:00" time="1.416">
</testcase>
<testcase name="providers::sglang::test_provider_type_fallback_credentials" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.524-04:00" time="101.249">
</testcase>
<testcase name="providers::sglang::test_streaming_invalid_request" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:09:34.775-04:00" time="0.506">
</testcase>
<testcase name="providers::sglang::test_streaming_reasoning_inference_request_json_mode" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:09:35.282-04:00" time="0.031">
</testcase>
<testcase name="providers::sglang::test_streaming_reasoning_inference_request_simple" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:09:35.314-04:00" time="0.032">
</testcase>
<testcase name="providers::sglang::test_tool_multi_turn_inference_request" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:09:35.347-04:00" time="0.033">
</testcase>
<testcase name="providers::sglang::test_tool_multi_turn_streaming_inference_request" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:09:35.382-04:00" time="0.021">
</testcase>
<testcase name="providers::sglang::test_stop_sequences_inference_request_embedded_gateway" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:07:53.688-04:00" time="104.069">
</testcase>
<testcase name="providers::sglang::test_short_inference_request" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:09:59.193-04:00" time="66.772">
<flakyFailure timestamp="2025-10-17T13:07:53.530-04:00" time="120.008" type="test timeout">
<system-out>
running 1 test
test providers::sglang::test_short_inference_request has been running for over 60 seconds
</system-out>
<system-err></system-err>
</flakyFailure>
</testcase>
<testcase name="providers::sglang::test_simple_inference_request" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:10:02.582-04:00" time="65.223">
<flakyFailure timestamp="2025-10-17T13:07:53.562-04:00" time="120.006" type="test timeout">
<system-out>
running 1 test
test providers::sglang::test_simple_inference_request has been running for over 60 seconds
</system-out>
<system-err></system-err>
</flakyFailure>
</testcase>
<testcase name="providers::sglang::test_simple_streaming_inference_request" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:09:58.781-04:00" time="69.038">
<flakyFailure timestamp="2025-10-17T13:07:53.583-04:00" time="120.008" type="test timeout">
<system-out>
running 1 test
test providers::sglang::test_simple_streaming_inference_request has been running for over 60 seconds
</system-out>
<system-err></system-err>
</flakyFailure>
</testcase>
<testcase name="providers::sglang::test_multiple_text_blocks_in_message" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:10:03.346-04:00" time="66.452">
<flakyFailure timestamp="2025-10-17T13:07:53.419-04:00" time="120.008" type="test timeout">
<system-out>
running 1 test
test providers::sglang::test_multiple_text_blocks_in_message has been running for over 60 seconds
</system-out>
<system-err></system-err>
</flakyFailure>
</testcase>
<testcase name="providers::sglang::test_stop_sequences_inference_request_http_gateway" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:10:04.231-04:00" time="65.682">
<flakyFailure timestamp="2025-10-17T13:07:54.444-04:00" time="120.008" type="test timeout">
<system-out>
running 1 test
test providers::sglang::test_stop_sequences_inference_request_http_gateway has been running for over 60 seconds
</system-out>
<system-err></system-err>
</flakyFailure>
</testcase>
<testcase name="providers::sglang::test_extra_body" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:10:01.032-04:00" time="69.026">
<flakyFailure timestamp="2025-10-17T13:07:53.293-04:00" time="120.006" type="test timeout">
<system-out>
running 1 test
test providers::sglang::test_extra_body has been running for over 60 seconds
</system-out>
<system-err></system-err>
</flakyFailure>
</testcase>
<testcase name="providers::sglang::test_inference_extra_body" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:09:59.552-04:00" time="70.514">
<flakyFailure timestamp="2025-10-17T13:07:53.331-04:00" time="120.012" type="test timeout">
<system-out>
running 1 test
Provider name: sglang
test providers::sglang::test_inference_extra_body has been running for over 60 seconds
</system-out>
<system-err></system-err>
</flakyFailure>
</testcase>
<testcase name="providers::sglang::test_json_mode_streaming_inference_request" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:09:58.480-04:00" time="71.596">
<flakyFailure timestamp="2025-10-17T13:07:53.389-04:00" time="120.006" type="test timeout">
<system-out>
running 1 test
test providers::sglang::test_json_mode_streaming_inference_request has been running for over 60 seconds
</system-out>
<system-err></system-err>
</flakyFailure>
</testcase>
<testcase name="providers::sglang::test_tool_use_tool_choice_required_inference_request" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:11:10.066-04:00" time="0.017">
</testcase>
<testcase name="providers::sglang::test_tool_use_tool_choice_required_streaming_inference_request" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:11:10.076-04:00" time="0.013">
</testcase>
<testcase name="providers::sglang::test_dynamic_json_mode_inference_request" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:09:59.523-04:00" time="70.580">
<flakyFailure timestamp="2025-10-17T13:07:53.183-04:00" time="120.013" type="test timeout">
<system-out>
running 1 test
test providers::sglang::test_dynamic_json_mode_inference_request has been running for over 60 seconds
</system-out>
<system-err></system-err>
</flakyFailure>
</testcase>
<testcase name="providers::sglang::test_json_mode_inference_request" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:10:01.278-04:00" time="68.825">
<flakyFailure timestamp="2025-10-17T13:07:53.346-04:00" time="120.008" type="test timeout">
<system-out>
running 1 test
test providers::sglang::test_json_mode_inference_request has been running for over 60 seconds
</system-out>
<system-err></system-err>
</flakyFailure>
</testcase>
<testcase name="providers::sglang::test_tool_use_tool_choice_auto_unused_inference_request" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:11:05.965-04:00" time="4.350">
</testcase>
<testcase name="providers::sglang::test_tool_use_tool_choice_auto_used_inference_request" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:11:07.820-04:00" time="2.745">
</testcase>
<testcase name="providers::sglang::test_streaming_include_original_response" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:10:02.764-04:00" time="68.034">
<flakyFailure timestamp="2025-10-17T13:07:54.599-04:00" time="120.006" type="test timeout">
<system-out>
running 1 test
test providers::sglang::test_streaming_include_original_response has been running for over 60 seconds
</system-out>
<system-err></system-err>
</flakyFailure>
</testcase>
<testcase name="providers::sglang::test_json_mode_off_inference_request" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:10:02.781-04:00" time="68.109">
<flakyFailure timestamp="2025-10-17T13:07:53.351-04:00" time="120.008" type="test timeout">
<system-out>
running 1 test
test providers::sglang::test_json_mode_off_inference_request has been running for over 60 seconds
</system-out>
<system-err></system-err>
</flakyFailure>
</testcase>
<testcase name="providers::sglang::test_warn_ignored_thought_block" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:11:10.118-04:00" time="0.989">
</testcase>
<testcase name="providers::sglang::test_tool_use_tool_choice_auto_unused_streaming_inference_request" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:11:07.805-04:00" time="4.301">
</testcase>
<testcase name="providers::sglang::test_tool_use_tool_choice_none_inference_request" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:11:09.913-04:00" time="2.407">
</testcase>
<testcase name="providers::sglang::test_tool_use_tool_choice_auto_used_streaming_inference_request" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:11:09.798-04:00" time="2.856">
</testcase>
<testcase name="providers::sglang::test_tool_use_tool_choice_none_streaming_inference_request" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:11:10.059-04:00" time="2.826">
</testcase>
<testcase name="providers::sglang::test_tool_use_allowed_tools_streaming_inference_request" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:11:35.730-04:00" time="1.119">
<flakyFailure timestamp="2025-10-17T13:09:37.758-04:00" time="92.339" message="thread &apos;providers::sglang::test_tool_use_allowed_tools_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7787:33" type="test failure with exit code 101">thread &apos;providers::sglang::test_tool_use_allowed_tools_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7787:33:
Raw name already seen, got Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_920e9b0b78244c9da29a023e&quot;),
&quot;raw_name&quot;: String(&quot;get_humidity&quot;),
&quot;raw_arguments&quot;: String(&quot;&quot;),
}
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
<system-out>
running 1 test
test providers::sglang::test_tool_use_allowed_tools_streaming_inference_request has been running for over 60 seconds
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f325-ffc9-7203-8a88-d95882a2cf0d&quot;),
&quot;episode_id&quot;: String(&quot;0199f325-ff78-7a91-adef-399e5e458c5f&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;text&quot;),
&quot;id&quot;: String(&quot;0&quot;),
&quot;text&quot;: String(&quot;&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f325-ffc9-7203-8a88-d95882a2cf0d&quot;),
&quot;episode_id&quot;: String(&quot;0199f325-ff78-7a91-adef-399e5e458c5f&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_2f32adde25504b55ba261ffd&quot;),
&quot;raw_name&quot;: String(&quot;get_humidity&quot;),
&quot;raw_arguments&quot;: String(&quot;&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f325-ffc9-7203-8a88-d95882a2cf0d&quot;),
&quot;episode_id&quot;: String(&quot;0199f325-ff78-7a91-adef-399e5e458c5f&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_2f32adde25504b55ba261ffd&quot;),
&quot;raw_name&quot;: String(&quot;&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;location\&quot;: \&quot;&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f325-ffc9-7203-8a88-d95882a2cf0d&quot;),
&quot;episode_id&quot;: String(&quot;0199f325-ff78-7a91-adef-399e5e458c5f&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_2f32adde25504b55ba261ffd&quot;),
&quot;raw_name&quot;: String(&quot;&quot;),
&quot;raw_arguments&quot;: String(&quot;Tok&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f325-ffc9-7203-8a88-d95882a2cf0d&quot;),
&quot;episode_id&quot;: String(&quot;0199f325-ff78-7a91-adef-399e5e458c5f&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_2f32adde25504b55ba261ffd&quot;),
&quot;raw_name&quot;: String(&quot;&quot;),
&quot;raw_arguments&quot;: String(&quot;yo\&quot;}&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f325-ffc9-7203-8a88-d95882a2cf0d&quot;),
&quot;episode_id&quot;: String(&quot;0199f325-ff78-7a91-adef-399e5e458c5f&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_920e9b0b78244c9da29a023e&quot;),
&quot;raw_name&quot;: String(&quot;get_humidity&quot;),
&quot;raw_arguments&quot;: String(&quot;&quot;),
},
],
}
test providers::sglang::test_tool_use_allowed_tools_streaming_inference_request ... FAILED
failures:
failures:
providers::sglang::test_tool_use_allowed_tools_streaming_inference_request
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 2433 filtered out; finished in 92.31s
</system-out>
<system-err>
thread &apos;providers::sglang::test_tool_use_allowed_tools_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7787:33:
Raw name already seen, got Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_920e9b0b78244c9da29a023e&quot;),
&quot;raw_name&quot;: String(&quot;get_humidity&quot;),
&quot;raw_arguments&quot;: String(&quot;&quot;),
}
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
</system-err>
</flakyFailure>
<flakyFailure timestamp="2025-10-17T13:11:17.973-04:00" time="4.641" message="thread &apos;providers::sglang::test_tool_use_allowed_tools_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7787:33" type="test failure with exit code 101">thread &apos;providers::sglang::test_tool_use_allowed_tools_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7787:33:
Raw name already seen, got Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_a72e428991414b13a651d51a&quot;),
&quot;raw_name&quot;: String(&quot;get_humidity&quot;),
&quot;raw_arguments&quot;: String(&quot;&quot;),
}
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
<system-out>
running 1 test
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f327-86f6-7351-8d26-fe3b8e771230&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-86e0-7b82-9770-dd2fdae44a4c&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;text&quot;),
&quot;id&quot;: String(&quot;0&quot;),
&quot;text&quot;: String(&quot;&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f327-86f6-7351-8d26-fe3b8e771230&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-86e0-7b82-9770-dd2fdae44a4c&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_2e87e1191006452fa8961082&quot;),
&quot;raw_name&quot;: String(&quot;get_humidity&quot;),
&quot;raw_arguments&quot;: String(&quot;&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f327-86f6-7351-8d26-fe3b8e771230&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-86e0-7b82-9770-dd2fdae44a4c&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_2e87e1191006452fa8961082&quot;),
&quot;raw_name&quot;: String(&quot;&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;location\&quot;: \&quot;&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f327-86f6-7351-8d26-fe3b8e771230&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-86e0-7b82-9770-dd2fdae44a4c&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_2e87e1191006452fa8961082&quot;),
&quot;raw_name&quot;: String(&quot;&quot;),
&quot;raw_arguments&quot;: String(&quot;Tok&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f327-86f6-7351-8d26-fe3b8e771230&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-86e0-7b82-9770-dd2fdae44a4c&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_2e87e1191006452fa8961082&quot;),
&quot;raw_name&quot;: String(&quot;&quot;),
&quot;raw_arguments&quot;: String(&quot;yo\&quot;}&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f327-86f6-7351-8d26-fe3b8e771230&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-86e0-7b82-9770-dd2fdae44a4c&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_a72e428991414b13a651d51a&quot;),
&quot;raw_name&quot;: String(&quot;get_humidity&quot;),
&quot;raw_arguments&quot;: String(&quot;&quot;),
},
],
}
test providers::sglang::test_tool_use_allowed_tools_streaming_inference_request ... FAILED
failures:
failures:
providers::sglang::test_tool_use_allowed_tools_streaming_inference_request
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 2433 filtered out; finished in 4.63s
</system-out>
<system-err>
thread &apos;providers::sglang::test_tool_use_allowed_tools_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7787:33:
Raw name already seen, got Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_a72e428991414b13a651d51a&quot;),
&quot;raw_name&quot;: String(&quot;get_humidity&quot;),
&quot;raw_arguments&quot;: String(&quot;&quot;),
}
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
</system-err>
</flakyFailure>
<flakyFailure timestamp="2025-10-17T13:11:27.635-04:00" time="0.172" message="thread &apos;providers::sglang::test_tool_use_allowed_tools_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7737:27" type="test failure with exit code 101">thread &apos;providers::sglang::test_tool_use_allowed_tools_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7737:27:
called `Result::unwrap()` on an `Err` value: InvalidStatusCode(500, Response { url: &quot;http://localhost:3000/inference&quot;, status: 500, headers: {&quot;content-type&quot;: &quot;application/json&quot;, &quot;x-tensorzero-gateway-version&quot;: &quot;2025.10.3&quot;, &quot;content-length&quot;: &quot;556&quot;, &quot;date&quot;: &quot;Fri, 17 Oct 2025 17:11:27 GMT&quot;} })
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
<system-out>
running 1 test
test providers::sglang::test_tool_use_allowed_tools_streaming_inference_request ... FAILED
failures:
failures:
providers::sglang::test_tool_use_allowed_tools_streaming_inference_request
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 2433 filtered out; finished in 0.16s
</system-out>
<system-err>
thread &apos;providers::sglang::test_tool_use_allowed_tools_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7737:27:
called `Result::unwrap()` on an `Err` value: InvalidStatusCode(500, Response { url: &quot;http://localhost:3000/inference&quot;, status: 500, headers: {&quot;content-type&quot;: &quot;application/json&quot;, &quot;x-tensorzero-gateway-version&quot;: &quot;2025.10.3&quot;, &quot;content-length&quot;: &quot;556&quot;, &quot;date&quot;: &quot;Fri, 17 Oct 2025 17:11:27 GMT&quot;} })
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
</system-err>
</flakyFailure>
</testcase>
<testcase name="providers::sglang::test_tool_use_allowed_tools_inference_request" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:12:09.048-04:00" time="0.949">
<flakyFailure timestamp="2025-10-17T13:09:35.403-04:00" time="98.317" message="thread &apos;providers::sglang::test_tool_use_allowed_tools_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7682:5" type="test failure with exit code 101">thread &apos;providers::sglang::test_tool_use_allowed_tools_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7682:5:
assertion `left == right` failed: Expected exactly one tool call
left: 4
right: 1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
<system-out>
running 1 test
test providers::sglang::test_tool_use_allowed_tools_inference_request has been running for over 60 seconds
API response: Object {
&quot;inference_id&quot;: String(&quot;0199f325-f6a4-7d41-8ae0-c920bdce3586&quot;),
&quot;episode_id&quot;: String(&quot;0199f325-f647-7560-bda7-5138793ae756&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;location&quot;: String(&quot;Tokyo&quot;),
},
&quot;id&quot;: String(&quot;call_0d69672af2c648ceb5b68395&quot;),
&quot;name&quot;: String(&quot;get_humidity&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;location\&quot;: \&quot;Tokyo\&quot;}&quot;),
&quot;raw_name&quot;: String(&quot;get_humidity&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;location&quot;: String(&quot;Tokyo&quot;),
},
&quot;id&quot;: String(&quot;call_3733932500c3461398cc153b&quot;),
&quot;name&quot;: String(&quot;get_humidity&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;location\&quot;: \&quot;Tokyo\&quot;}&quot;),
&quot;raw_name&quot;: String(&quot;get_humidity&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;location&quot;: String(&quot;Tokyo&quot;),
},
&quot;id&quot;: String(&quot;call_05070bef67cd45f0ba6230a9&quot;),
&quot;name&quot;: String(&quot;get_humidity&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;location\&quot;: \&quot;Tokyo\&quot;}&quot;),
&quot;raw_name&quot;: String(&quot;get_humidity&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;location&quot;: String(&quot;Tokyo&quot;),
},
&quot;id&quot;: String(&quot;call_ec2d180fb13c4d5482c22d60&quot;),
&quot;name&quot;: String(&quot;get_humidity&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;location\&quot;: \&quot;Tokyo\&quot;}&quot;),
&quot;raw_name&quot;: String(&quot;get_humidity&quot;),
},
],
&quot;usage&quot;: Object {
&quot;input_tokens&quot;: Number(234),
&quot;output_tokens&quot;: Number(100),
},
&quot;finish_reason&quot;: String(&quot;length&quot;),
}
Connecting to ClickHouse
Connected to ClickHouse in 18.685181ms
ClickHouse - ChatInference: Object {
&quot;id&quot;: String(&quot;0199f325-f6a4-7d41-8ae0-c920bdce3586&quot;),
&quot;function_name&quot;: String(&quot;basic_test&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;episode_id&quot;: String(&quot;0199f325-f647-7560-bda7-5138793ae756&quot;),
&quot;input&quot;: String(&quot;{\&quot;system\&quot;:{\&quot;assistant_name\&quot;:\&quot;Dr. Mehta\&quot;},\&quot;messages\&quot;:[{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:[{\&quot;type\&quot;:\&quot;text\&quot;,\&quot;value\&quot;:\&quot;What can you tell me about the weather in Tokyo (e.g. temperature, humidity, wind)? Use the provided tools and return what you can (not necessarily everything).\&quot;}]}]}&quot;),
&quot;output&quot;: String(&quot;[{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;location\&quot;:\&quot;Tokyo\&quot;},\&quot;id\&quot;:\&quot;call_0d69672af2c648ceb5b68395\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;raw_name\&quot;:\&quot;get_humidity\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;location\&quot;:\&quot;Tokyo\&quot;},\&quot;id\&quot;:\&quot;call_3733932500c3461398cc153b\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;raw_name\&quot;:\&quot;get_humidity\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;location\&quot;:\&quot;Tokyo\&quot;},\&quot;id\&quot;:\&quot;call_05070bef67cd45f0ba6230a9\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;raw_name\&quot;:\&quot;get_humidity\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;location\&quot;:\&quot;Tokyo\&quot;},\&quot;id\&quot;:\&quot;call_ec2d180fb13c4d5482c22d60\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;raw_name\&quot;:\&quot;get_humidity\&quot;}]&quot;),
&quot;tool_params&quot;: String(&quot;{\&quot;tools_available\&quot;:[{\&quot;description\&quot;:\&quot;Get the current humidity in a given location\&quot;,\&quot;parameters\&quot;:{\&quot;$schema\&quot;:\&quot;http://json-schema.org/draft-07/schema#\&quot;,\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;location\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The location to get the humidity for (e.g. \\\&quot;New York\\\&quot;)\&quot;}},\&quot;required\&quot;:[\&quot;location\&quot;],\&quot;additionalProperties\&quot;:false},\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;strict\&quot;:false}],\&quot;tool_choice\&quot;:\&quot;required\&quot;,\&quot;parallel_tool_calls\&quot;:null}&quot;),
&quot;inference_params&quot;: String(&quot;{\&quot;chat_completion\&quot;:{\&quot;max_tokens\&quot;:100}}&quot;),
&quot;processing_time_ms&quot;: Number(97940),
&quot;tags&quot;: Object {
&quot;tensorzero::variant_pinned&quot;: String(&quot;sglang&quot;),
},
&quot;extra_body&quot;: String(&quot;[]&quot;),
&quot;ttft_ms&quot;: Null,
}
Properties: {
&quot;location&quot;: Object {
&quot;type&quot;: String(&quot;string&quot;),
&quot;description&quot;: String(&quot;The location to get the humidity for (e.g. \&quot;New York\&quot;)&quot;),
},
}
ClickHouse - ModelInference: Object {
&quot;id&quot;: String(&quot;0199f327-7539-7a43-ae48-c773c44a4656&quot;),
&quot;inference_id&quot;: String(&quot;0199f325-f6a4-7d41-8ae0-c920bdce3586&quot;),
&quot;raw_request&quot;: String(&quot;{\&quot;messages\&quot;:[{\&quot;role\&quot;:\&quot;system\&quot;,\&quot;content\&quot;:\&quot;You are a helpful and friendly assistant named Dr. Mehta\&quot;},{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:\&quot;What can you tell me about the weather in Tokyo (e.g. temperature, humidity, wind)? Use the provided tools and return what you can (not necessarily everything).\&quot;}],\&quot;model\&quot;:\&quot;Qwen/Qwen2.5-1.5B-Instruct\&quot;,\&quot;max_tokens\&quot;:100,\&quot;stream\&quot;:false,\&quot;tools\&quot;:[{\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;description\&quot;:\&quot;Get the current humidity in a given location\&quot;,\&quot;parameters\&quot;:{\&quot;$schema\&quot;:\&quot;http://json-schema.org/draft-07/schema#\&quot;,\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;location\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The location to get the humidity for (e.g. \\\&quot;New York\\\&quot;)\&quot;}},\&quot;required\&quot;:[\&quot;location\&quot;],\&quot;additionalProperties\&quot;:false}},\&quot;strict\&quot;:false}],\&quot;tool_choice\&quot;:\&quot;required\&quot;}&quot;),
&quot;raw_response&quot;: String(&quot;{\&quot;id\&quot;:\&quot;a2f99a7156104c8194f7352334f17f96\&quot;,\&quot;object\&quot;:\&quot;chat.completion\&quot;,\&quot;created\&quot;:1760721073,\&quot;model\&quot;:\&quot;Qwen/Qwen2.5-1.5B-Instruct\&quot;,\&quot;choices\&quot;:[{\&quot;index\&quot;:0,\&quot;message\&quot;:{\&quot;role\&quot;:\&quot;assistant\&quot;,\&quot;content\&quot;:null,\&quot;reasoning_content\&quot;:null,\&quot;tool_calls\&quot;:[{\&quot;id\&quot;:\&quot;call_0d69672af2c648ceb5b68395\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;}},{\&quot;id\&quot;:\&quot;call_3733932500c3461398cc153b\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;}},{\&quot;id\&quot;:\&quot;call_05070bef67cd45f0ba6230a9\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;}},{\&quot;id\&quot;:\&quot;call_ec2d180fb13c4d5482c22d60\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;}}]},\&quot;logprobs\&quot;:null,\&quot;finish_reason\&quot;:\&quot;length\&quot;,\&quot;matched_stop\&quot;:null}],\&quot;usage\&quot;:{\&quot;prompt_tokens\&quot;:234,\&quot;total_tokens\&quot;:334,\&quot;completion_tokens\&quot;:100,\&quot;prompt_tokens_details\&quot;:null}}&quot;),
&quot;model_name&quot;: String(&quot;Qwen/Qwen2.5-1.5B-Instruct&quot;),
&quot;model_provider_name&quot;: String(&quot;sglang&quot;),
&quot;input_tokens&quot;: Number(234),
&quot;output_tokens&quot;: Number(100),
&quot;response_time_ms&quot;: Number(97934),
&quot;ttft_ms&quot;: Null,
&quot;system&quot;: String(&quot;You are a helpful and friendly assistant named Dr. Mehta&quot;),
&quot;input_messages&quot;: String(&quot;[{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:[{\&quot;type\&quot;:\&quot;text\&quot;,\&quot;text\&quot;:\&quot;What can you tell me about the weather in Tokyo (e.g. temperature, humidity, wind)? Use the provided tools and return what you can (not necessarily everything).\&quot;}]}]&quot;),
&quot;output&quot;: String(&quot;[{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;id\&quot;:\&quot;call_0d69672af2c648ceb5b68395\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;id\&quot;:\&quot;call_3733932500c3461398cc153b\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;id\&quot;:\&quot;call_05070bef67cd45f0ba6230a9\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;id\&quot;:\&quot;call_ec2d180fb13c4d5482c22d60\&quot;}]&quot;),
&quot;cached&quot;: Bool(false),
&quot;finish_reason&quot;: String(&quot;length&quot;),
}
test providers::sglang::test_tool_use_allowed_tools_inference_request ... FAILED
failures:
failures:
providers::sglang::test_tool_use_allowed_tools_inference_request
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 2433 filtered out; finished in 98.29s
</system-out>
<system-err>
thread &apos;providers::sglang::test_tool_use_allowed_tools_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7682:5:
assertion `left == right` failed: Expected exactly one tool call
left: 4
right: 1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
</system-err>
</flakyFailure>
<flakyFailure timestamp="2025-10-17T13:11:22.987-04:00" time="3.290" message="thread &apos;providers::sglang::test_tool_use_allowed_tools_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7682:5" type="test failure with exit code 101">thread &apos;providers::sglang::test_tool_use_allowed_tools_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7682:5:
assertion `left == right` failed: Expected exactly one tool call
left: 4
right: 1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
<system-out>
running 1 test
API response: Object {
&quot;inference_id&quot;: String(&quot;0199f327-9a92-7a23-b64a-ce768b5921fd&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-9a76-7f43-81e4-2202d1672304&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;location&quot;: String(&quot;Tokyo&quot;),
},
&quot;id&quot;: String(&quot;call_2dba1678b6204b54bb86e037&quot;),
&quot;name&quot;: String(&quot;get_humidity&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;location\&quot;: \&quot;Tokyo\&quot;}&quot;),
&quot;raw_name&quot;: String(&quot;get_humidity&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;location&quot;: String(&quot;Tokyo&quot;),
},
&quot;id&quot;: String(&quot;call_6092639433f54c56be3c13c9&quot;),
&quot;name&quot;: String(&quot;get_humidity&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;location\&quot;: \&quot;Tokyo\&quot;}&quot;),
&quot;raw_name&quot;: String(&quot;get_humidity&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;location&quot;: String(&quot;Tokyo&quot;),
},
&quot;id&quot;: String(&quot;call_6348fd40a71e4a3e93f8e83b&quot;),
&quot;name&quot;: String(&quot;get_humidity&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;location\&quot;: \&quot;Tokyo\&quot;}&quot;),
&quot;raw_name&quot;: String(&quot;get_humidity&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;location&quot;: String(&quot;Tokyo&quot;),
},
&quot;id&quot;: String(&quot;call_9e1d81078f4e43df9e39699f&quot;),
&quot;name&quot;: String(&quot;get_humidity&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;location\&quot;: \&quot;Tokyo\&quot;}&quot;),
&quot;raw_name&quot;: String(&quot;get_humidity&quot;),
},
],
&quot;usage&quot;: Object {
&quot;input_tokens&quot;: Number(234),
&quot;output_tokens&quot;: Number(100),
},
&quot;finish_reason&quot;: String(&quot;length&quot;),
}
Connecting to ClickHouse
Connected to ClickHouse in 20.905347ms
ClickHouse - ChatInference: Object {
&quot;id&quot;: String(&quot;0199f327-9a92-7a23-b64a-ce768b5921fd&quot;),
&quot;function_name&quot;: String(&quot;basic_test&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-9a76-7f43-81e4-2202d1672304&quot;),
&quot;input&quot;: String(&quot;{\&quot;system\&quot;:{\&quot;assistant_name\&quot;:\&quot;Dr. Mehta\&quot;},\&quot;messages\&quot;:[{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:[{\&quot;type\&quot;:\&quot;text\&quot;,\&quot;value\&quot;:\&quot;What can you tell me about the weather in Tokyo (e.g. temperature, humidity, wind)? Use the provided tools and return what you can (not necessarily everything).\&quot;}]}]}&quot;),
&quot;output&quot;: String(&quot;[{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;location\&quot;:\&quot;Tokyo\&quot;},\&quot;id\&quot;:\&quot;call_2dba1678b6204b54bb86e037\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;raw_name\&quot;:\&quot;get_humidity\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;location\&quot;:\&quot;Tokyo\&quot;},\&quot;id\&quot;:\&quot;call_6092639433f54c56be3c13c9\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;raw_name\&quot;:\&quot;get_humidity\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;location\&quot;:\&quot;Tokyo\&quot;},\&quot;id\&quot;:\&quot;call_6348fd40a71e4a3e93f8e83b\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;raw_name\&quot;:\&quot;get_humidity\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;location\&quot;:\&quot;Tokyo\&quot;},\&quot;id\&quot;:\&quot;call_9e1d81078f4e43df9e39699f\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;raw_name\&quot;:\&quot;get_humidity\&quot;}]&quot;),
&quot;tool_params&quot;: String(&quot;{\&quot;tools_available\&quot;:[{\&quot;description\&quot;:\&quot;Get the current humidity in a given location\&quot;,\&quot;parameters\&quot;:{\&quot;$schema\&quot;:\&quot;http://json-schema.org/draft-07/schema#\&quot;,\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;location\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The location to get the humidity for (e.g. \\\&quot;New York\\\&quot;)\&quot;}},\&quot;required\&quot;:[\&quot;location\&quot;],\&quot;additionalProperties\&quot;:false},\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;strict\&quot;:false}],\&quot;tool_choice\&quot;:\&quot;required\&quot;,\&quot;parallel_tool_calls\&quot;:null}&quot;),
&quot;inference_params&quot;: String(&quot;{\&quot;chat_completion\&quot;:{\&quot;max_tokens\&quot;:100}}&quot;),
&quot;processing_time_ms&quot;: Number(2973),
&quot;tags&quot;: Object {
&quot;tensorzero::variant_pinned&quot;: String(&quot;sglang&quot;),
},
&quot;extra_body&quot;: String(&quot;[]&quot;),
&quot;ttft_ms&quot;: Null,
}
Properties: {
&quot;location&quot;: Object {
&quot;type&quot;: String(&quot;string&quot;),
&quot;description&quot;: String(&quot;The location to get the humidity for (e.g. \&quot;New York\&quot;)&quot;),
},
}
ClickHouse - ModelInference: Object {
&quot;id&quot;: String(&quot;0199f327-a62f-7b80-8e80-43b8645595a1&quot;),
&quot;inference_id&quot;: String(&quot;0199f327-9a92-7a23-b64a-ce768b5921fd&quot;),
&quot;raw_request&quot;: String(&quot;{\&quot;messages\&quot;:[{\&quot;role\&quot;:\&quot;system\&quot;,\&quot;content\&quot;:\&quot;You are a helpful and friendly assistant named Dr. Mehta\&quot;},{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:\&quot;What can you tell me about the weather in Tokyo (e.g. temperature, humidity, wind)? Use the provided tools and return what you can (not necessarily everything).\&quot;}],\&quot;model\&quot;:\&quot;Qwen/Qwen2.5-1.5B-Instruct\&quot;,\&quot;max_tokens\&quot;:100,\&quot;stream\&quot;:false,\&quot;tools\&quot;:[{\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;description\&quot;:\&quot;Get the current humidity in a given location\&quot;,\&quot;parameters\&quot;:{\&quot;$schema\&quot;:\&quot;http://json-schema.org/draft-07/schema#\&quot;,\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;location\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The location to get the humidity for (e.g. \\\&quot;New York\\\&quot;)\&quot;}},\&quot;required\&quot;:[\&quot;location\&quot;],\&quot;additionalProperties\&quot;:false}},\&quot;strict\&quot;:false}],\&quot;tool_choice\&quot;:\&quot;required\&quot;}&quot;),
&quot;raw_response&quot;: String(&quot;{\&quot;id\&quot;:\&quot;a18eb5dd839e444faaa2eb9ed2efc938\&quot;,\&quot;object\&quot;:\&quot;chat.completion\&quot;,\&quot;created\&quot;:1760721085,\&quot;model\&quot;:\&quot;Qwen/Qwen2.5-1.5B-Instruct\&quot;,\&quot;choices\&quot;:[{\&quot;index\&quot;:0,\&quot;message\&quot;:{\&quot;role\&quot;:\&quot;assistant\&quot;,\&quot;content\&quot;:null,\&quot;reasoning_content\&quot;:null,\&quot;tool_calls\&quot;:[{\&quot;id\&quot;:\&quot;call_2dba1678b6204b54bb86e037\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;}},{\&quot;id\&quot;:\&quot;call_6092639433f54c56be3c13c9\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;}},{\&quot;id\&quot;:\&quot;call_6348fd40a71e4a3e93f8e83b\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;}},{\&quot;id\&quot;:\&quot;call_9e1d81078f4e43df9e39699f\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;}}]},\&quot;logprobs\&quot;:null,\&quot;finish_reason\&quot;:\&quot;length\&quot;,\&quot;matched_stop\&quot;:null}],\&quot;usage\&quot;:{\&quot;prompt_tokens\&quot;:234,\&quot;total_tokens\&quot;:334,\&quot;completion_tokens\&quot;:100,\&quot;prompt_tokens_details\&quot;:null}}&quot;),
&quot;model_name&quot;: String(&quot;Qwen/Qwen2.5-1.5B-Instruct&quot;),
&quot;model_provider_name&quot;: String(&quot;sglang&quot;),
&quot;input_tokens&quot;: Number(234),
&quot;output_tokens&quot;: Number(100),
&quot;response_time_ms&quot;: Number(2971),
&quot;ttft_ms&quot;: Null,
&quot;system&quot;: String(&quot;You are a helpful and friendly assistant named Dr. Mehta&quot;),
&quot;input_messages&quot;: String(&quot;[{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:[{\&quot;type\&quot;:\&quot;text\&quot;,\&quot;text\&quot;:\&quot;What can you tell me about the weather in Tokyo (e.g. temperature, humidity, wind)? Use the provided tools and return what you can (not necessarily everything).\&quot;}]}]&quot;),
&quot;output&quot;: String(&quot;[{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;id\&quot;:\&quot;call_2dba1678b6204b54bb86e037\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;id\&quot;:\&quot;call_6092639433f54c56be3c13c9\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;id\&quot;:\&quot;call_6348fd40a71e4a3e93f8e83b\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;id\&quot;:\&quot;call_9e1d81078f4e43df9e39699f\&quot;}]&quot;),
&quot;cached&quot;: Bool(false),
&quot;finish_reason&quot;: String(&quot;length&quot;),
}
test providers::sglang::test_tool_use_allowed_tools_inference_request ... FAILED
failures:
failures:
providers::sglang::test_tool_use_allowed_tools_inference_request
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 2433 filtered out; finished in 3.28s
</system-out>
<system-err>
thread &apos;providers::sglang::test_tool_use_allowed_tools_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7682:5:
assertion `left == right` failed: Expected exactly one tool call
left: 4
right: 1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
</system-err>
</flakyFailure>
<flakyFailure timestamp="2025-10-17T13:11:33.635-04:00" time="3.137" message="thread &apos;providers::sglang::test_tool_use_allowed_tools_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7682:5" type="test failure with exit code 101">thread &apos;providers::sglang::test_tool_use_allowed_tools_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7682:5:
assertion `left == right` failed: Expected exactly one tool call
left: 4
right: 1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
<system-out>
running 1 test
API response: Object {
&quot;inference_id&quot;: String(&quot;0199f327-c41e-7d82-a013-e730bc7895cc&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-c40a-7561-a5ea-68d954f42468&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;location&quot;: String(&quot;Tokyo&quot;),
},
&quot;id&quot;: String(&quot;call_fccee54d97af4704be60c2fe&quot;),
&quot;name&quot;: String(&quot;get_humidity&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;location\&quot;: \&quot;Tokyo\&quot;}&quot;),
&quot;raw_name&quot;: String(&quot;get_humidity&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;location&quot;: String(&quot;Tokyo&quot;),
},
&quot;id&quot;: String(&quot;call_f87d2a8134c5436bb1c97501&quot;),
&quot;name&quot;: String(&quot;get_humidity&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;location\&quot;: \&quot;Tokyo\&quot;}&quot;),
&quot;raw_name&quot;: String(&quot;get_humidity&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;location&quot;: String(&quot;Tokyo&quot;),
},
&quot;id&quot;: String(&quot;call_5d03bde4c9724a9f985332e8&quot;),
&quot;name&quot;: String(&quot;get_humidity&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;location\&quot;: \&quot;Tokyo\&quot;}&quot;),
&quot;raw_name&quot;: String(&quot;get_humidity&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;location&quot;: String(&quot;Tokyo&quot;),
},
&quot;id&quot;: String(&quot;call_8b22d15baa954a148675ae19&quot;),
&quot;name&quot;: String(&quot;get_humidity&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;location\&quot;: \&quot;Tokyo\&quot;}&quot;),
&quot;raw_name&quot;: String(&quot;get_humidity&quot;),
},
],
&quot;usage&quot;: Object {
&quot;input_tokens&quot;: Number(234),
&quot;output_tokens&quot;: Number(100),
},
&quot;finish_reason&quot;: String(&quot;length&quot;),
}
Connecting to ClickHouse
Connected to ClickHouse in 14.836317ms
ClickHouse - ChatInference: Object {
&quot;id&quot;: String(&quot;0199f327-c41e-7d82-a013-e730bc7895cc&quot;),
&quot;function_name&quot;: String(&quot;basic_test&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-c40a-7561-a5ea-68d954f42468&quot;),
&quot;input&quot;: String(&quot;{\&quot;system\&quot;:{\&quot;assistant_name\&quot;:\&quot;Dr. Mehta\&quot;},\&quot;messages\&quot;:[{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:[{\&quot;type\&quot;:\&quot;text\&quot;,\&quot;value\&quot;:\&quot;What can you tell me about the weather in Tokyo (e.g. temperature, humidity, wind)? Use the provided tools and return what you can (not necessarily everything).\&quot;}]}]}&quot;),
&quot;output&quot;: String(&quot;[{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;location\&quot;:\&quot;Tokyo\&quot;},\&quot;id\&quot;:\&quot;call_fccee54d97af4704be60c2fe\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;raw_name\&quot;:\&quot;get_humidity\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;location\&quot;:\&quot;Tokyo\&quot;},\&quot;id\&quot;:\&quot;call_f87d2a8134c5436bb1c97501\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;raw_name\&quot;:\&quot;get_humidity\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;location\&quot;:\&quot;Tokyo\&quot;},\&quot;id\&quot;:\&quot;call_5d03bde4c9724a9f985332e8\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;raw_name\&quot;:\&quot;get_humidity\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;location\&quot;:\&quot;Tokyo\&quot;},\&quot;id\&quot;:\&quot;call_8b22d15baa954a148675ae19\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;raw_name\&quot;:\&quot;get_humidity\&quot;}]&quot;),
&quot;tool_params&quot;: String(&quot;{\&quot;tools_available\&quot;:[{\&quot;description\&quot;:\&quot;Get the current humidity in a given location\&quot;,\&quot;parameters\&quot;:{\&quot;$schema\&quot;:\&quot;http://json-schema.org/draft-07/schema#\&quot;,\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;location\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The location to get the humidity for (e.g. \\\&quot;New York\\\&quot;)\&quot;}},\&quot;required\&quot;:[\&quot;location\&quot;],\&quot;additionalProperties\&quot;:false},\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;strict\&quot;:false}],\&quot;tool_choice\&quot;:\&quot;required\&quot;,\&quot;parallel_tool_calls\&quot;:null}&quot;),
&quot;inference_params&quot;: String(&quot;{\&quot;chat_completion\&quot;:{\&quot;max_tokens\&quot;:100}}&quot;),
&quot;processing_time_ms&quot;: Number(2855),
&quot;tags&quot;: Object {
&quot;tensorzero::variant_pinned&quot;: String(&quot;sglang&quot;),
},
&quot;extra_body&quot;: String(&quot;[]&quot;),
&quot;ttft_ms&quot;: Null,
}
Properties: {
&quot;location&quot;: Object {
&quot;type&quot;: String(&quot;string&quot;),
&quot;description&quot;: String(&quot;The location to get the humidity for (e.g. \&quot;New York\&quot;)&quot;),
},
}
ClickHouse - ModelInference: Object {
&quot;id&quot;: String(&quot;0199f327-cf45-76b1-9145-eeb442883584&quot;),
&quot;inference_id&quot;: String(&quot;0199f327-c41e-7d82-a013-e730bc7895cc&quot;),
&quot;raw_request&quot;: String(&quot;{\&quot;messages\&quot;:[{\&quot;role\&quot;:\&quot;system\&quot;,\&quot;content\&quot;:\&quot;You are a helpful and friendly assistant named Dr. Mehta\&quot;},{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:\&quot;What can you tell me about the weather in Tokyo (e.g. temperature, humidity, wind)? Use the provided tools and return what you can (not necessarily everything).\&quot;}],\&quot;model\&quot;:\&quot;Qwen/Qwen2.5-1.5B-Instruct\&quot;,\&quot;max_tokens\&quot;:100,\&quot;stream\&quot;:false,\&quot;tools\&quot;:[{\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;description\&quot;:\&quot;Get the current humidity in a given location\&quot;,\&quot;parameters\&quot;:{\&quot;$schema\&quot;:\&quot;http://json-schema.org/draft-07/schema#\&quot;,\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;location\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The location to get the humidity for (e.g. \\\&quot;New York\\\&quot;)\&quot;}},\&quot;required\&quot;:[\&quot;location\&quot;],\&quot;additionalProperties\&quot;:false}},\&quot;strict\&quot;:false}],\&quot;tool_choice\&quot;:\&quot;required\&quot;}&quot;),
&quot;raw_response&quot;: String(&quot;{\&quot;id\&quot;:\&quot;9230cee4773d4fe0bd9ce3e719c76dbd\&quot;,\&quot;object\&quot;:\&quot;chat.completion\&quot;,\&quot;created\&quot;:1760721096,\&quot;model\&quot;:\&quot;Qwen/Qwen2.5-1.5B-Instruct\&quot;,\&quot;choices\&quot;:[{\&quot;index\&quot;:0,\&quot;message\&quot;:{\&quot;role\&quot;:\&quot;assistant\&quot;,\&quot;content\&quot;:null,\&quot;reasoning_content\&quot;:null,\&quot;tool_calls\&quot;:[{\&quot;id\&quot;:\&quot;call_fccee54d97af4704be60c2fe\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;}},{\&quot;id\&quot;:\&quot;call_f87d2a8134c5436bb1c97501\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;}},{\&quot;id\&quot;:\&quot;call_5d03bde4c9724a9f985332e8\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;}},{\&quot;id\&quot;:\&quot;call_8b22d15baa954a148675ae19\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;}}]},\&quot;logprobs\&quot;:null,\&quot;finish_reason\&quot;:\&quot;length\&quot;,\&quot;matched_stop\&quot;:null}],\&quot;usage\&quot;:{\&quot;prompt_tokens\&quot;:234,\&quot;total_tokens\&quot;:334,\&quot;completion_tokens\&quot;:100,\&quot;prompt_tokens_details\&quot;:null}}&quot;),
&quot;model_name&quot;: String(&quot;Qwen/Qwen2.5-1.5B-Instruct&quot;),
&quot;model_provider_name&quot;: String(&quot;sglang&quot;),
&quot;input_tokens&quot;: Number(234),
&quot;output_tokens&quot;: Number(100),
&quot;response_time_ms&quot;: Number(2853),
&quot;ttft_ms&quot;: Null,
&quot;system&quot;: String(&quot;You are a helpful and friendly assistant named Dr. Mehta&quot;),
&quot;input_messages&quot;: String(&quot;[{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:[{\&quot;type\&quot;:\&quot;text\&quot;,\&quot;text\&quot;:\&quot;What can you tell me about the weather in Tokyo (e.g. temperature, humidity, wind)? Use the provided tools and return what you can (not necessarily everything).\&quot;}]}]&quot;),
&quot;output&quot;: String(&quot;[{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;id\&quot;:\&quot;call_fccee54d97af4704be60c2fe\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;id\&quot;:\&quot;call_f87d2a8134c5436bb1c97501\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;id\&quot;:\&quot;call_5d03bde4c9724a9f985332e8\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;id\&quot;:\&quot;call_8b22d15baa954a148675ae19\&quot;}]&quot;),
&quot;cached&quot;: Bool(false),
&quot;finish_reason&quot;: String(&quot;length&quot;),
}
test providers::sglang::test_tool_use_allowed_tools_inference_request ... FAILED
failures:
failures:
providers::sglang::test_tool_use_allowed_tools_inference_request
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 2433 filtered out; finished in 3.13s
</system-out>
<system-err>
thread &apos;providers::sglang::test_tool_use_allowed_tools_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7682:5:
assertion `left == right` failed: Expected exactly one tool call
left: 4
right: 1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
</system-err>
</flakyFailure>
<flakyFailure timestamp="2025-10-17T13:11:46.389-04:00" time="3.269" message="thread &apos;providers::sglang::test_tool_use_allowed_tools_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7682:5" type="test failure with exit code 101">thread &apos;providers::sglang::test_tool_use_allowed_tools_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7682:5:
assertion `left == right` failed: Expected exactly one tool call
left: 4
right: 1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
<system-out>
running 1 test
API response: Object {
&quot;inference_id&quot;: String(&quot;0199f327-f5f1-75c2-a52a-06744a7085b1&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-f5df-7250-8c3d-a980cdc3f9af&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;location&quot;: String(&quot;Tokyo&quot;),
},
&quot;id&quot;: String(&quot;call_b732cd3143c24160888a423e&quot;),
&quot;name&quot;: String(&quot;get_humidity&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;location\&quot;: \&quot;Tokyo\&quot;}&quot;),
&quot;raw_name&quot;: String(&quot;get_humidity&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;location&quot;: String(&quot;Tokyo&quot;),
},
&quot;id&quot;: String(&quot;call_27b25e278ec64fa6855af341&quot;),
&quot;name&quot;: String(&quot;get_humidity&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;location\&quot;: \&quot;Tokyo\&quot;}&quot;),
&quot;raw_name&quot;: String(&quot;get_humidity&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;location&quot;: String(&quot;Tokyo&quot;),
},
&quot;id&quot;: String(&quot;call_b9fb497bb70347a5b5d1c75b&quot;),
&quot;name&quot;: String(&quot;get_humidity&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;location\&quot;: \&quot;Tokyo\&quot;}&quot;),
&quot;raw_name&quot;: String(&quot;get_humidity&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;location&quot;: String(&quot;Tokyo&quot;),
},
&quot;id&quot;: String(&quot;call_b94671d6619b45a2a160a5de&quot;),
&quot;name&quot;: String(&quot;get_humidity&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;location\&quot;: \&quot;Tokyo\&quot;}&quot;),
&quot;raw_name&quot;: String(&quot;get_humidity&quot;),
},
],
&quot;usage&quot;: Object {
&quot;input_tokens&quot;: Number(234),
&quot;output_tokens&quot;: Number(90),
},
&quot;finish_reason&quot;: String(&quot;tool_call&quot;),
}
Connecting to ClickHouse
Connected to ClickHouse in 13.568718ms
ClickHouse - ChatInference: Object {
&quot;id&quot;: String(&quot;0199f327-f5f1-75c2-a52a-06744a7085b1&quot;),
&quot;function_name&quot;: String(&quot;basic_test&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-f5df-7250-8c3d-a980cdc3f9af&quot;),
&quot;input&quot;: String(&quot;{\&quot;system\&quot;:{\&quot;assistant_name\&quot;:\&quot;Dr. Mehta\&quot;},\&quot;messages\&quot;:[{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:[{\&quot;type\&quot;:\&quot;text\&quot;,\&quot;value\&quot;:\&quot;What can you tell me about the weather in Tokyo (e.g. temperature, humidity, wind)? Use the provided tools and return what you can (not necessarily everything).\&quot;}]}]}&quot;),
&quot;output&quot;: String(&quot;[{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;location\&quot;:\&quot;Tokyo\&quot;},\&quot;id\&quot;:\&quot;call_b732cd3143c24160888a423e\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;raw_name\&quot;:\&quot;get_humidity\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;location\&quot;:\&quot;Tokyo\&quot;},\&quot;id\&quot;:\&quot;call_27b25e278ec64fa6855af341\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;raw_name\&quot;:\&quot;get_humidity\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;location\&quot;:\&quot;Tokyo\&quot;},\&quot;id\&quot;:\&quot;call_b9fb497bb70347a5b5d1c75b\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;raw_name\&quot;:\&quot;get_humidity\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;location\&quot;:\&quot;Tokyo\&quot;},\&quot;id\&quot;:\&quot;call_b94671d6619b45a2a160a5de\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;raw_name\&quot;:\&quot;get_humidity\&quot;}]&quot;),
&quot;tool_params&quot;: String(&quot;{\&quot;tools_available\&quot;:[{\&quot;description\&quot;:\&quot;Get the current humidity in a given location\&quot;,\&quot;parameters\&quot;:{\&quot;$schema\&quot;:\&quot;http://json-schema.org/draft-07/schema#\&quot;,\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;location\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The location to get the humidity for (e.g. \\\&quot;New York\\\&quot;)\&quot;}},\&quot;required\&quot;:[\&quot;location\&quot;],\&quot;additionalProperties\&quot;:false},\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;strict\&quot;:false}],\&quot;tool_choice\&quot;:\&quot;required\&quot;,\&quot;parallel_tool_calls\&quot;:null}&quot;),
&quot;inference_params&quot;: String(&quot;{\&quot;chat_completion\&quot;:{\&quot;max_tokens\&quot;:100}}&quot;),
&quot;processing_time_ms&quot;: Number(2992),
&quot;tags&quot;: Object {
&quot;tensorzero::variant_pinned&quot;: String(&quot;sglang&quot;),
},
&quot;extra_body&quot;: String(&quot;[]&quot;),
&quot;ttft_ms&quot;: Null,
}
Properties: {
&quot;location&quot;: Object {
&quot;type&quot;: String(&quot;string&quot;),
&quot;description&quot;: String(&quot;The location to get the humidity for (e.g. \&quot;New York\&quot;)&quot;),
},
}
ClickHouse - ModelInference: Object {
&quot;id&quot;: String(&quot;0199f328-01a2-7c42-a858-8cf93bbd6cf9&quot;),
&quot;inference_id&quot;: String(&quot;0199f327-f5f1-75c2-a52a-06744a7085b1&quot;),
&quot;raw_request&quot;: String(&quot;{\&quot;messages\&quot;:[{\&quot;role\&quot;:\&quot;system\&quot;,\&quot;content\&quot;:\&quot;You are a helpful and friendly assistant named Dr. Mehta\&quot;},{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:\&quot;What can you tell me about the weather in Tokyo (e.g. temperature, humidity, wind)? Use the provided tools and return what you can (not necessarily everything).\&quot;}],\&quot;model\&quot;:\&quot;Qwen/Qwen2.5-1.5B-Instruct\&quot;,\&quot;max_tokens\&quot;:100,\&quot;stream\&quot;:false,\&quot;tools\&quot;:[{\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;description\&quot;:\&quot;Get the current humidity in a given location\&quot;,\&quot;parameters\&quot;:{\&quot;$schema\&quot;:\&quot;http://json-schema.org/draft-07/schema#\&quot;,\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;location\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The location to get the humidity for (e.g. \\\&quot;New York\\\&quot;)\&quot;}},\&quot;required\&quot;:[\&quot;location\&quot;],\&quot;additionalProperties\&quot;:false}},\&quot;strict\&quot;:false}],\&quot;tool_choice\&quot;:\&quot;required\&quot;}&quot;),
&quot;raw_response&quot;: String(&quot;{\&quot;id\&quot;:\&quot;3e2a78ce29dd4d8ca6c2b0460b45791a\&quot;,\&quot;object\&quot;:\&quot;chat.completion\&quot;,\&quot;created\&quot;:1760721109,\&quot;model\&quot;:\&quot;Qwen/Qwen2.5-1.5B-Instruct\&quot;,\&quot;choices\&quot;:[{\&quot;index\&quot;:0,\&quot;message\&quot;:{\&quot;role\&quot;:\&quot;assistant\&quot;,\&quot;content\&quot;:null,\&quot;reasoning_content\&quot;:null,\&quot;tool_calls\&quot;:[{\&quot;id\&quot;:\&quot;call_b732cd3143c24160888a423e\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;}},{\&quot;id\&quot;:\&quot;call_27b25e278ec64fa6855af341\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;}},{\&quot;id\&quot;:\&quot;call_b9fb497bb70347a5b5d1c75b\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;}},{\&quot;id\&quot;:\&quot;call_b94671d6619b45a2a160a5de\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;}}]},\&quot;logprobs\&quot;:null,\&quot;finish_reason\&quot;:\&quot;tool_calls\&quot;,\&quot;matched_stop\&quot;:null}],\&quot;usage\&quot;:{\&quot;prompt_tokens\&quot;:234,\&quot;total_tokens\&quot;:324,\&quot;completion_tokens\&quot;:90,\&quot;prompt_tokens_details\&quot;:null}}&quot;),
&quot;model_name&quot;: String(&quot;Qwen/Qwen2.5-1.5B-Instruct&quot;),
&quot;model_provider_name&quot;: String(&quot;sglang&quot;),
&quot;input_tokens&quot;: Number(234),
&quot;output_tokens&quot;: Number(90),
&quot;response_time_ms&quot;: Number(2990),
&quot;ttft_ms&quot;: Null,
&quot;system&quot;: String(&quot;You are a helpful and friendly assistant named Dr. Mehta&quot;),
&quot;input_messages&quot;: String(&quot;[{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:[{\&quot;type\&quot;:\&quot;text\&quot;,\&quot;text\&quot;:\&quot;What can you tell me about the weather in Tokyo (e.g. temperature, humidity, wind)? Use the provided tools and return what you can (not necessarily everything).\&quot;}]}]&quot;),
&quot;output&quot;: String(&quot;[{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;id\&quot;:\&quot;call_b732cd3143c24160888a423e\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;id\&quot;:\&quot;call_27b25e278ec64fa6855af341\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;id\&quot;:\&quot;call_b9fb497bb70347a5b5d1c75b\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;id\&quot;:\&quot;call_b94671d6619b45a2a160a5de\&quot;}]&quot;),
&quot;cached&quot;: Bool(false),
&quot;finish_reason&quot;: String(&quot;tool_call&quot;),
}
test providers::sglang::test_tool_use_allowed_tools_inference_request ... FAILED
failures:
failures:
providers::sglang::test_tool_use_allowed_tools_inference_request
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 2433 filtered out; finished in 3.26s
</system-out>
<system-err>
thread &apos;providers::sglang::test_tool_use_allowed_tools_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7682:5:
assertion `left == right` failed: Expected exactly one tool call
left: 4
right: 1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
</system-err>
</flakyFailure>
<flakyFailure timestamp="2025-10-17T13:11:58.814-04:00" time="2.559" message="thread &apos;providers::sglang::test_tool_use_allowed_tools_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7682:5" type="test failure with exit code 101">thread &apos;providers::sglang::test_tool_use_allowed_tools_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7682:5:
assertion `left == right` failed: Expected exactly one tool call
left: 4
right: 1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
<system-out>
running 1 test
API response: Object {
&quot;inference_id&quot;: String(&quot;0199f328-2684-7c32-9724-0ead5d396aef&quot;),
&quot;episode_id&quot;: String(&quot;0199f328-2669-7ce0-9a86-dadd37f75d3c&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;location&quot;: String(&quot;Tokyo&quot;),
},
&quot;id&quot;: String(&quot;call_a360823982014b72a8070b0c&quot;),
&quot;name&quot;: String(&quot;get_humidity&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;location\&quot;: \&quot;Tokyo\&quot;}&quot;),
&quot;raw_name&quot;: String(&quot;get_humidity&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;location&quot;: String(&quot;Tokyo&quot;),
},
&quot;id&quot;: String(&quot;call_42973c86e171424c8f1702ac&quot;),
&quot;name&quot;: String(&quot;get_humidity&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;location\&quot;: \&quot;Tokyo\&quot;}&quot;),
&quot;raw_name&quot;: String(&quot;get_humidity&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;location&quot;: String(&quot;Tokyo&quot;),
},
&quot;id&quot;: String(&quot;call_0ced45e861f94a0f9d21e5fe&quot;),
&quot;name&quot;: String(&quot;get_humidity&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;location\&quot;: \&quot;Tokyo\&quot;}&quot;),
&quot;raw_name&quot;: String(&quot;get_humidity&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;location&quot;: String(&quot;Tokyo&quot;),
},
&quot;id&quot;: String(&quot;call_47dfab04d9f741cfb7fc351e&quot;),
&quot;name&quot;: String(&quot;get_humidity&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;location\&quot;: \&quot;Tokyo\&quot;}&quot;),
&quot;raw_name&quot;: String(&quot;get_humidity&quot;),
},
],
&quot;usage&quot;: Object {
&quot;input_tokens&quot;: Number(234),
&quot;output_tokens&quot;: Number(100),
},
&quot;finish_reason&quot;: String(&quot;length&quot;),
}
Connecting to ClickHouse
Connected to ClickHouse in 14.262927ms
ClickHouse - ChatInference: Object {
&quot;id&quot;: String(&quot;0199f328-2684-7c32-9724-0ead5d396aef&quot;),
&quot;function_name&quot;: String(&quot;basic_test&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;episode_id&quot;: String(&quot;0199f328-2669-7ce0-9a86-dadd37f75d3c&quot;),
&quot;input&quot;: String(&quot;{\&quot;system\&quot;:{\&quot;assistant_name\&quot;:\&quot;Dr. Mehta\&quot;},\&quot;messages\&quot;:[{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:[{\&quot;type\&quot;:\&quot;text\&quot;,\&quot;value\&quot;:\&quot;What can you tell me about the weather in Tokyo (e.g. temperature, humidity, wind)? Use the provided tools and return what you can (not necessarily everything).\&quot;}]}]}&quot;),
&quot;output&quot;: String(&quot;[{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;location\&quot;:\&quot;Tokyo\&quot;},\&quot;id\&quot;:\&quot;call_a360823982014b72a8070b0c\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;raw_name\&quot;:\&quot;get_humidity\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;location\&quot;:\&quot;Tokyo\&quot;},\&quot;id\&quot;:\&quot;call_42973c86e171424c8f1702ac\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;raw_name\&quot;:\&quot;get_humidity\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;location\&quot;:\&quot;Tokyo\&quot;},\&quot;id\&quot;:\&quot;call_0ced45e861f94a0f9d21e5fe\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;raw_name\&quot;:\&quot;get_humidity\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;location\&quot;:\&quot;Tokyo\&quot;},\&quot;id\&quot;:\&quot;call_47dfab04d9f741cfb7fc351e\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;raw_name\&quot;:\&quot;get_humidity\&quot;}]&quot;),
&quot;tool_params&quot;: String(&quot;{\&quot;tools_available\&quot;:[{\&quot;description\&quot;:\&quot;Get the current humidity in a given location\&quot;,\&quot;parameters\&quot;:{\&quot;$schema\&quot;:\&quot;http://json-schema.org/draft-07/schema#\&quot;,\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;location\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The location to get the humidity for (e.g. \\\&quot;New York\\\&quot;)\&quot;}},\&quot;required\&quot;:[\&quot;location\&quot;],\&quot;additionalProperties\&quot;:false},\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;strict\&quot;:false}],\&quot;tool_choice\&quot;:\&quot;required\&quot;,\&quot;parallel_tool_calls\&quot;:null}&quot;),
&quot;inference_params&quot;: String(&quot;{\&quot;chat_completion\&quot;:{\&quot;max_tokens\&quot;:100}}&quot;),
&quot;processing_time_ms&quot;: Number(2273),
&quot;tags&quot;: Object {
&quot;tensorzero::variant_pinned&quot;: String(&quot;sglang&quot;),
},
&quot;extra_body&quot;: String(&quot;[]&quot;),
&quot;ttft_ms&quot;: Null,
}
Properties: {
&quot;location&quot;: Object {
&quot;type&quot;: String(&quot;string&quot;),
&quot;description&quot;: String(&quot;The location to get the humidity for (e.g. \&quot;New York\&quot;)&quot;),
},
}
ClickHouse - ModelInference: Object {
&quot;id&quot;: String(&quot;0199f328-2f66-7893-bc38-e1c1666bd0d7&quot;),
&quot;inference_id&quot;: String(&quot;0199f328-2684-7c32-9724-0ead5d396aef&quot;),
&quot;raw_request&quot;: String(&quot;{\&quot;messages\&quot;:[{\&quot;role\&quot;:\&quot;system\&quot;,\&quot;content\&quot;:\&quot;You are a helpful and friendly assistant named Dr. Mehta\&quot;},{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:\&quot;What can you tell me about the weather in Tokyo (e.g. temperature, humidity, wind)? Use the provided tools and return what you can (not necessarily everything).\&quot;}],\&quot;model\&quot;:\&quot;Qwen/Qwen2.5-1.5B-Instruct\&quot;,\&quot;max_tokens\&quot;:100,\&quot;stream\&quot;:false,\&quot;tools\&quot;:[{\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;description\&quot;:\&quot;Get the current humidity in a given location\&quot;,\&quot;parameters\&quot;:{\&quot;$schema\&quot;:\&quot;http://json-schema.org/draft-07/schema#\&quot;,\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;location\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The location to get the humidity for (e.g. \\\&quot;New York\\\&quot;)\&quot;}},\&quot;required\&quot;:[\&quot;location\&quot;],\&quot;additionalProperties\&quot;:false}},\&quot;strict\&quot;:false}],\&quot;tool_choice\&quot;:\&quot;required\&quot;}&quot;),
&quot;raw_response&quot;: String(&quot;{\&quot;id\&quot;:\&quot;768da9cb356a4a5d905fb5666dcd1968\&quot;,\&quot;object\&quot;:\&quot;chat.completion\&quot;,\&quot;created\&quot;:1760721121,\&quot;model\&quot;:\&quot;Qwen/Qwen2.5-1.5B-Instruct\&quot;,\&quot;choices\&quot;:[{\&quot;index\&quot;:0,\&quot;message\&quot;:{\&quot;role\&quot;:\&quot;assistant\&quot;,\&quot;content\&quot;:null,\&quot;reasoning_content\&quot;:null,\&quot;tool_calls\&quot;:[{\&quot;id\&quot;:\&quot;call_a360823982014b72a8070b0c\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;}},{\&quot;id\&quot;:\&quot;call_42973c86e171424c8f1702ac\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;}},{\&quot;id\&quot;:\&quot;call_0ced45e861f94a0f9d21e5fe\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;}},{\&quot;id\&quot;:\&quot;call_47dfab04d9f741cfb7fc351e\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;}}]},\&quot;logprobs\&quot;:null,\&quot;finish_reason\&quot;:\&quot;length\&quot;,\&quot;matched_stop\&quot;:null}],\&quot;usage\&quot;:{\&quot;prompt_tokens\&quot;:234,\&quot;total_tokens\&quot;:334,\&quot;completion_tokens\&quot;:100,\&quot;prompt_tokens_details\&quot;:null}}&quot;),
&quot;model_name&quot;: String(&quot;Qwen/Qwen2.5-1.5B-Instruct&quot;),
&quot;model_provider_name&quot;: String(&quot;sglang&quot;),
&quot;input_tokens&quot;: Number(234),
&quot;output_tokens&quot;: Number(100),
&quot;response_time_ms&quot;: Number(2271),
&quot;ttft_ms&quot;: Null,
&quot;system&quot;: String(&quot;You are a helpful and friendly assistant named Dr. Mehta&quot;),
&quot;input_messages&quot;: String(&quot;[{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:[{\&quot;type\&quot;:\&quot;text\&quot;,\&quot;text\&quot;:\&quot;What can you tell me about the weather in Tokyo (e.g. temperature, humidity, wind)? Use the provided tools and return what you can (not necessarily everything).\&quot;}]}]&quot;),
&quot;output&quot;: String(&quot;[{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;id\&quot;:\&quot;call_a360823982014b72a8070b0c\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;id\&quot;:\&quot;call_42973c86e171424c8f1702ac\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;id\&quot;:\&quot;call_0ced45e861f94a0f9d21e5fe\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;get_humidity\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;location\\\&quot;: \\\&quot;Tokyo\\\&quot;}\&quot;,\&quot;id\&quot;:\&quot;call_47dfab04d9f741cfb7fc351e\&quot;}]&quot;),
&quot;cached&quot;: Bool(false),
&quot;finish_reason&quot;: String(&quot;length&quot;),
}
test providers::sglang::test_tool_use_allowed_tools_inference_request ... FAILED
failures:
failures:
providers::sglang::test_tool_use_allowed_tools_inference_request
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 2433 filtered out; finished in 2.55s
</system-out>
<system-err>
thread &apos;providers::sglang::test_tool_use_allowed_tools_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7682:5:
assertion `left == right` failed: Expected exactly one tool call
left: 4
right: 1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
</system-err>
</flakyFailure>
</testcase>
<testcase name="providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:11:10.090-04:00" time="4.583">
<failure message="thread &apos;providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7141:42" type="test failure with exit code 101">thread &apos;providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7141:42:
assertion `left == right` failed: Provider returned multiple tool calls
left: &quot;call_ce06ff6d7da847ce9fb72f71&quot;
right: &quot;call_32459b6a652746138439ad67&quot;
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace</failure>
<rerunFailure timestamp="2025-10-17T13:11:19.768-04:00" time="3.152" message="thread &apos;providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7141:42" type="test failure with exit code 101">thread &apos;providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7141:42:
assertion `left == right` failed: Provider returned multiple tool calls
left: &quot;call_fefc0e8f040741d6940bf6a6&quot;
right: &quot;call_7f6bd289f7ee425b84bfb090&quot;
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
<system-out>
running 1 test
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f327-8df3-7ed0-99e6-d7d118f667e3&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-8de0-7793-991e-fbd33627a44e&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;text&quot;),
&quot;id&quot;: String(&quot;0&quot;),
&quot;text&quot;: String(&quot;&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f327-8df3-7ed0-99e6-d7d118f667e3&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-8de0-7793-991e-fbd33627a44e&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_fefc0e8f040741d6940bf6a6&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f327-8df3-7ed0-99e6-d7d118f667e3&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-8de0-7793-991e-fbd33627a44e&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_fefc0e8f040741d6940bf6a6&quot;),
&quot;raw_name&quot;: String(&quot;&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f327-8df3-7ed0-99e6-d7d118f667e3&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-8de0-7793-991e-fbd33627a44e&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_7f6bd289f7ee425b84bfb090&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;&quot;),
},
],
}
test providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request ... FAILED
failures:
failures:
providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 2433 filtered out; finished in 3.14s
</system-out>
<system-err>
thread &apos;providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7141:42:
assertion `left == right` failed: Provider returned multiple tool calls
left: &quot;call_fefc0e8f040741d6940bf6a6&quot;
right: &quot;call_7f6bd289f7ee425b84bfb090&quot;
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
</system-err>
</rerunFailure>
<rerunFailure timestamp="2025-10-17T13:11:29.707-04:00" time="3.455" message="thread &apos;providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7141:42" type="test failure with exit code 101">thread &apos;providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7141:42:
assertion `left == right` failed: Provider returned multiple tool calls
left: &quot;call_967f014830824515bb90e286&quot;
right: &quot;call_c938145ebb6145c8a3982757&quot;
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
<system-out>
running 1 test
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f327-b4c4-7822-a8c9-30ba8b367204&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-b4b3-7462-9b34-1a9b96212725&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;text&quot;),
&quot;id&quot;: String(&quot;0&quot;),
&quot;text&quot;: String(&quot;&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f327-b4c4-7822-a8c9-30ba8b367204&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-b4b3-7462-9b34-1a9b96212725&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_967f014830824515bb90e286&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f327-b4c4-7822-a8c9-30ba8b367204&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-b4b3-7462-9b34-1a9b96212725&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_967f014830824515bb90e286&quot;),
&quot;raw_name&quot;: String(&quot;&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f327-b4c4-7822-a8c9-30ba8b367204&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-b4b3-7462-9b34-1a9b96212725&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_c938145ebb6145c8a3982757&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;&quot;),
},
],
}
test providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request ... FAILED
failures:
failures:
providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 2433 filtered out; finished in 3.44s
</system-out>
<system-err>
thread &apos;providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7141:42:
assertion `left == right` failed: Provider returned multiple tool calls
left: &quot;call_967f014830824515bb90e286&quot;
right: &quot;call_c938145ebb6145c8a3982757&quot;
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
</system-err>
</rerunFailure>
<rerunFailure timestamp="2025-10-17T13:11:39.679-04:00" time="2.756" message="thread &apos;providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7141:42" type="test failure with exit code 101">thread &apos;providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7141:42:
assertion `left == right` failed: Provider returned multiple tool calls
left: &quot;call_3c75c276ca3b467088f91f2a&quot;
right: &quot;call_b78835b05ac9482880fc556e&quot;
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
<system-out>
running 1 test
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f327-dbb8-7283-a8d2-d08cf3e7ea34&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-dba8-7ba3-82c1-bb4226bc4175&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;text&quot;),
&quot;id&quot;: String(&quot;0&quot;),
&quot;text&quot;: String(&quot;&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f327-dbb8-7283-a8d2-d08cf3e7ea34&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-dba8-7ba3-82c1-bb4226bc4175&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_3c75c276ca3b467088f91f2a&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f327-dbb8-7283-a8d2-d08cf3e7ea34&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-dba8-7ba3-82c1-bb4226bc4175&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_3c75c276ca3b467088f91f2a&quot;),
&quot;raw_name&quot;: String(&quot;&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f327-dbb8-7283-a8d2-d08cf3e7ea34&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-dba8-7ba3-82c1-bb4226bc4175&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_b78835b05ac9482880fc556e&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;&quot;),
},
],
}
test providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request ... FAILED
failures:
failures:
providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 2433 filtered out; finished in 2.74s
</system-out>
<system-err>
thread &apos;providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7141:42:
assertion `left == right` failed: Provider returned multiple tool calls
left: &quot;call_3c75c276ca3b467088f91f2a&quot;
right: &quot;call_b78835b05ac9482880fc556e&quot;
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
</system-err>
</rerunFailure>
<rerunFailure timestamp="2025-10-17T13:11:48.349-04:00" time="2.980" message="thread &apos;providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7141:42" type="test failure with exit code 101">thread &apos;providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7141:42:
assertion `left == right` failed: Provider returned multiple tool calls
left: &quot;call_63cca9315ea0415f9181167d&quot;
right: &quot;call_48d8b1e47b8447e4b581870f&quot;
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
<system-out>
running 1 test
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f327-fd98-7b50-9962-7b43fc7738bf&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-fd85-7c52-8fa8-53baf49a672b&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;text&quot;),
&quot;id&quot;: String(&quot;0&quot;),
&quot;text&quot;: String(&quot;&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f327-fd98-7b50-9962-7b43fc7738bf&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-fd85-7c52-8fa8-53baf49a672b&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_63cca9315ea0415f9181167d&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f327-fd98-7b50-9962-7b43fc7738bf&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-fd85-7c52-8fa8-53baf49a672b&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_63cca9315ea0415f9181167d&quot;),
&quot;raw_name&quot;: String(&quot;&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f327-fd98-7b50-9962-7b43fc7738bf&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-fd85-7c52-8fa8-53baf49a672b&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_48d8b1e47b8447e4b581870f&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;&quot;),
},
],
}
test providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request ... FAILED
failures:
failures:
providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 2433 filtered out; finished in 2.97s
</system-out>
<system-err>
thread &apos;providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7141:42:
assertion `left == right` failed: Provider returned multiple tool calls
left: &quot;call_63cca9315ea0415f9181167d&quot;
right: &quot;call_48d8b1e47b8447e4b581870f&quot;
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
</system-err>
</rerunFailure>
<rerunFailure timestamp="2025-10-17T13:11:57.106-04:00" time="2.475" message="thread &apos;providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7141:42" type="test failure with exit code 101">thread &apos;providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7141:42:
assertion `left == right` failed: Provider returned multiple tool calls
left: &quot;call_608f74e5136c4407a4f410a1&quot;
right: &quot;call_0618acce998642b8baf7abf3&quot;
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
<system-out>
running 1 test
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f328-1fcf-7593-8217-1440f8e9000d&quot;),
&quot;episode_id&quot;: String(&quot;0199f328-1fbc-7ac1-8e35-d13b313a273f&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;text&quot;),
&quot;id&quot;: String(&quot;0&quot;),
&quot;text&quot;: String(&quot;&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f328-1fcf-7593-8217-1440f8e9000d&quot;),
&quot;episode_id&quot;: String(&quot;0199f328-1fbc-7ac1-8e35-d13b313a273f&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_608f74e5136c4407a4f410a1&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f328-1fcf-7593-8217-1440f8e9000d&quot;),
&quot;episode_id&quot;: String(&quot;0199f328-1fbc-7ac1-8e35-d13b313a273f&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_608f74e5136c4407a4f410a1&quot;),
&quot;raw_name&quot;: String(&quot;&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f328-1fcf-7593-8217-1440f8e9000d&quot;),
&quot;episode_id&quot;: String(&quot;0199f328-1fbc-7ac1-8e35-d13b313a273f&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_0618acce998642b8baf7abf3&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;&quot;),
},
],
}
test providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request ... FAILED
failures:
failures:
providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 2433 filtered out; finished in 2.46s
</system-out>
<system-err>
thread &apos;providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7141:42:
assertion `left == right` failed: Provider returned multiple tool calls
left: &quot;call_608f74e5136c4407a4f410a1&quot;
right: &quot;call_0618acce998642b8baf7abf3&quot;
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
</system-err>
</rerunFailure>
<rerunFailure timestamp="2025-10-17T13:12:06.303-04:00" time="2.389" message="thread &apos;providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7141:42" type="test failure with exit code 101">thread &apos;providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7141:42:
assertion `left == right` failed: Provider returned multiple tool calls
left: &quot;call_0812abecb86e48ee83e4667f&quot;
right: &quot;call_989b60110ff546fda49cfd08&quot;
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
<system-out>
running 1 test
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f328-43c0-7bd3-afa5-4713df353a59&quot;),
&quot;episode_id&quot;: String(&quot;0199f328-43a9-7a72-93e6-520fa9a58ede&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;text&quot;),
&quot;id&quot;: String(&quot;0&quot;),
&quot;text&quot;: String(&quot;&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f328-43c0-7bd3-afa5-4713df353a59&quot;),
&quot;episode_id&quot;: String(&quot;0199f328-43a9-7a72-93e6-520fa9a58ede&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_0812abecb86e48ee83e4667f&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f328-43c0-7bd3-afa5-4713df353a59&quot;),
&quot;episode_id&quot;: String(&quot;0199f328-43a9-7a72-93e6-520fa9a58ede&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_0812abecb86e48ee83e4667f&quot;),
&quot;raw_name&quot;: String(&quot;&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f328-43c0-7bd3-afa5-4713df353a59&quot;),
&quot;episode_id&quot;: String(&quot;0199f328-43a9-7a72-93e6-520fa9a58ede&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_989b60110ff546fda49cfd08&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;&quot;),
},
],
}
test providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request ... FAILED
failures:
failures:
providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 2433 filtered out; finished in 2.38s
</system-out>
<system-err>
thread &apos;providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7141:42:
assertion `left == right` failed: Provider returned multiple tool calls
left: &quot;call_0812abecb86e48ee83e4667f&quot;
right: &quot;call_989b60110ff546fda49cfd08&quot;
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
</system-err>
</rerunFailure>
<rerunFailure timestamp="2025-10-17T13:12:17.127-04:00" time="2.287" message="thread &apos;providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7141:42" type="test failure with exit code 101">thread &apos;providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7141:42:
assertion `left == right` failed: Provider returned multiple tool calls
left: &quot;call_e42c9b7e5b1c46bbab027e49&quot;
right: &quot;call_c035652e76cd489896d6a280&quot;
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
<system-out>
running 1 test
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f328-6e03-7933-bc76-65d0679ec0b5&quot;),
&quot;episode_id&quot;: String(&quot;0199f328-6df0-76f1-84d0-f252b25bb6ab&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;text&quot;),
&quot;id&quot;: String(&quot;0&quot;),
&quot;text&quot;: String(&quot;&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f328-6e03-7933-bc76-65d0679ec0b5&quot;),
&quot;episode_id&quot;: String(&quot;0199f328-6df0-76f1-84d0-f252b25bb6ab&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_e42c9b7e5b1c46bbab027e49&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f328-6e03-7933-bc76-65d0679ec0b5&quot;),
&quot;episode_id&quot;: String(&quot;0199f328-6df0-76f1-84d0-f252b25bb6ab&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_e42c9b7e5b1c46bbab027e49&quot;),
&quot;raw_name&quot;: String(&quot;&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f328-6e03-7933-bc76-65d0679ec0b5&quot;),
&quot;episode_id&quot;: String(&quot;0199f328-6df0-76f1-84d0-f252b25bb6ab&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_c035652e76cd489896d6a280&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;&quot;),
},
],
}
test providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request ... FAILED
failures:
failures:
providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 2433 filtered out; finished in 2.28s
</system-out>
<system-err>
thread &apos;providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7141:42:
assertion `left == right` failed: Provider returned multiple tool calls
left: &quot;call_e42c9b7e5b1c46bbab027e49&quot;
right: &quot;call_c035652e76cd489896d6a280&quot;
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
</system-err>
</rerunFailure>
<rerunFailure timestamp="2025-10-17T13:12:26.591-04:00" time="3.397" message="thread &apos;providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7141:42" type="test failure with exit code 101">thread &apos;providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7141:42:
assertion `left == right` failed: Provider returned multiple tool calls
left: &quot;call_b9ad7a42a130473187a60d49&quot;
right: &quot;call_283a45431fa645f88a2dc506&quot;
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
<system-out>
running 1 test
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f328-92f9-74a1-8c60-ffb0854561dc&quot;),
&quot;episode_id&quot;: String(&quot;0199f328-92e9-7412-964d-2e2b7c42edc0&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;text&quot;),
&quot;id&quot;: String(&quot;0&quot;),
&quot;text&quot;: String(&quot;&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f328-92f9-74a1-8c60-ffb0854561dc&quot;),
&quot;episode_id&quot;: String(&quot;0199f328-92e9-7412-964d-2e2b7c42edc0&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_b9ad7a42a130473187a60d49&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f328-92f9-74a1-8c60-ffb0854561dc&quot;),
&quot;episode_id&quot;: String(&quot;0199f328-92e9-7412-964d-2e2b7c42edc0&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_b9ad7a42a130473187a60d49&quot;),
&quot;raw_name&quot;: String(&quot;&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f328-92f9-74a1-8c60-ffb0854561dc&quot;),
&quot;episode_id&quot;: String(&quot;0199f328-92e9-7412-964d-2e2b7c42edc0&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_283a45431fa645f88a2dc506&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;&quot;),
},
],
}
test providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request ... FAILED
failures:
failures:
providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 2433 filtered out; finished in 3.39s
</system-out>
<system-err>
thread &apos;providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7141:42:
assertion `left == right` failed: Provider returned multiple tool calls
left: &quot;call_b9ad7a42a130473187a60d49&quot;
right: &quot;call_283a45431fa645f88a2dc506&quot;
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
</system-err>
</rerunFailure>
<system-out>
running 1 test
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f327-6837-7451-8ebd-71b05285b69b&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-6816-71f3-a6bc-3c52e08f2412&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;text&quot;),
&quot;id&quot;: String(&quot;0&quot;),
&quot;text&quot;: String(&quot;&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f327-6837-7451-8ebd-71b05285b69b&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-6816-71f3-a6bc-3c52e08f2412&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_ce06ff6d7da847ce9fb72f71&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f327-6837-7451-8ebd-71b05285b69b&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-6816-71f3-a6bc-3c52e08f2412&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_ce06ff6d7da847ce9fb72f71&quot;),
&quot;raw_name&quot;: String(&quot;&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
},
],
}
API response chunk: Object {
&quot;inference_id&quot;: String(&quot;0199f327-6837-7451-8ebd-71b05285b69b&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-6816-71f3-a6bc-3c52e08f2412&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;id&quot;: String(&quot;call_32459b6a652746138439ad67&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;&quot;),
},
],
}
test providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request ... FAILED
failures:
failures:
providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 2433 filtered out; finished in 4.57s
</system-out>
<system-err>
thread &apos;providers::sglang::test_tool_use_tool_choice_specific_streaming_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7141:42:
assertion `left == right` failed: Provider returned multiple tool calls
left: &quot;call_ce06ff6d7da847ce9fb72f71&quot;
right: &quot;call_32459b6a652746138439ad67&quot;
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
</system-err>
</testcase>
<testcase name="providers::sglang::test_tool_use_tool_choice_specific_inference_request" classname="tensorzero-core::e2e" timestamp="2025-10-17T13:11:10.084-04:00" time="4.766">
<failure message="thread &apos;providers::sglang::test_tool_use_tool_choice_specific_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7008:5" type="test failure with exit code 101">thread &apos;providers::sglang::test_tool_use_tool_choice_specific_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7008:5:
Expected at most one tool call, found 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace</failure>
<rerunFailure timestamp="2025-10-17T13:11:20.483-04:00" time="3.297" message="thread &apos;providers::sglang::test_tool_use_tool_choice_specific_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7008:5" type="test failure with exit code 101">thread &apos;providers::sglang::test_tool_use_tool_choice_specific_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7008:5:
Expected at most one tool call, found 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
<system-out>
running 1 test
API response: Object {
&quot;inference_id&quot;: String(&quot;0199f327-90c3-7c92-9814-94de469c4b0e&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-90ac-7d61-b55e-ae1e0872c564&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(false),
},
&quot;id&quot;: String(&quot;call_732c2472951f446089b29050&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: false}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_2fea2637e99643b6be1a7e55&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_78513ee7a5d348caa0b66249&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_894be6c64094490fbf464998&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_7947e8656ffe440c9860758f&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
],
&quot;usage&quot;: Object {
&quot;input_tokens&quot;: Number(258),
&quot;output_tokens&quot;: Number(100),
},
&quot;finish_reason&quot;: String(&quot;length&quot;),
}
Connecting to ClickHouse
Connected to ClickHouse in 22.695617ms
ClickHouse - ChatInference: Object {
&quot;id&quot;: String(&quot;0199f327-90c3-7c92-9814-94de469c4b0e&quot;),
&quot;function_name&quot;: String(&quot;weather_helper&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-90ac-7d61-b55e-ae1e0872c564&quot;),
&quot;input&quot;: String(&quot;{\&quot;system\&quot;:{\&quot;assistant_name\&quot;:\&quot;Dr. Mehta\&quot;},\&quot;messages\&quot;:[{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:[{\&quot;type\&quot;:\&quot;text\&quot;,\&quot;value\&quot;:\&quot;What is the temperature like in Tokyo (in Celsius)? Use the `get_temperature` tool.\&quot;}]}]}&quot;),
&quot;output&quot;: String(&quot;[{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:false},\&quot;id\&quot;:\&quot;call_732c2472951f446089b29050\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: false}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_2fea2637e99643b6be1a7e55\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_78513ee7a5d348caa0b66249\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_894be6c64094490fbf464998\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_7947e8656ffe440c9860758f\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;}]&quot;),
&quot;tool_params&quot;: String(&quot;{\&quot;tools_available\&quot;:[{\&quot;description\&quot;:\&quot;Get the current temperature in a given location\&quot;,\&quot;parameters\&quot;:{\&quot;$schema\&quot;:\&quot;http://json-schema.org/draft-07/schema#\&quot;,\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;location\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The location to get the temperature for (e.g. \\\&quot;New York\\\&quot;)\&quot;},\&quot;units\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The units to get the temperature in (must be \\\&quot;fahrenheit\\\&quot; or \\\&quot;celsius\\\&quot;)\&quot;,\&quot;enum\&quot;:[\&quot;fahrenheit\&quot;,\&quot;celsius\&quot;]}},\&quot;required\&quot;:[\&quot;location\&quot;],\&quot;additionalProperties\&quot;:false},\&quot;name\&quot;:\&quot;get_temperature\&quot;,\&quot;strict\&quot;:false},{\&quot;description\&quot;:\&quot;Do not call this function under any circumstances.\&quot;,\&quot;parameters\&quot;:{\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;fast\&quot;:{\&quot;type\&quot;:\&quot;boolean\&quot;,\&quot;description\&quot;:\&quot;Whether to use a fast method to self-destruct.\&quot;}},\&quot;required\&quot;:[\&quot;fast\&quot;],\&quot;additionalProperties\&quot;:false},\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;strict\&quot;:false}],\&quot;tool_choice\&quot;:{\&quot;specific\&quot;:\&quot;self_destruct\&quot;},\&quot;parallel_tool_calls\&quot;:null}&quot;),
&quot;inference_params&quot;: String(&quot;{\&quot;chat_completion\&quot;:{\&quot;max_tokens\&quot;:100}}&quot;),
&quot;processing_time_ms&quot;: Number(2987),
&quot;tags&quot;: Object {
&quot;tensorzero::variant_pinned&quot;: String(&quot;sglang&quot;),
},
&quot;extra_body&quot;: String(&quot;[]&quot;),
&quot;ttft_ms&quot;: Null,
}
Properties: {
&quot;fast&quot;: Object {
&quot;type&quot;: String(&quot;boolean&quot;),
&quot;description&quot;: String(&quot;Whether to use a fast method to self-destruct.&quot;),
},
}
ClickHouse - ModelInference: Object {
&quot;id&quot;: String(&quot;0199f327-9c6f-7921-a7c3-80da48a86828&quot;),
&quot;inference_id&quot;: String(&quot;0199f327-90c3-7c92-9814-94de469c4b0e&quot;),
&quot;raw_request&quot;: String(&quot;{\&quot;messages\&quot;:[{\&quot;role\&quot;:\&quot;system\&quot;,\&quot;content\&quot;:\&quot;You are a helpful and friendly assistant named Dr. Mehta.\\n\\nPeople will ask you questions about the weather.\\n\\nIf asked about the weather, just respond with the tool call. Use the \\\&quot;get_temperature\\\&quot; tool.\\n\\nIf provided with a tool result, use it to respond to the user (e.g. \\\&quot;The weather in New York is 55 degrees Fahrenheit.\\\&quot;).\&quot;},{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:\&quot;What is the temperature like in Tokyo (in Celsius)? Use the `get_temperature` tool.\&quot;}],\&quot;model\&quot;:\&quot;Qwen/Qwen2.5-1.5B-Instruct\&quot;,\&quot;max_tokens\&quot;:100,\&quot;stream\&quot;:false,\&quot;tools\&quot;:[{\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_temperature\&quot;,\&quot;description\&quot;:\&quot;Get the current temperature in a given location\&quot;,\&quot;parameters\&quot;:{\&quot;$schema\&quot;:\&quot;http://json-schema.org/draft-07/schema#\&quot;,\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;location\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The location to get the temperature for (e.g. \\\&quot;New York\\\&quot;)\&quot;},\&quot;units\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The units to get the temperature in (must be \\\&quot;fahrenheit\\\&quot; or \\\&quot;celsius\\\&quot;)\&quot;,\&quot;enum\&quot;:[\&quot;fahrenheit\&quot;,\&quot;celsius\&quot;]}},\&quot;required\&quot;:[\&quot;location\&quot;],\&quot;additionalProperties\&quot;:false}},\&quot;strict\&quot;:false},{\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;description\&quot;:\&quot;Do not call this function under any circumstances.\&quot;,\&quot;parameters\&quot;:{\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;fast\&quot;:{\&quot;type\&quot;:\&quot;boolean\&quot;,\&quot;description\&quot;:\&quot;Whether to use a fast method to self-destruct.\&quot;}},\&quot;required\&quot;:[\&quot;fast\&quot;],\&quot;additionalProperties\&quot;:false}},\&quot;strict\&quot;:false}],\&quot;tool_choice\&quot;:{\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;}}}&quot;),
&quot;raw_response&quot;: String(&quot;{\&quot;id\&quot;:\&quot;a8222c318bde483c98b8c54bfc829609\&quot;,\&quot;object\&quot;:\&quot;chat.completion\&quot;,\&quot;created\&quot;:1760721083,\&quot;model\&quot;:\&quot;Qwen/Qwen2.5-1.5B-Instruct\&quot;,\&quot;choices\&quot;:[{\&quot;index\&quot;:0,\&quot;message\&quot;:{\&quot;role\&quot;:\&quot;assistant\&quot;,\&quot;content\&quot;:null,\&quot;reasoning_content\&quot;:null,\&quot;tool_calls\&quot;:[{\&quot;id\&quot;:\&quot;call_732c2472951f446089b29050\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: false}\&quot;}},{\&quot;id\&quot;:\&quot;call_2fea2637e99643b6be1a7e55\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}},{\&quot;id\&quot;:\&quot;call_78513ee7a5d348caa0b66249\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}},{\&quot;id\&quot;:\&quot;call_894be6c64094490fbf464998\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}},{\&quot;id\&quot;:\&quot;call_7947e8656ffe440c9860758f\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}}]},\&quot;logprobs\&quot;:null,\&quot;finish_reason\&quot;:\&quot;length\&quot;,\&quot;matched_stop\&quot;:null}],\&quot;usage\&quot;:{\&quot;prompt_tokens\&quot;:258,\&quot;total_tokens\&quot;:358,\&quot;completion_tokens\&quot;:100,\&quot;prompt_tokens_details\&quot;:null}}&quot;),
&quot;model_name&quot;: String(&quot;Qwen/Qwen2.5-1.5B-Instruct&quot;),
&quot;model_provider_name&quot;: String(&quot;sglang&quot;),
&quot;input_tokens&quot;: Number(258),
&quot;output_tokens&quot;: Number(100),
&quot;response_time_ms&quot;: Number(2985),
&quot;ttft_ms&quot;: Null,
&quot;system&quot;: String(&quot;You are a helpful and friendly assistant named Dr. Mehta.\n\nPeople will ask you questions about the weather.\n\nIf asked about the weather, just respond with the tool call. Use the \&quot;get_temperature\&quot; tool.\n\nIf provided with a tool result, use it to respond to the user (e.g. \&quot;The weather in New York is 55 degrees Fahrenheit.\&quot;).&quot;),
&quot;input_messages&quot;: String(&quot;[{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:[{\&quot;type\&quot;:\&quot;text\&quot;,\&quot;text\&quot;:\&quot;What is the temperature like in Tokyo (in Celsius)? Use the `get_temperature` tool.\&quot;}]}]&quot;),
&quot;output&quot;: String(&quot;[{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: false}\&quot;,\&quot;id\&quot;:\&quot;call_732c2472951f446089b29050\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_2fea2637e99643b6be1a7e55\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_78513ee7a5d348caa0b66249\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_894be6c64094490fbf464998\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_7947e8656ffe440c9860758f\&quot;}]&quot;),
&quot;cached&quot;: Bool(false),
&quot;finish_reason&quot;: String(&quot;length&quot;),
}
test providers::sglang::test_tool_use_tool_choice_specific_inference_request ... FAILED
failures:
failures:
providers::sglang::test_tool_use_tool_choice_specific_inference_request
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 2433 filtered out; finished in 3.29s
</system-out>
<system-err>
thread &apos;providers::sglang::test_tool_use_tool_choice_specific_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7008:5:
Expected at most one tool call, found 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
</system-err>
</rerunFailure>
<rerunFailure timestamp="2025-10-17T13:11:30.318-04:00" time="3.453" message="thread &apos;providers::sglang::test_tool_use_tool_choice_specific_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7008:5" type="test failure with exit code 101">thread &apos;providers::sglang::test_tool_use_tool_choice_specific_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7008:5:
Expected at most one tool call, found 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
<system-out>
running 1 test
API response: Object {
&quot;inference_id&quot;: String(&quot;0199f327-b729-7b71-b388-c527dbde2e71&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-b716-7241-b9c6-44057f6ec685&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_86f9431579ca4371ab64c039&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_a357fb3a5949427ea1999fc8&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_9e8a4f85267d484eb36bb839&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_6de626403bab451cacbaf03f&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_0f51163b174e414580df0081&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
],
&quot;usage&quot;: Object {
&quot;input_tokens&quot;: Number(258),
&quot;output_tokens&quot;: Number(100),
},
&quot;finish_reason&quot;: String(&quot;length&quot;),
}
Connecting to ClickHouse
Connected to ClickHouse in 15.466561ms
ClickHouse - ChatInference: Object {
&quot;id&quot;: String(&quot;0199f327-b729-7b71-b388-c527dbde2e71&quot;),
&quot;function_name&quot;: String(&quot;weather_helper&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-b716-7241-b9c6-44057f6ec685&quot;),
&quot;input&quot;: String(&quot;{\&quot;system\&quot;:{\&quot;assistant_name\&quot;:\&quot;Dr. Mehta\&quot;},\&quot;messages\&quot;:[{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:[{\&quot;type\&quot;:\&quot;text\&quot;,\&quot;value\&quot;:\&quot;What is the temperature like in Tokyo (in Celsius)? Use the `get_temperature` tool.\&quot;}]}]}&quot;),
&quot;output&quot;: String(&quot;[{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_86f9431579ca4371ab64c039\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_a357fb3a5949427ea1999fc8\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_9e8a4f85267d484eb36bb839\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_6de626403bab451cacbaf03f\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_0f51163b174e414580df0081\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;}]&quot;),
&quot;tool_params&quot;: String(&quot;{\&quot;tools_available\&quot;:[{\&quot;description\&quot;:\&quot;Get the current temperature in a given location\&quot;,\&quot;parameters\&quot;:{\&quot;$schema\&quot;:\&quot;http://json-schema.org/draft-07/schema#\&quot;,\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;location\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The location to get the temperature for (e.g. \\\&quot;New York\\\&quot;)\&quot;},\&quot;units\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The units to get the temperature in (must be \\\&quot;fahrenheit\\\&quot; or \\\&quot;celsius\\\&quot;)\&quot;,\&quot;enum\&quot;:[\&quot;fahrenheit\&quot;,\&quot;celsius\&quot;]}},\&quot;required\&quot;:[\&quot;location\&quot;],\&quot;additionalProperties\&quot;:false},\&quot;name\&quot;:\&quot;get_temperature\&quot;,\&quot;strict\&quot;:false},{\&quot;description\&quot;:\&quot;Do not call this function under any circumstances.\&quot;,\&quot;parameters\&quot;:{\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;fast\&quot;:{\&quot;type\&quot;:\&quot;boolean\&quot;,\&quot;description\&quot;:\&quot;Whether to use a fast method to self-destruct.\&quot;}},\&quot;required\&quot;:[\&quot;fast\&quot;],\&quot;additionalProperties\&quot;:false},\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;strict\&quot;:false}],\&quot;tool_choice\&quot;:{\&quot;specific\&quot;:\&quot;self_destruct\&quot;},\&quot;parallel_tool_calls\&quot;:null}&quot;),
&quot;inference_params&quot;: String(&quot;{\&quot;chat_completion\&quot;:{\&quot;max_tokens\&quot;:100}}&quot;),
&quot;processing_time_ms&quot;: Number(3173),
&quot;tags&quot;: Object {
&quot;tensorzero::variant_pinned&quot;: String(&quot;sglang&quot;),
},
&quot;extra_body&quot;: String(&quot;[]&quot;),
&quot;ttft_ms&quot;: Null,
}
Properties: {
&quot;fast&quot;: Object {
&quot;type&quot;: String(&quot;boolean&quot;),
&quot;description&quot;: String(&quot;Whether to use a fast method to self-destruct.&quot;),
},
}
ClickHouse - ModelInference: Object {
&quot;id&quot;: String(&quot;0199f327-c38f-78e2-9ad9-741cbd733ad4&quot;),
&quot;inference_id&quot;: String(&quot;0199f327-b729-7b71-b388-c527dbde2e71&quot;),
&quot;raw_request&quot;: String(&quot;{\&quot;messages\&quot;:[{\&quot;role\&quot;:\&quot;system\&quot;,\&quot;content\&quot;:\&quot;You are a helpful and friendly assistant named Dr. Mehta.\\n\\nPeople will ask you questions about the weather.\\n\\nIf asked about the weather, just respond with the tool call. Use the \\\&quot;get_temperature\\\&quot; tool.\\n\\nIf provided with a tool result, use it to respond to the user (e.g. \\\&quot;The weather in New York is 55 degrees Fahrenheit.\\\&quot;).\&quot;},{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:\&quot;What is the temperature like in Tokyo (in Celsius)? Use the `get_temperature` tool.\&quot;}],\&quot;model\&quot;:\&quot;Qwen/Qwen2.5-1.5B-Instruct\&quot;,\&quot;max_tokens\&quot;:100,\&quot;stream\&quot;:false,\&quot;tools\&quot;:[{\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_temperature\&quot;,\&quot;description\&quot;:\&quot;Get the current temperature in a given location\&quot;,\&quot;parameters\&quot;:{\&quot;$schema\&quot;:\&quot;http://json-schema.org/draft-07/schema#\&quot;,\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;location\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The location to get the temperature for (e.g. \\\&quot;New York\\\&quot;)\&quot;},\&quot;units\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The units to get the temperature in (must be \\\&quot;fahrenheit\\\&quot; or \\\&quot;celsius\\\&quot;)\&quot;,\&quot;enum\&quot;:[\&quot;fahrenheit\&quot;,\&quot;celsius\&quot;]}},\&quot;required\&quot;:[\&quot;location\&quot;],\&quot;additionalProperties\&quot;:false}},\&quot;strict\&quot;:false},{\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;description\&quot;:\&quot;Do not call this function under any circumstances.\&quot;,\&quot;parameters\&quot;:{\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;fast\&quot;:{\&quot;type\&quot;:\&quot;boolean\&quot;,\&quot;description\&quot;:\&quot;Whether to use a fast method to self-destruct.\&quot;}},\&quot;required\&quot;:[\&quot;fast\&quot;],\&quot;additionalProperties\&quot;:false}},\&quot;strict\&quot;:false}],\&quot;tool_choice\&quot;:{\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;}}}&quot;),
&quot;raw_response&quot;: String(&quot;{\&quot;id\&quot;:\&quot;77567d5b68ff45d0834567ec802f00f4\&quot;,\&quot;object\&quot;:\&quot;chat.completion\&quot;,\&quot;created\&quot;:1760721093,\&quot;model\&quot;:\&quot;Qwen/Qwen2.5-1.5B-Instruct\&quot;,\&quot;choices\&quot;:[{\&quot;index\&quot;:0,\&quot;message\&quot;:{\&quot;role\&quot;:\&quot;assistant\&quot;,\&quot;content\&quot;:null,\&quot;reasoning_content\&quot;:null,\&quot;tool_calls\&quot;:[{\&quot;id\&quot;:\&quot;call_86f9431579ca4371ab64c039\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}},{\&quot;id\&quot;:\&quot;call_a357fb3a5949427ea1999fc8\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}},{\&quot;id\&quot;:\&quot;call_9e8a4f85267d484eb36bb839\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}},{\&quot;id\&quot;:\&quot;call_6de626403bab451cacbaf03f\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}},{\&quot;id\&quot;:\&quot;call_0f51163b174e414580df0081\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}}]},\&quot;logprobs\&quot;:null,\&quot;finish_reason\&quot;:\&quot;length\&quot;,\&quot;matched_stop\&quot;:null}],\&quot;usage\&quot;:{\&quot;prompt_tokens\&quot;:258,\&quot;total_tokens\&quot;:358,\&quot;completion_tokens\&quot;:100,\&quot;prompt_tokens_details\&quot;:null}}&quot;),
&quot;model_name&quot;: String(&quot;Qwen/Qwen2.5-1.5B-Instruct&quot;),
&quot;model_provider_name&quot;: String(&quot;sglang&quot;),
&quot;input_tokens&quot;: Number(258),
&quot;output_tokens&quot;: Number(100),
&quot;response_time_ms&quot;: Number(3171),
&quot;ttft_ms&quot;: Null,
&quot;system&quot;: String(&quot;You are a helpful and friendly assistant named Dr. Mehta.\n\nPeople will ask you questions about the weather.\n\nIf asked about the weather, just respond with the tool call. Use the \&quot;get_temperature\&quot; tool.\n\nIf provided with a tool result, use it to respond to the user (e.g. \&quot;The weather in New York is 55 degrees Fahrenheit.\&quot;).&quot;),
&quot;input_messages&quot;: String(&quot;[{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:[{\&quot;type\&quot;:\&quot;text\&quot;,\&quot;text\&quot;:\&quot;What is the temperature like in Tokyo (in Celsius)? Use the `get_temperature` tool.\&quot;}]}]&quot;),
&quot;output&quot;: String(&quot;[{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_86f9431579ca4371ab64c039\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_a357fb3a5949427ea1999fc8\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_9e8a4f85267d484eb36bb839\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_6de626403bab451cacbaf03f\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_0f51163b174e414580df0081\&quot;}]&quot;),
&quot;cached&quot;: Bool(false),
&quot;finish_reason&quot;: String(&quot;length&quot;),
}
test providers::sglang::test_tool_use_tool_choice_specific_inference_request ... FAILED
failures:
failures:
providers::sglang::test_tool_use_tool_choice_specific_inference_request
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 2433 filtered out; finished in 3.44s
</system-out>
<system-err>
thread &apos;providers::sglang::test_tool_use_tool_choice_specific_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7008:5:
Expected at most one tool call, found 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
</system-err>
</rerunFailure>
<rerunFailure timestamp="2025-10-17T13:11:38.866-04:00" time="3.092" message="thread &apos;providers::sglang::test_tool_use_tool_choice_specific_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7008:5" type="test failure with exit code 101">thread &apos;providers::sglang::test_tool_use_tool_choice_specific_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7008:5:
Expected at most one tool call, found 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
<system-out>
running 1 test
API response: Object {
&quot;inference_id&quot;: String(&quot;0199f327-d88d-70a1-bfce-2218df61cbd4&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-d87b-7391-9ef0-064d25f3a1a1&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_09ebd3c3bdde41b0b4405a19&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_7b0d6ebd97de4a9ab9702a53&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_f57b8d0981ce4b13acaeab75&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_72b2be6778674667b62c7a3a&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_ffc9e649ea31456ea7d8ad25&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
],
&quot;usage&quot;: Object {
&quot;input_tokens&quot;: Number(258),
&quot;output_tokens&quot;: Number(100),
},
&quot;finish_reason&quot;: String(&quot;length&quot;),
}
Connecting to ClickHouse
Connected to ClickHouse in 16.300203ms
ClickHouse - ChatInference: Object {
&quot;id&quot;: String(&quot;0199f327-d88d-70a1-bfce-2218df61cbd4&quot;),
&quot;function_name&quot;: String(&quot;weather_helper&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-d87b-7391-9ef0-064d25f3a1a1&quot;),
&quot;input&quot;: String(&quot;{\&quot;system\&quot;:{\&quot;assistant_name\&quot;:\&quot;Dr. Mehta\&quot;},\&quot;messages\&quot;:[{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:[{\&quot;type\&quot;:\&quot;text\&quot;,\&quot;value\&quot;:\&quot;What is the temperature like in Tokyo (in Celsius)? Use the `get_temperature` tool.\&quot;}]}]}&quot;),
&quot;output&quot;: String(&quot;[{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_09ebd3c3bdde41b0b4405a19\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_7b0d6ebd97de4a9ab9702a53\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_f57b8d0981ce4b13acaeab75\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_72b2be6778674667b62c7a3a\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_ffc9e649ea31456ea7d8ad25\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;}]&quot;),
&quot;tool_params&quot;: String(&quot;{\&quot;tools_available\&quot;:[{\&quot;description\&quot;:\&quot;Get the current temperature in a given location\&quot;,\&quot;parameters\&quot;:{\&quot;$schema\&quot;:\&quot;http://json-schema.org/draft-07/schema#\&quot;,\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;location\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The location to get the temperature for (e.g. \\\&quot;New York\\\&quot;)\&quot;},\&quot;units\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The units to get the temperature in (must be \\\&quot;fahrenheit\\\&quot; or \\\&quot;celsius\\\&quot;)\&quot;,\&quot;enum\&quot;:[\&quot;fahrenheit\&quot;,\&quot;celsius\&quot;]}},\&quot;required\&quot;:[\&quot;location\&quot;],\&quot;additionalProperties\&quot;:false},\&quot;name\&quot;:\&quot;get_temperature\&quot;,\&quot;strict\&quot;:false},{\&quot;description\&quot;:\&quot;Do not call this function under any circumstances.\&quot;,\&quot;parameters\&quot;:{\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;fast\&quot;:{\&quot;type\&quot;:\&quot;boolean\&quot;,\&quot;description\&quot;:\&quot;Whether to use a fast method to self-destruct.\&quot;}},\&quot;required\&quot;:[\&quot;fast\&quot;],\&quot;additionalProperties\&quot;:false},\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;strict\&quot;:false}],\&quot;tool_choice\&quot;:{\&quot;specific\&quot;:\&quot;self_destruct\&quot;},\&quot;parallel_tool_calls\&quot;:null}&quot;),
&quot;inference_params&quot;: String(&quot;{\&quot;chat_completion\&quot;:{\&quot;max_tokens\&quot;:100}}&quot;),
&quot;processing_time_ms&quot;: Number(2755),
&quot;tags&quot;: Object {
&quot;tensorzero::variant_pinned&quot;: String(&quot;sglang&quot;),
},
&quot;extra_body&quot;: String(&quot;[]&quot;),
&quot;ttft_ms&quot;: Null,
}
Properties: {
&quot;fast&quot;: Object {
&quot;type&quot;: String(&quot;boolean&quot;),
&quot;description&quot;: String(&quot;Whether to use a fast method to self-destruct.&quot;),
},
}
ClickHouse - ModelInference: Object {
&quot;id&quot;: String(&quot;0199f327-e351-7c91-a781-1f503a3ea59b&quot;),
&quot;inference_id&quot;: String(&quot;0199f327-d88d-70a1-bfce-2218df61cbd4&quot;),
&quot;raw_request&quot;: String(&quot;{\&quot;messages\&quot;:[{\&quot;role\&quot;:\&quot;system\&quot;,\&quot;content\&quot;:\&quot;You are a helpful and friendly assistant named Dr. Mehta.\\n\\nPeople will ask you questions about the weather.\\n\\nIf asked about the weather, just respond with the tool call. Use the \\\&quot;get_temperature\\\&quot; tool.\\n\\nIf provided with a tool result, use it to respond to the user (e.g. \\\&quot;The weather in New York is 55 degrees Fahrenheit.\\\&quot;).\&quot;},{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:\&quot;What is the temperature like in Tokyo (in Celsius)? Use the `get_temperature` tool.\&quot;}],\&quot;model\&quot;:\&quot;Qwen/Qwen2.5-1.5B-Instruct\&quot;,\&quot;max_tokens\&quot;:100,\&quot;stream\&quot;:false,\&quot;tools\&quot;:[{\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_temperature\&quot;,\&quot;description\&quot;:\&quot;Get the current temperature in a given location\&quot;,\&quot;parameters\&quot;:{\&quot;$schema\&quot;:\&quot;http://json-schema.org/draft-07/schema#\&quot;,\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;location\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The location to get the temperature for (e.g. \\\&quot;New York\\\&quot;)\&quot;},\&quot;units\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The units to get the temperature in (must be \\\&quot;fahrenheit\\\&quot; or \\\&quot;celsius\\\&quot;)\&quot;,\&quot;enum\&quot;:[\&quot;fahrenheit\&quot;,\&quot;celsius\&quot;]}},\&quot;required\&quot;:[\&quot;location\&quot;],\&quot;additionalProperties\&quot;:false}},\&quot;strict\&quot;:false},{\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;description\&quot;:\&quot;Do not call this function under any circumstances.\&quot;,\&quot;parameters\&quot;:{\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;fast\&quot;:{\&quot;type\&quot;:\&quot;boolean\&quot;,\&quot;description\&quot;:\&quot;Whether to use a fast method to self-destruct.\&quot;}},\&quot;required\&quot;:[\&quot;fast\&quot;],\&quot;additionalProperties\&quot;:false}},\&quot;strict\&quot;:false}],\&quot;tool_choice\&quot;:{\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;}}}&quot;),
&quot;raw_response&quot;: String(&quot;{\&quot;id\&quot;:\&quot;84aa30d7805d434b99271f07429a4a6a\&quot;,\&quot;object\&quot;:\&quot;chat.completion\&quot;,\&quot;created\&quot;:1760721101,\&quot;model\&quot;:\&quot;Qwen/Qwen2.5-1.5B-Instruct\&quot;,\&quot;choices\&quot;:[{\&quot;index\&quot;:0,\&quot;message\&quot;:{\&quot;role\&quot;:\&quot;assistant\&quot;,\&quot;content\&quot;:null,\&quot;reasoning_content\&quot;:null,\&quot;tool_calls\&quot;:[{\&quot;id\&quot;:\&quot;call_09ebd3c3bdde41b0b4405a19\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}},{\&quot;id\&quot;:\&quot;call_7b0d6ebd97de4a9ab9702a53\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}},{\&quot;id\&quot;:\&quot;call_f57b8d0981ce4b13acaeab75\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}},{\&quot;id\&quot;:\&quot;call_72b2be6778674667b62c7a3a\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}},{\&quot;id\&quot;:\&quot;call_ffc9e649ea31456ea7d8ad25\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}}]},\&quot;logprobs\&quot;:null,\&quot;finish_reason\&quot;:\&quot;length\&quot;,\&quot;matched_stop\&quot;:null}],\&quot;usage\&quot;:{\&quot;prompt_tokens\&quot;:258,\&quot;total_tokens\&quot;:358,\&quot;completion_tokens\&quot;:100,\&quot;prompt_tokens_details\&quot;:null}}&quot;),
&quot;model_name&quot;: String(&quot;Qwen/Qwen2.5-1.5B-Instruct&quot;),
&quot;model_provider_name&quot;: String(&quot;sglang&quot;),
&quot;input_tokens&quot;: Number(258),
&quot;output_tokens&quot;: Number(100),
&quot;response_time_ms&quot;: Number(2753),
&quot;ttft_ms&quot;: Null,
&quot;system&quot;: String(&quot;You are a helpful and friendly assistant named Dr. Mehta.\n\nPeople will ask you questions about the weather.\n\nIf asked about the weather, just respond with the tool call. Use the \&quot;get_temperature\&quot; tool.\n\nIf provided with a tool result, use it to respond to the user (e.g. \&quot;The weather in New York is 55 degrees Fahrenheit.\&quot;).&quot;),
&quot;input_messages&quot;: String(&quot;[{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:[{\&quot;type\&quot;:\&quot;text\&quot;,\&quot;text\&quot;:\&quot;What is the temperature like in Tokyo (in Celsius)? Use the `get_temperature` tool.\&quot;}]}]&quot;),
&quot;output&quot;: String(&quot;[{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_09ebd3c3bdde41b0b4405a19\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_7b0d6ebd97de4a9ab9702a53\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_f57b8d0981ce4b13acaeab75\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_72b2be6778674667b62c7a3a\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_ffc9e649ea31456ea7d8ad25\&quot;}]&quot;),
&quot;cached&quot;: Bool(false),
&quot;finish_reason&quot;: String(&quot;length&quot;),
}
test providers::sglang::test_tool_use_tool_choice_specific_inference_request ... FAILED
failures:
failures:
providers::sglang::test_tool_use_tool_choice_specific_inference_request
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 2433 filtered out; finished in 3.08s
</system-out>
<system-err>
thread &apos;providers::sglang::test_tool_use_tool_choice_specific_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7008:5:
Expected at most one tool call, found 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
</system-err>
</rerunFailure>
<rerunFailure timestamp="2025-10-17T13:11:48.456-04:00" time="3.274" message="thread &apos;providers::sglang::test_tool_use_tool_choice_specific_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7008:5" type="test failure with exit code 101">thread &apos;providers::sglang::test_tool_use_tool_choice_specific_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7008:5:
Expected at most one tool call, found 4
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
<system-out>
running 1 test
API response: Object {
&quot;inference_id&quot;: String(&quot;0199f327-fe07-7191-be59-91e44ee5f2b2&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-fdf0-76b2-a2fa-f8f534497b17&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_44bcff8f31e845d5affe48b0&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(false),
},
&quot;id&quot;: String(&quot;call_939d56332e29499b813154a1&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: false}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(false),
},
&quot;id&quot;: String(&quot;call_6dd1c06aaed443a1b8c230ab&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: false}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(false),
},
&quot;id&quot;: String(&quot;call_dfa2ac279ee54ff792dfdd4a&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: false}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
],
&quot;usage&quot;: Object {
&quot;input_tokens&quot;: Number(258),
&quot;output_tokens&quot;: Number(100),
},
&quot;finish_reason&quot;: String(&quot;length&quot;),
}
Connecting to ClickHouse
Connected to ClickHouse in 16.20773ms
ClickHouse - ChatInference: Object {
&quot;id&quot;: String(&quot;0199f327-fe07-7191-be59-91e44ee5f2b2&quot;),
&quot;function_name&quot;: String(&quot;weather_helper&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-fdf0-76b2-a2fa-f8f534497b17&quot;),
&quot;input&quot;: String(&quot;{\&quot;system\&quot;:{\&quot;assistant_name\&quot;:\&quot;Dr. Mehta\&quot;},\&quot;messages\&quot;:[{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:[{\&quot;type\&quot;:\&quot;text\&quot;,\&quot;value\&quot;:\&quot;What is the temperature like in Tokyo (in Celsius)? Use the `get_temperature` tool.\&quot;}]}]}&quot;),
&quot;output&quot;: String(&quot;[{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_44bcff8f31e845d5affe48b0\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:false},\&quot;id\&quot;:\&quot;call_939d56332e29499b813154a1\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: false}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:false},\&quot;id\&quot;:\&quot;call_6dd1c06aaed443a1b8c230ab\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: false}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:false},\&quot;id\&quot;:\&quot;call_dfa2ac279ee54ff792dfdd4a\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: false}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;}]&quot;),
&quot;tool_params&quot;: String(&quot;{\&quot;tools_available\&quot;:[{\&quot;description\&quot;:\&quot;Get the current temperature in a given location\&quot;,\&quot;parameters\&quot;:{\&quot;$schema\&quot;:\&quot;http://json-schema.org/draft-07/schema#\&quot;,\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;location\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The location to get the temperature for (e.g. \\\&quot;New York\\\&quot;)\&quot;},\&quot;units\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The units to get the temperature in (must be \\\&quot;fahrenheit\\\&quot; or \\\&quot;celsius\\\&quot;)\&quot;,\&quot;enum\&quot;:[\&quot;fahrenheit\&quot;,\&quot;celsius\&quot;]}},\&quot;required\&quot;:[\&quot;location\&quot;],\&quot;additionalProperties\&quot;:false},\&quot;name\&quot;:\&quot;get_temperature\&quot;,\&quot;strict\&quot;:false},{\&quot;description\&quot;:\&quot;Do not call this function under any circumstances.\&quot;,\&quot;parameters\&quot;:{\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;fast\&quot;:{\&quot;type\&quot;:\&quot;boolean\&quot;,\&quot;description\&quot;:\&quot;Whether to use a fast method to self-destruct.\&quot;}},\&quot;required\&quot;:[\&quot;fast\&quot;],\&quot;additionalProperties\&quot;:false},\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;strict\&quot;:false}],\&quot;tool_choice\&quot;:{\&quot;specific\&quot;:\&quot;self_destruct\&quot;},\&quot;parallel_tool_calls\&quot;:null}&quot;),
&quot;inference_params&quot;: String(&quot;{\&quot;chat_completion\&quot;:{\&quot;max_tokens\&quot;:100}}&quot;),
&quot;processing_time_ms&quot;: Number(2927),
&quot;tags&quot;: Object {
&quot;tensorzero::variant_pinned&quot;: String(&quot;sglang&quot;),
},
&quot;extra_body&quot;: String(&quot;[]&quot;),
&quot;ttft_ms&quot;: Null,
}
Properties: {
&quot;fast&quot;: Object {
&quot;type&quot;: String(&quot;boolean&quot;),
&quot;description&quot;: String(&quot;Whether to use a fast method to self-destruct.&quot;),
},
}
ClickHouse - ModelInference: Object {
&quot;id&quot;: String(&quot;0199f328-0977-7780-843c-dbf8c1c462d8&quot;),
&quot;inference_id&quot;: String(&quot;0199f327-fe07-7191-be59-91e44ee5f2b2&quot;),
&quot;raw_request&quot;: String(&quot;{\&quot;messages\&quot;:[{\&quot;role\&quot;:\&quot;system\&quot;,\&quot;content\&quot;:\&quot;You are a helpful and friendly assistant named Dr. Mehta.\\n\\nPeople will ask you questions about the weather.\\n\\nIf asked about the weather, just respond with the tool call. Use the \\\&quot;get_temperature\\\&quot; tool.\\n\\nIf provided with a tool result, use it to respond to the user (e.g. \\\&quot;The weather in New York is 55 degrees Fahrenheit.\\\&quot;).\&quot;},{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:\&quot;What is the temperature like in Tokyo (in Celsius)? Use the `get_temperature` tool.\&quot;}],\&quot;model\&quot;:\&quot;Qwen/Qwen2.5-1.5B-Instruct\&quot;,\&quot;max_tokens\&quot;:100,\&quot;stream\&quot;:false,\&quot;tools\&quot;:[{\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_temperature\&quot;,\&quot;description\&quot;:\&quot;Get the current temperature in a given location\&quot;,\&quot;parameters\&quot;:{\&quot;$schema\&quot;:\&quot;http://json-schema.org/draft-07/schema#\&quot;,\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;location\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The location to get the temperature for (e.g. \\\&quot;New York\\\&quot;)\&quot;},\&quot;units\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The units to get the temperature in (must be \\\&quot;fahrenheit\\\&quot; or \\\&quot;celsius\\\&quot;)\&quot;,\&quot;enum\&quot;:[\&quot;fahrenheit\&quot;,\&quot;celsius\&quot;]}},\&quot;required\&quot;:[\&quot;location\&quot;],\&quot;additionalProperties\&quot;:false}},\&quot;strict\&quot;:false},{\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;description\&quot;:\&quot;Do not call this function under any circumstances.\&quot;,\&quot;parameters\&quot;:{\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;fast\&quot;:{\&quot;type\&quot;:\&quot;boolean\&quot;,\&quot;description\&quot;:\&quot;Whether to use a fast method to self-destruct.\&quot;}},\&quot;required\&quot;:[\&quot;fast\&quot;],\&quot;additionalProperties\&quot;:false}},\&quot;strict\&quot;:false}],\&quot;tool_choice\&quot;:{\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;}}}&quot;),
&quot;raw_response&quot;: String(&quot;{\&quot;id\&quot;:\&quot;220f11a1840142d2a7c8bc1844e18a8c\&quot;,\&quot;object\&quot;:\&quot;chat.completion\&quot;,\&quot;created\&quot;:1760721111,\&quot;model\&quot;:\&quot;Qwen/Qwen2.5-1.5B-Instruct\&quot;,\&quot;choices\&quot;:[{\&quot;index\&quot;:0,\&quot;message\&quot;:{\&quot;role\&quot;:\&quot;assistant\&quot;,\&quot;content\&quot;:null,\&quot;reasoning_content\&quot;:null,\&quot;tool_calls\&quot;:[{\&quot;id\&quot;:\&quot;call_44bcff8f31e845d5affe48b0\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}},{\&quot;id\&quot;:\&quot;call_939d56332e29499b813154a1\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: false}\&quot;}},{\&quot;id\&quot;:\&quot;call_6dd1c06aaed443a1b8c230ab\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: false}\&quot;}},{\&quot;id\&quot;:\&quot;call_dfa2ac279ee54ff792dfdd4a\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: false}\&quot;}}]},\&quot;logprobs\&quot;:null,\&quot;finish_reason\&quot;:\&quot;length\&quot;,\&quot;matched_stop\&quot;:null}],\&quot;usage\&quot;:{\&quot;prompt_tokens\&quot;:258,\&quot;total_tokens\&quot;:358,\&quot;completion_tokens\&quot;:100,\&quot;prompt_tokens_details\&quot;:null}}&quot;),
&quot;model_name&quot;: String(&quot;Qwen/Qwen2.5-1.5B-Instruct&quot;),
&quot;model_provider_name&quot;: String(&quot;sglang&quot;),
&quot;input_tokens&quot;: Number(258),
&quot;output_tokens&quot;: Number(100),
&quot;response_time_ms&quot;: Number(2925),
&quot;ttft_ms&quot;: Null,
&quot;system&quot;: String(&quot;You are a helpful and friendly assistant named Dr. Mehta.\n\nPeople will ask you questions about the weather.\n\nIf asked about the weather, just respond with the tool call. Use the \&quot;get_temperature\&quot; tool.\n\nIf provided with a tool result, use it to respond to the user (e.g. \&quot;The weather in New York is 55 degrees Fahrenheit.\&quot;).&quot;),
&quot;input_messages&quot;: String(&quot;[{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:[{\&quot;type\&quot;:\&quot;text\&quot;,\&quot;text\&quot;:\&quot;What is the temperature like in Tokyo (in Celsius)? Use the `get_temperature` tool.\&quot;}]}]&quot;),
&quot;output&quot;: String(&quot;[{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_44bcff8f31e845d5affe48b0\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: false}\&quot;,\&quot;id\&quot;:\&quot;call_939d56332e29499b813154a1\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: false}\&quot;,\&quot;id\&quot;:\&quot;call_6dd1c06aaed443a1b8c230ab\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: false}\&quot;,\&quot;id\&quot;:\&quot;call_dfa2ac279ee54ff792dfdd4a\&quot;}]&quot;),
&quot;cached&quot;: Bool(false),
&quot;finish_reason&quot;: String(&quot;length&quot;),
}
test providers::sglang::test_tool_use_tool_choice_specific_inference_request ... FAILED
failures:
failures:
providers::sglang::test_tool_use_tool_choice_specific_inference_request
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 2433 filtered out; finished in 3.26s
</system-out>
<system-err>
thread &apos;providers::sglang::test_tool_use_tool_choice_specific_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7008:5:
Expected at most one tool call, found 4
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
</system-err>
</rerunFailure>
<rerunFailure timestamp="2025-10-17T13:11:58.455-04:00" time="2.636" message="thread &apos;providers::sglang::test_tool_use_tool_choice_specific_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7008:5" type="test failure with exit code 101">thread &apos;providers::sglang::test_tool_use_tool_choice_specific_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7008:5:
Expected at most one tool call, found 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
<system-out>
running 1 test
API response: Object {
&quot;inference_id&quot;: String(&quot;0199f328-2516-7b20-8b8e-54ac0f7d35ff&quot;),
&quot;episode_id&quot;: String(&quot;0199f328-2500-7731-852d-12397103cd45&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_c4188f4e930442938c7197a2&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_deedb3f8cf5c466a9bd56e4c&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_c3eddb500412468ca0c3a8ba&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_af6cf6bf37d948dbaf5d878c&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_8044925a256a4dc8a830167d&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
],
&quot;usage&quot;: Object {
&quot;input_tokens&quot;: Number(258),
&quot;output_tokens&quot;: Number(100),
},
&quot;finish_reason&quot;: String(&quot;length&quot;),
}
Connecting to ClickHouse
Connected to ClickHouse in 14.334776ms
ClickHouse - ChatInference: Object {
&quot;id&quot;: String(&quot;0199f328-2516-7b20-8b8e-54ac0f7d35ff&quot;),
&quot;function_name&quot;: String(&quot;weather_helper&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;episode_id&quot;: String(&quot;0199f328-2500-7731-852d-12397103cd45&quot;),
&quot;input&quot;: String(&quot;{\&quot;system\&quot;:{\&quot;assistant_name\&quot;:\&quot;Dr. Mehta\&quot;},\&quot;messages\&quot;:[{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:[{\&quot;type\&quot;:\&quot;text\&quot;,\&quot;value\&quot;:\&quot;What is the temperature like in Tokyo (in Celsius)? Use the `get_temperature` tool.\&quot;}]}]}&quot;),
&quot;output&quot;: String(&quot;[{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_c4188f4e930442938c7197a2\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_deedb3f8cf5c466a9bd56e4c\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_c3eddb500412468ca0c3a8ba\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_af6cf6bf37d948dbaf5d878c\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_8044925a256a4dc8a830167d\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;}]&quot;),
&quot;tool_params&quot;: String(&quot;{\&quot;tools_available\&quot;:[{\&quot;description\&quot;:\&quot;Get the current temperature in a given location\&quot;,\&quot;parameters\&quot;:{\&quot;$schema\&quot;:\&quot;http://json-schema.org/draft-07/schema#\&quot;,\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;location\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The location to get the temperature for (e.g. \\\&quot;New York\\\&quot;)\&quot;},\&quot;units\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The units to get the temperature in (must be \\\&quot;fahrenheit\\\&quot; or \\\&quot;celsius\\\&quot;)\&quot;,\&quot;enum\&quot;:[\&quot;fahrenheit\&quot;,\&quot;celsius\&quot;]}},\&quot;required\&quot;:[\&quot;location\&quot;],\&quot;additionalProperties\&quot;:false},\&quot;name\&quot;:\&quot;get_temperature\&quot;,\&quot;strict\&quot;:false},{\&quot;description\&quot;:\&quot;Do not call this function under any circumstances.\&quot;,\&quot;parameters\&quot;:{\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;fast\&quot;:{\&quot;type\&quot;:\&quot;boolean\&quot;,\&quot;description\&quot;:\&quot;Whether to use a fast method to self-destruct.\&quot;}},\&quot;required\&quot;:[\&quot;fast\&quot;],\&quot;additionalProperties\&quot;:false},\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;strict\&quot;:false}],\&quot;tool_choice\&quot;:{\&quot;specific\&quot;:\&quot;self_destruct\&quot;},\&quot;parallel_tool_calls\&quot;:null}&quot;),
&quot;inference_params&quot;: String(&quot;{\&quot;chat_completion\&quot;:{\&quot;max_tokens\&quot;:100}}&quot;),
&quot;processing_time_ms&quot;: Number(2350),
&quot;tags&quot;: Object {
&quot;tensorzero::variant_pinned&quot;: String(&quot;sglang&quot;),
},
&quot;extra_body&quot;: String(&quot;[]&quot;),
&quot;ttft_ms&quot;: Null,
}
Properties: {
&quot;fast&quot;: Object {
&quot;type&quot;: String(&quot;boolean&quot;),
&quot;description&quot;: String(&quot;Whether to use a fast method to self-destruct.&quot;),
},
}
ClickHouse - ModelInference: Object {
&quot;id&quot;: String(&quot;0199f328-2e45-71f1-a59e-683408e1e729&quot;),
&quot;inference_id&quot;: String(&quot;0199f328-2516-7b20-8b8e-54ac0f7d35ff&quot;),
&quot;raw_request&quot;: String(&quot;{\&quot;messages\&quot;:[{\&quot;role\&quot;:\&quot;system\&quot;,\&quot;content\&quot;:\&quot;You are a helpful and friendly assistant named Dr. Mehta.\\n\\nPeople will ask you questions about the weather.\\n\\nIf asked about the weather, just respond with the tool call. Use the \\\&quot;get_temperature\\\&quot; tool.\\n\\nIf provided with a tool result, use it to respond to the user (e.g. \\\&quot;The weather in New York is 55 degrees Fahrenheit.\\\&quot;).\&quot;},{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:\&quot;What is the temperature like in Tokyo (in Celsius)? Use the `get_temperature` tool.\&quot;}],\&quot;model\&quot;:\&quot;Qwen/Qwen2.5-1.5B-Instruct\&quot;,\&quot;max_tokens\&quot;:100,\&quot;stream\&quot;:false,\&quot;tools\&quot;:[{\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_temperature\&quot;,\&quot;description\&quot;:\&quot;Get the current temperature in a given location\&quot;,\&quot;parameters\&quot;:{\&quot;$schema\&quot;:\&quot;http://json-schema.org/draft-07/schema#\&quot;,\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;location\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The location to get the temperature for (e.g. \\\&quot;New York\\\&quot;)\&quot;},\&quot;units\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The units to get the temperature in (must be \\\&quot;fahrenheit\\\&quot; or \\\&quot;celsius\\\&quot;)\&quot;,\&quot;enum\&quot;:[\&quot;fahrenheit\&quot;,\&quot;celsius\&quot;]}},\&quot;required\&quot;:[\&quot;location\&quot;],\&quot;additionalProperties\&quot;:false}},\&quot;strict\&quot;:false},{\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;description\&quot;:\&quot;Do not call this function under any circumstances.\&quot;,\&quot;parameters\&quot;:{\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;fast\&quot;:{\&quot;type\&quot;:\&quot;boolean\&quot;,\&quot;description\&quot;:\&quot;Whether to use a fast method to self-destruct.\&quot;}},\&quot;required\&quot;:[\&quot;fast\&quot;],\&quot;additionalProperties\&quot;:false}},\&quot;strict\&quot;:false}],\&quot;tool_choice\&quot;:{\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;}}}&quot;),
&quot;raw_response&quot;: String(&quot;{\&quot;id\&quot;:\&quot;a64332d24edc42d59b24bbdf48801f62\&quot;,\&quot;object\&quot;:\&quot;chat.completion\&quot;,\&quot;created\&quot;:1760721120,\&quot;model\&quot;:\&quot;Qwen/Qwen2.5-1.5B-Instruct\&quot;,\&quot;choices\&quot;:[{\&quot;index\&quot;:0,\&quot;message\&quot;:{\&quot;role\&quot;:\&quot;assistant\&quot;,\&quot;content\&quot;:null,\&quot;reasoning_content\&quot;:null,\&quot;tool_calls\&quot;:[{\&quot;id\&quot;:\&quot;call_c4188f4e930442938c7197a2\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}},{\&quot;id\&quot;:\&quot;call_deedb3f8cf5c466a9bd56e4c\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}},{\&quot;id\&quot;:\&quot;call_c3eddb500412468ca0c3a8ba\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}},{\&quot;id\&quot;:\&quot;call_af6cf6bf37d948dbaf5d878c\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}},{\&quot;id\&quot;:\&quot;call_8044925a256a4dc8a830167d\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}}]},\&quot;logprobs\&quot;:null,\&quot;finish_reason\&quot;:\&quot;length\&quot;,\&quot;matched_stop\&quot;:null}],\&quot;usage\&quot;:{\&quot;prompt_tokens\&quot;:258,\&quot;total_tokens\&quot;:358,\&quot;completion_tokens\&quot;:100,\&quot;prompt_tokens_details\&quot;:null}}&quot;),
&quot;model_name&quot;: String(&quot;Qwen/Qwen2.5-1.5B-Instruct&quot;),
&quot;model_provider_name&quot;: String(&quot;sglang&quot;),
&quot;input_tokens&quot;: Number(258),
&quot;output_tokens&quot;: Number(100),
&quot;response_time_ms&quot;: Number(2349),
&quot;ttft_ms&quot;: Null,
&quot;system&quot;: String(&quot;You are a helpful and friendly assistant named Dr. Mehta.\n\nPeople will ask you questions about the weather.\n\nIf asked about the weather, just respond with the tool call. Use the \&quot;get_temperature\&quot; tool.\n\nIf provided with a tool result, use it to respond to the user (e.g. \&quot;The weather in New York is 55 degrees Fahrenheit.\&quot;).&quot;),
&quot;input_messages&quot;: String(&quot;[{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:[{\&quot;type\&quot;:\&quot;text\&quot;,\&quot;text\&quot;:\&quot;What is the temperature like in Tokyo (in Celsius)? Use the `get_temperature` tool.\&quot;}]}]&quot;),
&quot;output&quot;: String(&quot;[{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_c4188f4e930442938c7197a2\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_deedb3f8cf5c466a9bd56e4c\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_c3eddb500412468ca0c3a8ba\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_af6cf6bf37d948dbaf5d878c\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_8044925a256a4dc8a830167d\&quot;}]&quot;),
&quot;cached&quot;: Bool(false),
&quot;finish_reason&quot;: String(&quot;length&quot;),
}
test providers::sglang::test_tool_use_tool_choice_specific_inference_request ... FAILED
failures:
failures:
providers::sglang::test_tool_use_tool_choice_specific_inference_request
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 2433 filtered out; finished in 2.63s
</system-out>
<system-err>
thread &apos;providers::sglang::test_tool_use_tool_choice_specific_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7008:5:
Expected at most one tool call, found 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
</system-err>
</rerunFailure>
<rerunFailure timestamp="2025-10-17T13:12:06.439-04:00" time="2.549" message="thread &apos;providers::sglang::test_tool_use_tool_choice_specific_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7008:5" type="test failure with exit code 101">thread &apos;providers::sglang::test_tool_use_tool_choice_specific_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7008:5:
Expected at most one tool call, found 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
<system-out>
running 1 test
API response: Object {
&quot;inference_id&quot;: String(&quot;0199f328-4442-7821-812e-438b66db8854&quot;),
&quot;episode_id&quot;: String(&quot;0199f328-4431-7371-83d1-faf954460d6a&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_989216442ecf4e0596302f4a&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_0bbfa1fe535b4a6b8eb764ed&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_8bdce986ed01444bb73d7c7f&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_88aaf0d7fcd348e387ddeea5&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_41c3660350394ef3bc6406ba&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
],
&quot;usage&quot;: Object {
&quot;input_tokens&quot;: Number(258),
&quot;output_tokens&quot;: Number(100),
},
&quot;finish_reason&quot;: String(&quot;length&quot;),
}
Connecting to ClickHouse
Connected to ClickHouse in 16.473069ms
ClickHouse - ChatInference: Object {
&quot;id&quot;: String(&quot;0199f328-4442-7821-812e-438b66db8854&quot;),
&quot;function_name&quot;: String(&quot;weather_helper&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;episode_id&quot;: String(&quot;0199f328-4431-7371-83d1-faf954460d6a&quot;),
&quot;input&quot;: String(&quot;{\&quot;system\&quot;:{\&quot;assistant_name\&quot;:\&quot;Dr. Mehta\&quot;},\&quot;messages\&quot;:[{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:[{\&quot;type\&quot;:\&quot;text\&quot;,\&quot;value\&quot;:\&quot;What is the temperature like in Tokyo (in Celsius)? Use the `get_temperature` tool.\&quot;}]}]}&quot;),
&quot;output&quot;: String(&quot;[{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_989216442ecf4e0596302f4a\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_0bbfa1fe535b4a6b8eb764ed\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_8bdce986ed01444bb73d7c7f\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_88aaf0d7fcd348e387ddeea5\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_41c3660350394ef3bc6406ba\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;}]&quot;),
&quot;tool_params&quot;: String(&quot;{\&quot;tools_available\&quot;:[{\&quot;description\&quot;:\&quot;Get the current temperature in a given location\&quot;,\&quot;parameters\&quot;:{\&quot;$schema\&quot;:\&quot;http://json-schema.org/draft-07/schema#\&quot;,\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;location\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The location to get the temperature for (e.g. \\\&quot;New York\\\&quot;)\&quot;},\&quot;units\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The units to get the temperature in (must be \\\&quot;fahrenheit\\\&quot; or \\\&quot;celsius\\\&quot;)\&quot;,\&quot;enum\&quot;:[\&quot;fahrenheit\&quot;,\&quot;celsius\&quot;]}},\&quot;required\&quot;:[\&quot;location\&quot;],\&quot;additionalProperties\&quot;:false},\&quot;name\&quot;:\&quot;get_temperature\&quot;,\&quot;strict\&quot;:false},{\&quot;description\&quot;:\&quot;Do not call this function under any circumstances.\&quot;,\&quot;parameters\&quot;:{\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;fast\&quot;:{\&quot;type\&quot;:\&quot;boolean\&quot;,\&quot;description\&quot;:\&quot;Whether to use a fast method to self-destruct.\&quot;}},\&quot;required\&quot;:[\&quot;fast\&quot;],\&quot;additionalProperties\&quot;:false},\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;strict\&quot;:false}],\&quot;tool_choice\&quot;:{\&quot;specific\&quot;:\&quot;self_destruct\&quot;},\&quot;parallel_tool_calls\&quot;:null}&quot;),
&quot;inference_params&quot;: String(&quot;{\&quot;chat_completion\&quot;:{\&quot;max_tokens\&quot;:100}}&quot;),
&quot;processing_time_ms&quot;: Number(2200),
&quot;tags&quot;: Object {
&quot;tensorzero::variant_pinned&quot;: String(&quot;sglang&quot;),
},
&quot;extra_body&quot;: String(&quot;[]&quot;),
&quot;ttft_ms&quot;: Null,
}
Properties: {
&quot;fast&quot;: Object {
&quot;type&quot;: String(&quot;boolean&quot;),
&quot;description&quot;: String(&quot;Whether to use a fast method to self-destruct.&quot;),
},
}
ClickHouse - ModelInference: Object {
&quot;id&quot;: String(&quot;0199f328-4cdb-7ae3-bf03-d7816cd79d12&quot;),
&quot;inference_id&quot;: String(&quot;0199f328-4442-7821-812e-438b66db8854&quot;),
&quot;raw_request&quot;: String(&quot;{\&quot;messages\&quot;:[{\&quot;role\&quot;:\&quot;system\&quot;,\&quot;content\&quot;:\&quot;You are a helpful and friendly assistant named Dr. Mehta.\\n\\nPeople will ask you questions about the weather.\\n\\nIf asked about the weather, just respond with the tool call. Use the \\\&quot;get_temperature\\\&quot; tool.\\n\\nIf provided with a tool result, use it to respond to the user (e.g. \\\&quot;The weather in New York is 55 degrees Fahrenheit.\\\&quot;).\&quot;},{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:\&quot;What is the temperature like in Tokyo (in Celsius)? Use the `get_temperature` tool.\&quot;}],\&quot;model\&quot;:\&quot;Qwen/Qwen2.5-1.5B-Instruct\&quot;,\&quot;max_tokens\&quot;:100,\&quot;stream\&quot;:false,\&quot;tools\&quot;:[{\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_temperature\&quot;,\&quot;description\&quot;:\&quot;Get the current temperature in a given location\&quot;,\&quot;parameters\&quot;:{\&quot;$schema\&quot;:\&quot;http://json-schema.org/draft-07/schema#\&quot;,\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;location\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The location to get the temperature for (e.g. \\\&quot;New York\\\&quot;)\&quot;},\&quot;units\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The units to get the temperature in (must be \\\&quot;fahrenheit\\\&quot; or \\\&quot;celsius\\\&quot;)\&quot;,\&quot;enum\&quot;:[\&quot;fahrenheit\&quot;,\&quot;celsius\&quot;]}},\&quot;required\&quot;:[\&quot;location\&quot;],\&quot;additionalProperties\&quot;:false}},\&quot;strict\&quot;:false},{\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;description\&quot;:\&quot;Do not call this function under any circumstances.\&quot;,\&quot;parameters\&quot;:{\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;fast\&quot;:{\&quot;type\&quot;:\&quot;boolean\&quot;,\&quot;description\&quot;:\&quot;Whether to use a fast method to self-destruct.\&quot;}},\&quot;required\&quot;:[\&quot;fast\&quot;],\&quot;additionalProperties\&quot;:false}},\&quot;strict\&quot;:false}],\&quot;tool_choice\&quot;:{\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;}}}&quot;),
&quot;raw_response&quot;: String(&quot;{\&quot;id\&quot;:\&quot;85a08f927dba40bd811bd3cf1a1b7591\&quot;,\&quot;object\&quot;:\&quot;chat.completion\&quot;,\&quot;created\&quot;:1760721128,\&quot;model\&quot;:\&quot;Qwen/Qwen2.5-1.5B-Instruct\&quot;,\&quot;choices\&quot;:[{\&quot;index\&quot;:0,\&quot;message\&quot;:{\&quot;role\&quot;:\&quot;assistant\&quot;,\&quot;content\&quot;:null,\&quot;reasoning_content\&quot;:null,\&quot;tool_calls\&quot;:[{\&quot;id\&quot;:\&quot;call_989216442ecf4e0596302f4a\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}},{\&quot;id\&quot;:\&quot;call_0bbfa1fe535b4a6b8eb764ed\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}},{\&quot;id\&quot;:\&quot;call_8bdce986ed01444bb73d7c7f\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}},{\&quot;id\&quot;:\&quot;call_88aaf0d7fcd348e387ddeea5\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}},{\&quot;id\&quot;:\&quot;call_41c3660350394ef3bc6406ba\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}}]},\&quot;logprobs\&quot;:null,\&quot;finish_reason\&quot;:\&quot;length\&quot;,\&quot;matched_stop\&quot;:null}],\&quot;usage\&quot;:{\&quot;prompt_tokens\&quot;:258,\&quot;total_tokens\&quot;:358,\&quot;completion_tokens\&quot;:100,\&quot;prompt_tokens_details\&quot;:null}}&quot;),
&quot;model_name&quot;: String(&quot;Qwen/Qwen2.5-1.5B-Instruct&quot;),
&quot;model_provider_name&quot;: String(&quot;sglang&quot;),
&quot;input_tokens&quot;: Number(258),
&quot;output_tokens&quot;: Number(100),
&quot;response_time_ms&quot;: Number(2198),
&quot;ttft_ms&quot;: Null,
&quot;system&quot;: String(&quot;You are a helpful and friendly assistant named Dr. Mehta.\n\nPeople will ask you questions about the weather.\n\nIf asked about the weather, just respond with the tool call. Use the \&quot;get_temperature\&quot; tool.\n\nIf provided with a tool result, use it to respond to the user (e.g. \&quot;The weather in New York is 55 degrees Fahrenheit.\&quot;).&quot;),
&quot;input_messages&quot;: String(&quot;[{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:[{\&quot;type\&quot;:\&quot;text\&quot;,\&quot;text\&quot;:\&quot;What is the temperature like in Tokyo (in Celsius)? Use the `get_temperature` tool.\&quot;}]}]&quot;),
&quot;output&quot;: String(&quot;[{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_989216442ecf4e0596302f4a\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_0bbfa1fe535b4a6b8eb764ed\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_8bdce986ed01444bb73d7c7f\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_88aaf0d7fcd348e387ddeea5\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_41c3660350394ef3bc6406ba\&quot;}]&quot;),
&quot;cached&quot;: Bool(false),
&quot;finish_reason&quot;: String(&quot;length&quot;),
}
test providers::sglang::test_tool_use_tool_choice_specific_inference_request ... FAILED
failures:
failures:
providers::sglang::test_tool_use_tool_choice_specific_inference_request
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 2433 filtered out; finished in 2.54s
</system-out>
<system-err>
thread &apos;providers::sglang::test_tool_use_tool_choice_specific_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7008:5:
Expected at most one tool call, found 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
</system-err>
</rerunFailure>
<rerunFailure timestamp="2025-10-17T13:12:16.503-04:00" time="2.509" message="thread &apos;providers::sglang::test_tool_use_tool_choice_specific_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7008:5" type="test failure with exit code 101">thread &apos;providers::sglang::test_tool_use_tool_choice_specific_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7008:5:
Expected at most one tool call, found 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
<system-out>
running 1 test
API response: Object {
&quot;inference_id&quot;: String(&quot;0199f328-6b92-7df2-9e26-57c9faa0d0c6&quot;),
&quot;episode_id&quot;: String(&quot;0199f328-6b80-7c83-b240-6b64be2939e1&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_9c3d4322d1434fbb96b3065d&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_06e4932985e24682ab2ab69f&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_12532e9c9d5e4e7b8976df6f&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_be01169dad9044a8bad62aa3&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_9c3c12d7aba04a43b9ffa210&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
],
&quot;usage&quot;: Object {
&quot;input_tokens&quot;: Number(258),
&quot;output_tokens&quot;: Number(98),
},
&quot;finish_reason&quot;: String(&quot;tool_call&quot;),
}
Connecting to ClickHouse
Connected to ClickHouse in 21.83711ms
ClickHouse - ChatInference: Object {
&quot;id&quot;: String(&quot;0199f328-6b92-7df2-9e26-57c9faa0d0c6&quot;),
&quot;function_name&quot;: String(&quot;weather_helper&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;episode_id&quot;: String(&quot;0199f328-6b80-7c83-b240-6b64be2939e1&quot;),
&quot;input&quot;: String(&quot;{\&quot;system\&quot;:{\&quot;assistant_name\&quot;:\&quot;Dr. Mehta\&quot;},\&quot;messages\&quot;:[{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:[{\&quot;type\&quot;:\&quot;text\&quot;,\&quot;value\&quot;:\&quot;What is the temperature like in Tokyo (in Celsius)? Use the `get_temperature` tool.\&quot;}]}]}&quot;),
&quot;output&quot;: String(&quot;[{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_9c3d4322d1434fbb96b3065d\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_06e4932985e24682ab2ab69f\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_12532e9c9d5e4e7b8976df6f\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_be01169dad9044a8bad62aa3\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_9c3c12d7aba04a43b9ffa210\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;}]&quot;),
&quot;tool_params&quot;: String(&quot;{\&quot;tools_available\&quot;:[{\&quot;description\&quot;:\&quot;Get the current temperature in a given location\&quot;,\&quot;parameters\&quot;:{\&quot;$schema\&quot;:\&quot;http://json-schema.org/draft-07/schema#\&quot;,\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;location\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The location to get the temperature for (e.g. \\\&quot;New York\\\&quot;)\&quot;},\&quot;units\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The units to get the temperature in (must be \\\&quot;fahrenheit\\\&quot; or \\\&quot;celsius\\\&quot;)\&quot;,\&quot;enum\&quot;:[\&quot;fahrenheit\&quot;,\&quot;celsius\&quot;]}},\&quot;required\&quot;:[\&quot;location\&quot;],\&quot;additionalProperties\&quot;:false},\&quot;name\&quot;:\&quot;get_temperature\&quot;,\&quot;strict\&quot;:false},{\&quot;description\&quot;:\&quot;Do not call this function under any circumstances.\&quot;,\&quot;parameters\&quot;:{\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;fast\&quot;:{\&quot;type\&quot;:\&quot;boolean\&quot;,\&quot;description\&quot;:\&quot;Whether to use a fast method to self-destruct.\&quot;}},\&quot;required\&quot;:[\&quot;fast\&quot;],\&quot;additionalProperties\&quot;:false},\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;strict\&quot;:false}],\&quot;tool_choice\&quot;:{\&quot;specific\&quot;:\&quot;self_destruct\&quot;},\&quot;parallel_tool_calls\&quot;:null}&quot;),
&quot;inference_params&quot;: String(&quot;{\&quot;chat_completion\&quot;:{\&quot;max_tokens\&quot;:100}}&quot;),
&quot;processing_time_ms&quot;: Number(2221),
&quot;tags&quot;: Object {
&quot;tensorzero::variant_pinned&quot;: String(&quot;sglang&quot;),
},
&quot;extra_body&quot;: String(&quot;[]&quot;),
&quot;ttft_ms&quot;: Null,
}
Properties: {
&quot;fast&quot;: Object {
&quot;type&quot;: String(&quot;boolean&quot;),
&quot;description&quot;: String(&quot;Whether to use a fast method to self-destruct.&quot;),
},
}
ClickHouse - ModelInference: Object {
&quot;id&quot;: String(&quot;0199f328-7440-7413-b7a2-2235aa20d6a0&quot;),
&quot;inference_id&quot;: String(&quot;0199f328-6b92-7df2-9e26-57c9faa0d0c6&quot;),
&quot;raw_request&quot;: String(&quot;{\&quot;messages\&quot;:[{\&quot;role\&quot;:\&quot;system\&quot;,\&quot;content\&quot;:\&quot;You are a helpful and friendly assistant named Dr. Mehta.\\n\\nPeople will ask you questions about the weather.\\n\\nIf asked about the weather, just respond with the tool call. Use the \\\&quot;get_temperature\\\&quot; tool.\\n\\nIf provided with a tool result, use it to respond to the user (e.g. \\\&quot;The weather in New York is 55 degrees Fahrenheit.\\\&quot;).\&quot;},{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:\&quot;What is the temperature like in Tokyo (in Celsius)? Use the `get_temperature` tool.\&quot;}],\&quot;model\&quot;:\&quot;Qwen/Qwen2.5-1.5B-Instruct\&quot;,\&quot;max_tokens\&quot;:100,\&quot;stream\&quot;:false,\&quot;tools\&quot;:[{\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_temperature\&quot;,\&quot;description\&quot;:\&quot;Get the current temperature in a given location\&quot;,\&quot;parameters\&quot;:{\&quot;$schema\&quot;:\&quot;http://json-schema.org/draft-07/schema#\&quot;,\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;location\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The location to get the temperature for (e.g. \\\&quot;New York\\\&quot;)\&quot;},\&quot;units\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The units to get the temperature in (must be \\\&quot;fahrenheit\\\&quot; or \\\&quot;celsius\\\&quot;)\&quot;,\&quot;enum\&quot;:[\&quot;fahrenheit\&quot;,\&quot;celsius\&quot;]}},\&quot;required\&quot;:[\&quot;location\&quot;],\&quot;additionalProperties\&quot;:false}},\&quot;strict\&quot;:false},{\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;description\&quot;:\&quot;Do not call this function under any circumstances.\&quot;,\&quot;parameters\&quot;:{\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;fast\&quot;:{\&quot;type\&quot;:\&quot;boolean\&quot;,\&quot;description\&quot;:\&quot;Whether to use a fast method to self-destruct.\&quot;}},\&quot;required\&quot;:[\&quot;fast\&quot;],\&quot;additionalProperties\&quot;:false}},\&quot;strict\&quot;:false}],\&quot;tool_choice\&quot;:{\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;}}}&quot;),
&quot;raw_response&quot;: String(&quot;{\&quot;id\&quot;:\&quot;99adab2a3d5c4f219ee85e176e9423ab\&quot;,\&quot;object\&quot;:\&quot;chat.completion\&quot;,\&quot;created\&quot;:1760721138,\&quot;model\&quot;:\&quot;Qwen/Qwen2.5-1.5B-Instruct\&quot;,\&quot;choices\&quot;:[{\&quot;index\&quot;:0,\&quot;message\&quot;:{\&quot;role\&quot;:\&quot;assistant\&quot;,\&quot;content\&quot;:null,\&quot;reasoning_content\&quot;:null,\&quot;tool_calls\&quot;:[{\&quot;id\&quot;:\&quot;call_9c3d4322d1434fbb96b3065d\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}},{\&quot;id\&quot;:\&quot;call_06e4932985e24682ab2ab69f\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}},{\&quot;id\&quot;:\&quot;call_12532e9c9d5e4e7b8976df6f\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}},{\&quot;id\&quot;:\&quot;call_be01169dad9044a8bad62aa3\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}},{\&quot;id\&quot;:\&quot;call_9c3c12d7aba04a43b9ffa210\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}}]},\&quot;logprobs\&quot;:null,\&quot;finish_reason\&quot;:\&quot;tool_calls\&quot;,\&quot;matched_stop\&quot;:null}],\&quot;usage\&quot;:{\&quot;prompt_tokens\&quot;:258,\&quot;total_tokens\&quot;:356,\&quot;completion_tokens\&quot;:98,\&quot;prompt_tokens_details\&quot;:null}}&quot;),
&quot;model_name&quot;: String(&quot;Qwen/Qwen2.5-1.5B-Instruct&quot;),
&quot;model_provider_name&quot;: String(&quot;sglang&quot;),
&quot;input_tokens&quot;: Number(258),
&quot;output_tokens&quot;: Number(98),
&quot;response_time_ms&quot;: Number(2220),
&quot;ttft_ms&quot;: Null,
&quot;system&quot;: String(&quot;You are a helpful and friendly assistant named Dr. Mehta.\n\nPeople will ask you questions about the weather.\n\nIf asked about the weather, just respond with the tool call. Use the \&quot;get_temperature\&quot; tool.\n\nIf provided with a tool result, use it to respond to the user (e.g. \&quot;The weather in New York is 55 degrees Fahrenheit.\&quot;).&quot;),
&quot;input_messages&quot;: String(&quot;[{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:[{\&quot;type\&quot;:\&quot;text\&quot;,\&quot;text\&quot;:\&quot;What is the temperature like in Tokyo (in Celsius)? Use the `get_temperature` tool.\&quot;}]}]&quot;),
&quot;output&quot;: String(&quot;[{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_9c3d4322d1434fbb96b3065d\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_06e4932985e24682ab2ab69f\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_12532e9c9d5e4e7b8976df6f\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_be01169dad9044a8bad62aa3\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_9c3c12d7aba04a43b9ffa210\&quot;}]&quot;),
&quot;cached&quot;: Bool(false),
&quot;finish_reason&quot;: String(&quot;tool_call&quot;),
}
test providers::sglang::test_tool_use_tool_choice_specific_inference_request ... FAILED
failures:
failures:
providers::sglang::test_tool_use_tool_choice_specific_inference_request
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 2433 filtered out; finished in 2.50s
</system-out>
<system-err>
thread &apos;providers::sglang::test_tool_use_tool_choice_specific_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7008:5:
Expected at most one tool call, found 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
</system-err>
</rerunFailure>
<rerunFailure timestamp="2025-10-17T13:12:28.634-04:00" time="2.925" message="thread &apos;providers::sglang::test_tool_use_tool_choice_specific_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7008:5" type="test failure with exit code 101">thread &apos;providers::sglang::test_tool_use_tool_choice_specific_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7008:5:
Expected at most one tool call, found 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
<system-out>
running 1 test
API response: Object {
&quot;inference_id&quot;: String(&quot;0199f328-9af5-7cd0-a0c4-9be2693369ea&quot;),
&quot;episode_id&quot;: String(&quot;0199f328-9ae3-7030-9076-ed4d6d20da55&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(false),
},
&quot;id&quot;: String(&quot;call_62d3bd9e853a469492284a72&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: false}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_4f77791137bc4de6b39e04e1&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_320d8f7c04b54eabaa54db04&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_96f6cc267c4f491aabf920e5&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_2de9a6a297124bb39a4b8d6f&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
],
&quot;usage&quot;: Object {
&quot;input_tokens&quot;: Number(258),
&quot;output_tokens&quot;: Number(100),
},
&quot;finish_reason&quot;: String(&quot;length&quot;),
}
Connecting to ClickHouse
Connected to ClickHouse in 22.235738ms
ClickHouse - ChatInference: Object {
&quot;id&quot;: String(&quot;0199f328-9af5-7cd0-a0c4-9be2693369ea&quot;),
&quot;function_name&quot;: String(&quot;weather_helper&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;episode_id&quot;: String(&quot;0199f328-9ae3-7030-9076-ed4d6d20da55&quot;),
&quot;input&quot;: String(&quot;{\&quot;system\&quot;:{\&quot;assistant_name\&quot;:\&quot;Dr. Mehta\&quot;},\&quot;messages\&quot;:[{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:[{\&quot;type\&quot;:\&quot;text\&quot;,\&quot;value\&quot;:\&quot;What is the temperature like in Tokyo (in Celsius)? Use the `get_temperature` tool.\&quot;}]}]}&quot;),
&quot;output&quot;: String(&quot;[{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:false},\&quot;id\&quot;:\&quot;call_62d3bd9e853a469492284a72\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: false}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_4f77791137bc4de6b39e04e1\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_320d8f7c04b54eabaa54db04\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_96f6cc267c4f491aabf920e5\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_2de9a6a297124bb39a4b8d6f\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;}]&quot;),
&quot;tool_params&quot;: String(&quot;{\&quot;tools_available\&quot;:[{\&quot;description\&quot;:\&quot;Get the current temperature in a given location\&quot;,\&quot;parameters\&quot;:{\&quot;$schema\&quot;:\&quot;http://json-schema.org/draft-07/schema#\&quot;,\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;location\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The location to get the temperature for (e.g. \\\&quot;New York\\\&quot;)\&quot;},\&quot;units\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The units to get the temperature in (must be \\\&quot;fahrenheit\\\&quot; or \\\&quot;celsius\\\&quot;)\&quot;,\&quot;enum\&quot;:[\&quot;fahrenheit\&quot;,\&quot;celsius\&quot;]}},\&quot;required\&quot;:[\&quot;location\&quot;],\&quot;additionalProperties\&quot;:false},\&quot;name\&quot;:\&quot;get_temperature\&quot;,\&quot;strict\&quot;:false},{\&quot;description\&quot;:\&quot;Do not call this function under any circumstances.\&quot;,\&quot;parameters\&quot;:{\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;fast\&quot;:{\&quot;type\&quot;:\&quot;boolean\&quot;,\&quot;description\&quot;:\&quot;Whether to use a fast method to self-destruct.\&quot;}},\&quot;required\&quot;:[\&quot;fast\&quot;],\&quot;additionalProperties\&quot;:false},\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;strict\&quot;:false}],\&quot;tool_choice\&quot;:{\&quot;specific\&quot;:\&quot;self_destruct\&quot;},\&quot;parallel_tool_calls\&quot;:null}&quot;),
&quot;inference_params&quot;: String(&quot;{\&quot;chat_completion\&quot;:{\&quot;max_tokens\&quot;:100}}&quot;),
&quot;processing_time_ms&quot;: Number(2633),
&quot;tags&quot;: Object {
&quot;tensorzero::variant_pinned&quot;: String(&quot;sglang&quot;),
},
&quot;extra_body&quot;: String(&quot;[]&quot;),
&quot;ttft_ms&quot;: Null,
}
Properties: {
&quot;fast&quot;: Object {
&quot;type&quot;: String(&quot;boolean&quot;),
&quot;description&quot;: String(&quot;Whether to use a fast method to self-destruct.&quot;),
},
}
ClickHouse - ModelInference: Object {
&quot;id&quot;: String(&quot;0199f328-a53e-7083-aea5-3451bdd8259a&quot;),
&quot;inference_id&quot;: String(&quot;0199f328-9af5-7cd0-a0c4-9be2693369ea&quot;),
&quot;raw_request&quot;: String(&quot;{\&quot;messages\&quot;:[{\&quot;role\&quot;:\&quot;system\&quot;,\&quot;content\&quot;:\&quot;You are a helpful and friendly assistant named Dr. Mehta.\\n\\nPeople will ask you questions about the weather.\\n\\nIf asked about the weather, just respond with the tool call. Use the \\\&quot;get_temperature\\\&quot; tool.\\n\\nIf provided with a tool result, use it to respond to the user (e.g. \\\&quot;The weather in New York is 55 degrees Fahrenheit.\\\&quot;).\&quot;},{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:\&quot;What is the temperature like in Tokyo (in Celsius)? Use the `get_temperature` tool.\&quot;}],\&quot;model\&quot;:\&quot;Qwen/Qwen2.5-1.5B-Instruct\&quot;,\&quot;max_tokens\&quot;:100,\&quot;stream\&quot;:false,\&quot;tools\&quot;:[{\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_temperature\&quot;,\&quot;description\&quot;:\&quot;Get the current temperature in a given location\&quot;,\&quot;parameters\&quot;:{\&quot;$schema\&quot;:\&quot;http://json-schema.org/draft-07/schema#\&quot;,\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;location\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The location to get the temperature for (e.g. \\\&quot;New York\\\&quot;)\&quot;},\&quot;units\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The units to get the temperature in (must be \\\&quot;fahrenheit\\\&quot; or \\\&quot;celsius\\\&quot;)\&quot;,\&quot;enum\&quot;:[\&quot;fahrenheit\&quot;,\&quot;celsius\&quot;]}},\&quot;required\&quot;:[\&quot;location\&quot;],\&quot;additionalProperties\&quot;:false}},\&quot;strict\&quot;:false},{\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;description\&quot;:\&quot;Do not call this function under any circumstances.\&quot;,\&quot;parameters\&quot;:{\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;fast\&quot;:{\&quot;type\&quot;:\&quot;boolean\&quot;,\&quot;description\&quot;:\&quot;Whether to use a fast method to self-destruct.\&quot;}},\&quot;required\&quot;:[\&quot;fast\&quot;],\&quot;additionalProperties\&quot;:false}},\&quot;strict\&quot;:false}],\&quot;tool_choice\&quot;:{\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;}}}&quot;),
&quot;raw_response&quot;: String(&quot;{\&quot;id\&quot;:\&quot;08f5502ae8bb47e4be4f9f10fc79ed4e\&quot;,\&quot;object\&quot;:\&quot;chat.completion\&quot;,\&quot;created\&quot;:1760721151,\&quot;model\&quot;:\&quot;Qwen/Qwen2.5-1.5B-Instruct\&quot;,\&quot;choices\&quot;:[{\&quot;index\&quot;:0,\&quot;message\&quot;:{\&quot;role\&quot;:\&quot;assistant\&quot;,\&quot;content\&quot;:null,\&quot;reasoning_content\&quot;:null,\&quot;tool_calls\&quot;:[{\&quot;id\&quot;:\&quot;call_62d3bd9e853a469492284a72\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: false}\&quot;}},{\&quot;id\&quot;:\&quot;call_4f77791137bc4de6b39e04e1\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}},{\&quot;id\&quot;:\&quot;call_320d8f7c04b54eabaa54db04\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}},{\&quot;id\&quot;:\&quot;call_96f6cc267c4f491aabf920e5\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}},{\&quot;id\&quot;:\&quot;call_2de9a6a297124bb39a4b8d6f\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}}]},\&quot;logprobs\&quot;:null,\&quot;finish_reason\&quot;:\&quot;length\&quot;,\&quot;matched_stop\&quot;:null}],\&quot;usage\&quot;:{\&quot;prompt_tokens\&quot;:258,\&quot;total_tokens\&quot;:358,\&quot;completion_tokens\&quot;:100,\&quot;prompt_tokens_details\&quot;:null}}&quot;),
&quot;model_name&quot;: String(&quot;Qwen/Qwen2.5-1.5B-Instruct&quot;),
&quot;model_provider_name&quot;: String(&quot;sglang&quot;),
&quot;input_tokens&quot;: Number(258),
&quot;output_tokens&quot;: Number(100),
&quot;response_time_ms&quot;: Number(2631),
&quot;ttft_ms&quot;: Null,
&quot;system&quot;: String(&quot;You are a helpful and friendly assistant named Dr. Mehta.\n\nPeople will ask you questions about the weather.\n\nIf asked about the weather, just respond with the tool call. Use the \&quot;get_temperature\&quot; tool.\n\nIf provided with a tool result, use it to respond to the user (e.g. \&quot;The weather in New York is 55 degrees Fahrenheit.\&quot;).&quot;),
&quot;input_messages&quot;: String(&quot;[{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:[{\&quot;type\&quot;:\&quot;text\&quot;,\&quot;text\&quot;:\&quot;What is the temperature like in Tokyo (in Celsius)? Use the `get_temperature` tool.\&quot;}]}]&quot;),
&quot;output&quot;: String(&quot;[{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: false}\&quot;,\&quot;id\&quot;:\&quot;call_62d3bd9e853a469492284a72\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_4f77791137bc4de6b39e04e1\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_320d8f7c04b54eabaa54db04\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_96f6cc267c4f491aabf920e5\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_2de9a6a297124bb39a4b8d6f\&quot;}]&quot;),
&quot;cached&quot;: Bool(false),
&quot;finish_reason&quot;: String(&quot;length&quot;),
}
test providers::sglang::test_tool_use_tool_choice_specific_inference_request ... FAILED
failures:
failures:
providers::sglang::test_tool_use_tool_choice_specific_inference_request
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 2433 filtered out; finished in 2.91s
</system-out>
<system-err>
thread &apos;providers::sglang::test_tool_use_tool_choice_specific_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7008:5:
Expected at most one tool call, found 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
</system-err>
</rerunFailure>
<system-out>
running 1 test
API response: Object {
&quot;inference_id&quot;: String(&quot;0199f327-6837-7451-8ebd-71a8a757bff3&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-6813-76a3-8759-abd22362b785&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;content&quot;: Array [
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_fa447fc778624c5e84955c13&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(false),
},
&quot;id&quot;: String(&quot;call_8e61e7ee4efe44f792bbcb83&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: false}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_66d5ad8e339543c2b7184587&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(false),
},
&quot;id&quot;: String(&quot;call_7ccbd2cf6862474d86370ea6&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: false}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
Object {
&quot;type&quot;: String(&quot;tool_call&quot;),
&quot;arguments&quot;: Object {
&quot;fast&quot;: Bool(true),
},
&quot;id&quot;: String(&quot;call_86975f47e5784307ae702698&quot;),
&quot;name&quot;: String(&quot;self_destruct&quot;),
&quot;raw_arguments&quot;: String(&quot;{\&quot;fast\&quot;: true}&quot;),
&quot;raw_name&quot;: String(&quot;self_destruct&quot;),
},
],
&quot;usage&quot;: Object {
&quot;input_tokens&quot;: Number(258),
&quot;output_tokens&quot;: Number(100),
},
&quot;finish_reason&quot;: String(&quot;length&quot;),
}
Connecting to ClickHouse
Connected to ClickHouse in 22.30832ms
ClickHouse - ChatInference: Object {
&quot;id&quot;: String(&quot;0199f327-6837-7451-8ebd-71a8a757bff3&quot;),
&quot;function_name&quot;: String(&quot;weather_helper&quot;),
&quot;variant_name&quot;: String(&quot;sglang&quot;),
&quot;episode_id&quot;: String(&quot;0199f327-6813-76a3-8759-abd22362b785&quot;),
&quot;input&quot;: String(&quot;{\&quot;system\&quot;:{\&quot;assistant_name\&quot;:\&quot;Dr. Mehta\&quot;},\&quot;messages\&quot;:[{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:[{\&quot;type\&quot;:\&quot;text\&quot;,\&quot;value\&quot;:\&quot;What is the temperature like in Tokyo (in Celsius)? Use the `get_temperature` tool.\&quot;}]}]}&quot;),
&quot;output&quot;: String(&quot;[{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_fa447fc778624c5e84955c13\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:false},\&quot;id\&quot;:\&quot;call_8e61e7ee4efe44f792bbcb83\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: false}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_66d5ad8e339543c2b7184587\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:false},\&quot;id\&quot;:\&quot;call_7ccbd2cf6862474d86370ea6\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: false}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;arguments\&quot;:{\&quot;fast\&quot;:true},\&quot;id\&quot;:\&quot;call_86975f47e5784307ae702698\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;raw_arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;raw_name\&quot;:\&quot;self_destruct\&quot;}]&quot;),
&quot;tool_params&quot;: String(&quot;{\&quot;tools_available\&quot;:[{\&quot;description\&quot;:\&quot;Get the current temperature in a given location\&quot;,\&quot;parameters\&quot;:{\&quot;$schema\&quot;:\&quot;http://json-schema.org/draft-07/schema#\&quot;,\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;location\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The location to get the temperature for (e.g. \\\&quot;New York\\\&quot;)\&quot;},\&quot;units\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The units to get the temperature in (must be \\\&quot;fahrenheit\\\&quot; or \\\&quot;celsius\\\&quot;)\&quot;,\&quot;enum\&quot;:[\&quot;fahrenheit\&quot;,\&quot;celsius\&quot;]}},\&quot;required\&quot;:[\&quot;location\&quot;],\&quot;additionalProperties\&quot;:false},\&quot;name\&quot;:\&quot;get_temperature\&quot;,\&quot;strict\&quot;:false},{\&quot;description\&quot;:\&quot;Do not call this function under any circumstances.\&quot;,\&quot;parameters\&quot;:{\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;fast\&quot;:{\&quot;type\&quot;:\&quot;boolean\&quot;,\&quot;description\&quot;:\&quot;Whether to use a fast method to self-destruct.\&quot;}},\&quot;required\&quot;:[\&quot;fast\&quot;],\&quot;additionalProperties\&quot;:false},\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;strict\&quot;:false}],\&quot;tool_choice\&quot;:{\&quot;specific\&quot;:\&quot;self_destruct\&quot;},\&quot;parallel_tool_calls\&quot;:null}&quot;),
&quot;inference_params&quot;: String(&quot;{\&quot;chat_completion\&quot;:{\&quot;max_tokens\&quot;:100}}&quot;),
&quot;processing_time_ms&quot;: Number(4443),
&quot;tags&quot;: Object {
&quot;tensorzero::variant_pinned&quot;: String(&quot;sglang&quot;),
},
&quot;extra_body&quot;: String(&quot;[]&quot;),
&quot;ttft_ms&quot;: Null,
}
Properties: {
&quot;fast&quot;: Object {
&quot;type&quot;: String(&quot;boolean&quot;),
&quot;description&quot;: String(&quot;Whether to use a fast method to self-destruct.&quot;),
},
}
ClickHouse - ModelInference: Object {
&quot;id&quot;: String(&quot;0199f327-7992-7a82-9982-76ae4083ec5f&quot;),
&quot;inference_id&quot;: String(&quot;0199f327-6837-7451-8ebd-71a8a757bff3&quot;),
&quot;raw_request&quot;: String(&quot;{\&quot;messages\&quot;:[{\&quot;role\&quot;:\&quot;system\&quot;,\&quot;content\&quot;:\&quot;You are a helpful and friendly assistant named Dr. Mehta.\\n\\nPeople will ask you questions about the weather.\\n\\nIf asked about the weather, just respond with the tool call. Use the \\\&quot;get_temperature\\\&quot; tool.\\n\\nIf provided with a tool result, use it to respond to the user (e.g. \\\&quot;The weather in New York is 55 degrees Fahrenheit.\\\&quot;).\&quot;},{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:\&quot;What is the temperature like in Tokyo (in Celsius)? Use the `get_temperature` tool.\&quot;}],\&quot;model\&quot;:\&quot;Qwen/Qwen2.5-1.5B-Instruct\&quot;,\&quot;max_tokens\&quot;:100,\&quot;stream\&quot;:false,\&quot;tools\&quot;:[{\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;get_temperature\&quot;,\&quot;description\&quot;:\&quot;Get the current temperature in a given location\&quot;,\&quot;parameters\&quot;:{\&quot;$schema\&quot;:\&quot;http://json-schema.org/draft-07/schema#\&quot;,\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;location\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The location to get the temperature for (e.g. \\\&quot;New York\\\&quot;)\&quot;},\&quot;units\&quot;:{\&quot;type\&quot;:\&quot;string\&quot;,\&quot;description\&quot;:\&quot;The units to get the temperature in (must be \\\&quot;fahrenheit\\\&quot; or \\\&quot;celsius\\\&quot;)\&quot;,\&quot;enum\&quot;:[\&quot;fahrenheit\&quot;,\&quot;celsius\&quot;]}},\&quot;required\&quot;:[\&quot;location\&quot;],\&quot;additionalProperties\&quot;:false}},\&quot;strict\&quot;:false},{\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;description\&quot;:\&quot;Do not call this function under any circumstances.\&quot;,\&quot;parameters\&quot;:{\&quot;type\&quot;:\&quot;object\&quot;,\&quot;properties\&quot;:{\&quot;fast\&quot;:{\&quot;type\&quot;:\&quot;boolean\&quot;,\&quot;description\&quot;:\&quot;Whether to use a fast method to self-destruct.\&quot;}},\&quot;required\&quot;:[\&quot;fast\&quot;],\&quot;additionalProperties\&quot;:false}},\&quot;strict\&quot;:false}],\&quot;tool_choice\&quot;:{\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;}}}&quot;),
&quot;raw_response&quot;: String(&quot;{\&quot;id\&quot;:\&quot;b977beba84fc400ebf6706c51878f7a1\&quot;,\&quot;object\&quot;:\&quot;chat.completion\&quot;,\&quot;created\&quot;:1760721074,\&quot;model\&quot;:\&quot;Qwen/Qwen2.5-1.5B-Instruct\&quot;,\&quot;choices\&quot;:[{\&quot;index\&quot;:0,\&quot;message\&quot;:{\&quot;role\&quot;:\&quot;assistant\&quot;,\&quot;content\&quot;:null,\&quot;reasoning_content\&quot;:null,\&quot;tool_calls\&quot;:[{\&quot;id\&quot;:\&quot;call_fa447fc778624c5e84955c13\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}},{\&quot;id\&quot;:\&quot;call_8e61e7ee4efe44f792bbcb83\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: false}\&quot;}},{\&quot;id\&quot;:\&quot;call_66d5ad8e339543c2b7184587\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}},{\&quot;id\&quot;:\&quot;call_7ccbd2cf6862474d86370ea6\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: false}\&quot;}},{\&quot;id\&quot;:\&quot;call_86975f47e5784307ae702698\&quot;,\&quot;index\&quot;:null,\&quot;type\&quot;:\&quot;function\&quot;,\&quot;function\&quot;:{\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;}}]},\&quot;logprobs\&quot;:null,\&quot;finish_reason\&quot;:\&quot;length\&quot;,\&quot;matched_stop\&quot;:null}],\&quot;usage\&quot;:{\&quot;prompt_tokens\&quot;:258,\&quot;total_tokens\&quot;:358,\&quot;completion_tokens\&quot;:100,\&quot;prompt_tokens_details\&quot;:null}}&quot;),
&quot;model_name&quot;: String(&quot;Qwen/Qwen2.5-1.5B-Instruct&quot;),
&quot;model_provider_name&quot;: String(&quot;sglang&quot;),
&quot;input_tokens&quot;: Number(258),
&quot;output_tokens&quot;: Number(100),
&quot;response_time_ms&quot;: Number(4441),
&quot;ttft_ms&quot;: Null,
&quot;system&quot;: String(&quot;You are a helpful and friendly assistant named Dr. Mehta.\n\nPeople will ask you questions about the weather.\n\nIf asked about the weather, just respond with the tool call. Use the \&quot;get_temperature\&quot; tool.\n\nIf provided with a tool result, use it to respond to the user (e.g. \&quot;The weather in New York is 55 degrees Fahrenheit.\&quot;).&quot;),
&quot;input_messages&quot;: String(&quot;[{\&quot;role\&quot;:\&quot;user\&quot;,\&quot;content\&quot;:[{\&quot;type\&quot;:\&quot;text\&quot;,\&quot;text\&quot;:\&quot;What is the temperature like in Tokyo (in Celsius)? Use the `get_temperature` tool.\&quot;}]}]&quot;),
&quot;output&quot;: String(&quot;[{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_fa447fc778624c5e84955c13\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: false}\&quot;,\&quot;id\&quot;:\&quot;call_8e61e7ee4efe44f792bbcb83\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_66d5ad8e339543c2b7184587\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: false}\&quot;,\&quot;id\&quot;:\&quot;call_7ccbd2cf6862474d86370ea6\&quot;},{\&quot;type\&quot;:\&quot;tool_call\&quot;,\&quot;name\&quot;:\&quot;self_destruct\&quot;,\&quot;arguments\&quot;:\&quot;{\\\&quot;fast\\\&quot;: true}\&quot;,\&quot;id\&quot;:\&quot;call_86975f47e5784307ae702698\&quot;}]&quot;),
&quot;cached&quot;: Bool(false),
&quot;finish_reason&quot;: String(&quot;length&quot;),
}
test providers::sglang::test_tool_use_tool_choice_specific_inference_request ... FAILED
failures:
failures:
providers::sglang::test_tool_use_tool_choice_specific_inference_request
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 2433 filtered out; finished in 4.75s
</system-out>
<system-err>
thread &apos;providers::sglang::test_tool_use_tool_choice_specific_inference_request&apos; panicked at tensorzero-core/tests/e2e/providers/common.rs:7008:5:
Expected at most one tool call, found 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
</system-err>
</testcase>
</testsuite>
</testsuites>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment