2020 scenario_start_run_params ,
2121 scenario_list_public_params ,
2222)
23+ from .scorers import (
24+ ScorersResource ,
25+ AsyncScorersResource ,
26+ ScorersResourceWithRawResponse ,
27+ AsyncScorersResourceWithRawResponse ,
28+ ScorersResourceWithStreamingResponse ,
29+ AsyncScorersResourceWithStreamingResponse ,
30+ )
2331from ..._types import NOT_GIVEN , Body , Query , Headers , NotGiven
2432from ..._utils import (
2533 maybe_transform ,
@@ -50,6 +58,10 @@ class ScenariosResource(SyncAPIResource):
5058 def runs (self ) -> RunsResource :
5159 return RunsResource (self ._client )
5260
61+ @cached_property
62+ def scorers (self ) -> ScorersResource :
63+ return ScorersResource (self ._client )
64+
5365 @cached_property
5466 def with_raw_response (self ) -> ScenariosResourceWithRawResponse :
5567 """
@@ -381,6 +393,10 @@ class AsyncScenariosResource(AsyncAPIResource):
381393 def runs (self ) -> AsyncRunsResource :
382394 return AsyncRunsResource (self ._client )
383395
396+ @cached_property
397+ def scorers (self ) -> AsyncScorersResource :
398+ return AsyncScorersResource (self ._client )
399+
384400 @cached_property
385401 def with_raw_response (self ) -> AsyncScenariosResourceWithRawResponse :
386402 """
@@ -708,6 +724,10 @@ def __init__(self, scenarios: ScenariosResource) -> None:
708724 def runs (self ) -> RunsResourceWithRawResponse :
709725 return RunsResourceWithRawResponse (self ._scenarios .runs )
710726
727+ @cached_property
728+ def scorers (self ) -> ScorersResourceWithRawResponse :
729+ return ScorersResourceWithRawResponse (self ._scenarios .scorers )
730+
711731
712732class AsyncScenariosResourceWithRawResponse :
713733 def __init__ (self , scenarios : AsyncScenariosResource ) -> None :
@@ -733,6 +753,10 @@ def __init__(self, scenarios: AsyncScenariosResource) -> None:
733753 def runs (self ) -> AsyncRunsResourceWithRawResponse :
734754 return AsyncRunsResourceWithRawResponse (self ._scenarios .runs )
735755
756+ @cached_property
757+ def scorers (self ) -> AsyncScorersResourceWithRawResponse :
758+ return AsyncScorersResourceWithRawResponse (self ._scenarios .scorers )
759+
736760
737761class ScenariosResourceWithStreamingResponse :
738762 def __init__ (self , scenarios : ScenariosResource ) -> None :
@@ -758,6 +782,10 @@ def __init__(self, scenarios: ScenariosResource) -> None:
758782 def runs (self ) -> RunsResourceWithStreamingResponse :
759783 return RunsResourceWithStreamingResponse (self ._scenarios .runs )
760784
785+ @cached_property
786+ def scorers (self ) -> ScorersResourceWithStreamingResponse :
787+ return ScorersResourceWithStreamingResponse (self ._scenarios .scorers )
788+
761789
762790class AsyncScenariosResourceWithStreamingResponse :
763791 def __init__ (self , scenarios : AsyncScenariosResource ) -> None :
@@ -782,3 +810,7 @@ def __init__(self, scenarios: AsyncScenariosResource) -> None:
782810 @cached_property
783811 def runs (self ) -> AsyncRunsResourceWithStreamingResponse :
784812 return AsyncRunsResourceWithStreamingResponse (self ._scenarios .runs )
813+
814+ @cached_property
815+ def scorers (self ) -> AsyncScorersResourceWithStreamingResponse :
816+ return AsyncScorersResourceWithStreamingResponse (self ._scenarios .scorers )
0 commit comments