@@ -54,7 +54,10 @@ def test_method_create_with_all_params_overload_1(self, client: Anthropic) -> No
5454 {
5555 "text" : "Today's date is 2024-06-01." ,
5656 "type" : "text" ,
57- "cache_control" : {"type" : "ephemeral" },
57+ "cache_control" : {
58+ "type" : "ephemeral" ,
59+ "ttl" : "5m" ,
60+ },
5861 "citations" : [
5962 {
6063 "cited_text" : "cited_text" ,
@@ -93,7 +96,10 @@ def test_method_create_with_all_params_overload_1(self, client: Anthropic) -> No
9396 "required" : ["location" ],
9497 },
9598 "name" : "name" ,
96- "cache_control" : {"type" : "ephemeral" },
99+ "cache_control" : {
100+ "type" : "ephemeral" ,
101+ "ttl" : "5m" ,
102+ },
97103 "description" : "Get the current weather in a given location" ,
98104 "type" : "custom" ,
99105 }
@@ -175,7 +181,10 @@ def test_method_create_with_all_params_overload_2(self, client: Anthropic) -> No
175181 {
176182 "text" : "Today's date is 2024-06-01." ,
177183 "type" : "text" ,
178- "cache_control" : {"type" : "ephemeral" },
184+ "cache_control" : {
185+ "type" : "ephemeral" ,
186+ "ttl" : "5m" ,
187+ },
179188 "citations" : [
180189 {
181190 "cited_text" : "cited_text" ,
@@ -214,7 +223,10 @@ def test_method_create_with_all_params_overload_2(self, client: Anthropic) -> No
214223 "required" : ["location" ],
215224 },
216225 "name" : "name" ,
217- "cache_control" : {"type" : "ephemeral" },
226+ "cache_control" : {
227+ "type" : "ephemeral" ,
228+ "ttl" : "5m" ,
229+ },
218230 "description" : "Get the current weather in a given location" ,
219231 "type" : "custom" ,
220232 }
@@ -300,7 +312,10 @@ def test_method_count_tokens_with_all_params(self, client: Anthropic) -> None:
300312 {
301313 "text" : "Today's date is 2024-06-01." ,
302314 "type" : "text" ,
303- "cache_control" : {"type" : "ephemeral" },
315+ "cache_control" : {
316+ "type" : "ephemeral" ,
317+ "ttl" : "5m" ,
318+ },
304319 "citations" : [
305320 {
306321 "cited_text" : "cited_text" ,
@@ -338,7 +353,10 @@ def test_method_count_tokens_with_all_params(self, client: Anthropic) -> None:
338353 "required" : ["location" ],
339354 },
340355 "name" : "name" ,
341- "cache_control" : {"type" : "ephemeral" },
356+ "cache_control" : {
357+ "type" : "ephemeral" ,
358+ "ttl" : "5m" ,
359+ },
342360 "description" : "Get the current weather in a given location" ,
343361 "type" : "custom" ,
344362 }
@@ -421,7 +439,10 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn
421439 {
422440 "text" : "Today's date is 2024-06-01." ,
423441 "type" : "text" ,
424- "cache_control" : {"type" : "ephemeral" },
442+ "cache_control" : {
443+ "type" : "ephemeral" ,
444+ "ttl" : "5m" ,
445+ },
425446 "citations" : [
426447 {
427448 "cited_text" : "cited_text" ,
@@ -460,7 +481,10 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn
460481 "required" : ["location" ],
461482 },
462483 "name" : "name" ,
463- "cache_control" : {"type" : "ephemeral" },
484+ "cache_control" : {
485+ "type" : "ephemeral" ,
486+ "ttl" : "5m" ,
487+ },
464488 "description" : "Get the current weather in a given location" ,
465489 "type" : "custom" ,
466490 }
@@ -542,7 +566,10 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn
542566 {
543567 "text" : "Today's date is 2024-06-01." ,
544568 "type" : "text" ,
545- "cache_control" : {"type" : "ephemeral" },
569+ "cache_control" : {
570+ "type" : "ephemeral" ,
571+ "ttl" : "5m" ,
572+ },
546573 "citations" : [
547574 {
548575 "cited_text" : "cited_text" ,
@@ -581,7 +608,10 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn
581608 "required" : ["location" ],
582609 },
583610 "name" : "name" ,
584- "cache_control" : {"type" : "ephemeral" },
611+ "cache_control" : {
612+ "type" : "ephemeral" ,
613+ "ttl" : "5m" ,
614+ },
585615 "description" : "Get the current weather in a given location" ,
586616 "type" : "custom" ,
587617 }
@@ -667,7 +697,10 @@ async def test_method_count_tokens_with_all_params(self, async_client: AsyncAnth
667697 {
668698 "text" : "Today's date is 2024-06-01." ,
669699 "type" : "text" ,
670- "cache_control" : {"type" : "ephemeral" },
700+ "cache_control" : {
701+ "type" : "ephemeral" ,
702+ "ttl" : "5m" ,
703+ },
671704 "citations" : [
672705 {
673706 "cited_text" : "cited_text" ,
@@ -705,7 +738,10 @@ async def test_method_count_tokens_with_all_params(self, async_client: AsyncAnth
705738 "required" : ["location" ],
706739 },
707740 "name" : "name" ,
708- "cache_control" : {"type" : "ephemeral" },
741+ "cache_control" : {
742+ "type" : "ephemeral" ,
743+ "ttl" : "5m" ,
744+ },
709745 "description" : "Get the current weather in a given location" ,
710746 "type" : "custom" ,
711747 }
0 commit comments