eval-studio-client 1.1.0a5__py3-none-any.whl → 1.1.0a7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. eval_studio_client/api/__init__.py +7 -3
  2. eval_studio_client/api/api/__init__.py +0 -1
  3. eval_studio_client/api/api/dashboard_service_api.py +17 -0
  4. eval_studio_client/api/api/test_service_api.py +34 -0
  5. eval_studio_client/api/api/workflow_service_api.py +510 -0
  6. eval_studio_client/api/docs/DashboardServiceApi.md +4 -2
  7. eval_studio_client/api/docs/PromptGenerationServiceAutoGeneratePromptsRequest.md +1 -1
  8. eval_studio_client/api/docs/RequiredTheDashboardToUpdate.md +1 -0
  9. eval_studio_client/api/docs/RequiredTheTestToUpdate.md +1 -0
  10. eval_studio_client/api/docs/TestServiceApi.md +8 -4
  11. eval_studio_client/api/docs/TestServiceGenerateTestCasesRequest.md +1 -1
  12. eval_studio_client/api/docs/V1Context.md +9 -4
  13. eval_studio_client/api/docs/V1Dashboard.md +1 -0
  14. eval_studio_client/api/docs/V1DashboardType.md +12 -0
  15. eval_studio_client/api/docs/V1DependencyList.md +30 -0
  16. eval_studio_client/api/docs/V1Evaluator.md +2 -0
  17. eval_studio_client/api/docs/V1GetGuardrailsConfigurationResponse.md +29 -0
  18. eval_studio_client/api/docs/V1LeaderboardReportModel.md +0 -2
  19. eval_studio_client/api/docs/V1ListWorkflowDependenciesResponse.md +30 -0
  20. eval_studio_client/api/docs/V1RepeatedContext.md +29 -0
  21. eval_studio_client/api/docs/V1Test.md +1 -0
  22. eval_studio_client/api/docs/V1TestType.md +12 -0
  23. eval_studio_client/api/docs/V1WorkflowDependency.md +30 -0
  24. eval_studio_client/api/docs/V1WorkflowEdgeType.md +1 -1
  25. eval_studio_client/api/docs/V1WorkflowNodeArtifact.md +1 -0
  26. eval_studio_client/api/docs/WorkflowServiceApi.md +135 -0
  27. eval_studio_client/api/models/__init__.py +7 -2
  28. eval_studio_client/api/models/prompt_generation_service_auto_generate_prompts_request.py +3 -2
  29. eval_studio_client/api/models/required_the_dashboard_to_update.py +5 -2
  30. eval_studio_client/api/models/required_the_test_to_update.py +5 -2
  31. eval_studio_client/api/models/test_service_generate_test_cases_request.py +10 -2
  32. eval_studio_client/api/models/v1_context.py +16 -6
  33. eval_studio_client/api/models/v1_dashboard.py +5 -2
  34. eval_studio_client/api/models/v1_dashboard_type.py +38 -0
  35. eval_studio_client/api/models/{generated_questions_validation_service_validate_generated_questions_request.py → v1_dependency_list.py} +14 -14
  36. eval_studio_client/api/models/v1_evaluator.py +11 -3
  37. eval_studio_client/api/models/v1_get_guardrails_configuration_response.py +87 -0
  38. eval_studio_client/api/models/v1_leaderboard_report_model.py +2 -10
  39. eval_studio_client/api/models/v1_list_workflow_dependencies_response.py +105 -0
  40. eval_studio_client/api/models/{v1_generated_test_case.py → v1_repeated_context.py} +12 -18
  41. eval_studio_client/api/models/v1_test.py +5 -2
  42. eval_studio_client/api/models/v1_test_type.py +38 -0
  43. eval_studio_client/api/models/v1_workflow_dependency.py +89 -0
  44. eval_studio_client/api/models/v1_workflow_edge_type.py +3 -2
  45. eval_studio_client/api/models/v1_workflow_node_artifact.py +6 -2
  46. eval_studio_client/api/test/test_prompt_generation_service_auto_generate_prompts_request.py +10 -2
  47. eval_studio_client/api/test/test_required_the_dashboard_to_update.py +2 -1
  48. eval_studio_client/api/test/test_required_the_test_to_update.py +2 -1
  49. eval_studio_client/api/test/test_required_the_updated_workflow.py +2 -1
  50. eval_studio_client/api/test/test_required_the_updated_workflow_node.py +2 -1
  51. eval_studio_client/api/test/test_test_service_generate_test_cases_request.py +10 -1
  52. eval_studio_client/api/test/test_v1_batch_delete_dashboards_response.py +2 -1
  53. eval_studio_client/api/test/test_v1_batch_delete_evaluators_response.py +3 -1
  54. eval_studio_client/api/test/test_v1_batch_delete_tests_response.py +2 -1
  55. eval_studio_client/api/test/test_v1_batch_get_dashboards_response.py +2 -1
  56. eval_studio_client/api/test/test_v1_batch_get_tests_response.py +2 -1
  57. eval_studio_client/api/test/test_v1_batch_import_tests_response.py +2 -1
  58. eval_studio_client/api/test/test_v1_clone_test_response.py +2 -1
  59. eval_studio_client/api/test/test_v1_context.py +6 -1
  60. eval_studio_client/api/test/test_v1_create_dashboard_response.py +2 -1
  61. eval_studio_client/api/test/test_v1_create_evaluator_response.py +3 -1
  62. eval_studio_client/api/test/test_v1_create_test_response.py +2 -1
  63. eval_studio_client/api/test/test_v1_dashboard.py +2 -1
  64. eval_studio_client/api/test/test_v1_dashboard_type.py +33 -0
  65. eval_studio_client/api/test/test_v1_delete_dashboard_response.py +2 -1
  66. eval_studio_client/api/test/test_v1_delete_evaluator_response.py +3 -1
  67. eval_studio_client/api/test/test_v1_delete_test_response.py +2 -1
  68. eval_studio_client/api/test/test_v1_dependency_list.py +56 -0
  69. eval_studio_client/api/test/test_v1_evaluator.py +3 -1
  70. eval_studio_client/api/test/test_v1_get_dashboard_response.py +2 -1
  71. eval_studio_client/api/test/test_v1_get_evaluator_response.py +3 -1
  72. eval_studio_client/api/test/test_v1_get_guardrails_configuration_response.py +51 -0
  73. eval_studio_client/api/test/test_v1_get_leaderboard_report_response.py +1 -3
  74. eval_studio_client/api/test/test_v1_get_test_response.py +2 -1
  75. eval_studio_client/api/test/test_v1_leaderboard_report.py +1 -3
  76. eval_studio_client/api/test/test_v1_leaderboard_report_model.py +1 -3
  77. eval_studio_client/api/test/test_v1_list_dashboards_response.py +2 -1
  78. eval_studio_client/api/test/test_v1_list_evaluators_response.py +3 -1
  79. eval_studio_client/api/test/test_v1_list_most_recent_dashboards_response.py +2 -1
  80. eval_studio_client/api/test/test_v1_list_most_recent_tests_response.py +2 -1
  81. eval_studio_client/api/test/test_v1_list_tests_response.py +2 -1
  82. eval_studio_client/api/test/test_v1_list_workflow_dependencies_response.py +93 -0
  83. eval_studio_client/api/test/test_v1_perturb_test_in_place_response.py +2 -1
  84. eval_studio_client/api/test/test_v1_perturb_test_response.py +2 -1
  85. eval_studio_client/api/test/test_v1_repeated_context.py +62 -0
  86. eval_studio_client/api/test/test_v1_test.py +2 -1
  87. eval_studio_client/api/test/test_v1_test_type.py +33 -0
  88. eval_studio_client/api/test/test_v1_update_dashboard_response.py +2 -1
  89. eval_studio_client/api/test/test_v1_update_test_response.py +2 -1
  90. eval_studio_client/api/test/test_v1_workflow.py +2 -1
  91. eval_studio_client/api/test/test_v1_workflow_dependency.py +52 -0
  92. eval_studio_client/api/test/test_v1_workflow_node.py +2 -1
  93. eval_studio_client/api/test/test_v1_workflow_node_artifact.py +2 -1
  94. eval_studio_client/api/test/test_v1_workflow_node_artifacts.py +2 -1
  95. eval_studio_client/api/test/test_workflow_service_api.py +13 -0
  96. eval_studio_client/client.py +11 -2
  97. eval_studio_client/gen/openapiv2/eval_studio.swagger.json +241 -92
  98. {eval_studio_client-1.1.0a5.dist-info → eval_studio_client-1.1.0a7.dist-info}/METADATA +1 -1
  99. {eval_studio_client-1.1.0a5.dist-info → eval_studio_client-1.1.0a7.dist-info}/RECORD +100 -88
  100. eval_studio_client/api/api/generated_questions_validation_service_api.py +0 -321
  101. eval_studio_client/api/docs/GeneratedQuestionsValidationServiceApi.md +0 -78
  102. eval_studio_client/api/docs/GeneratedQuestionsValidationServiceValidateGeneratedQuestionsRequest.md +0 -30
  103. eval_studio_client/api/docs/V1GeneratedTestCase.md +0 -30
  104. eval_studio_client/api/test/test_generated_questions_validation_service_api.py +0 -37
  105. eval_studio_client/api/test/test_generated_questions_validation_service_validate_generated_questions_request.py +0 -83
  106. eval_studio_client/api/test/test_v1_generated_test_case.py +0 -79
  107. {eval_studio_client-1.1.0a5.dist-info → eval_studio_client-1.1.0a7.dist-info}/WHEEL +0 -0
@@ -0,0 +1,93 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ ai/h2o/eval_studio/v1/insight.proto
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: version not set
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ import unittest
16
+
17
+ from eval_studio_client.api.models.v1_list_workflow_dependencies_response import V1ListWorkflowDependenciesResponse
18
+
19
+ class TestV1ListWorkflowDependenciesResponse(unittest.TestCase):
20
+ """V1ListWorkflowDependenciesResponse unit test stubs"""
21
+
22
+ def setUp(self):
23
+ pass
24
+
25
+ def tearDown(self):
26
+ pass
27
+
28
+ def make_instance(self, include_optional) -> V1ListWorkflowDependenciesResponse:
29
+ """Test V1ListWorkflowDependenciesResponse
30
+ include_option is a boolean, when False only required
31
+ params are included, when True both required and
32
+ optional params are included """
33
+ # uncomment below to create an instance of `V1ListWorkflowDependenciesResponse`
34
+ """
35
+ model = V1ListWorkflowDependenciesResponse()
36
+ if include_optional:
37
+ return V1ListWorkflowDependenciesResponse(
38
+ nodes = [
39
+ eval_studio_client.api.models.v1_workflow_node.v1WorkflowNode(
40
+ name = '',
41
+ parent = '',
42
+ display_name = '',
43
+ description = '',
44
+ create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
45
+ creator = '',
46
+ update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
47
+ updater = '',
48
+ delete_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
49
+ deleter = '',
50
+ type = 'WORKFLOW_NODE_TYPE_UNSPECIFIED',
51
+ parameters = eval_studio_client.api.models.parameters.parameters(),
52
+ outputs = eval_studio_client.api.models.outputs.outputs(),
53
+ output_artifacts = [
54
+ eval_studio_client.api.models.v1_workflow_node_artifact.v1WorkflowNodeArtifact(
55
+ name = '',
56
+ parent = '',
57
+ display_name = '',
58
+ description = '',
59
+ create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
60
+ creator = '',
61
+ update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
62
+ updater = '',
63
+ delete_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
64
+ deleter = '',
65
+ mime_type = '', )
66
+ ],
67
+ status = 'WORKFLOW_NODE_STATUS_UNSPECIFIED',
68
+ attributes = eval_studio_client.api.models.v1_workflow_node_attributes.v1WorkflowNodeAttributes(
69
+ can_delete = True, ),
70
+ processed_by_operation = '', )
71
+ ],
72
+ dependencies = [
73
+ eval_studio_client.api.models.v1_dependency_list.v1DependencyList(
74
+ node = '',
75
+ dependencies = [
76
+ eval_studio_client.api.models.v1_workflow_dependency.v1WorkflowDependency(
77
+ name = '',
78
+ optional = True, )
79
+ ], )
80
+ ]
81
+ )
82
+ else:
83
+ return V1ListWorkflowDependenciesResponse(
84
+ )
85
+ """
86
+
87
+ def testV1ListWorkflowDependenciesResponse(self):
88
+ """Test V1ListWorkflowDependenciesResponse"""
89
+ # inst_req_only = self.make_instance(include_optional=False)
90
+ # inst_req_and_optional = self.make_instance(include_optional=True)
91
+
92
+ if __name__ == '__main__':
93
+ unittest.main()
@@ -51,7 +51,8 @@ class TestV1PerturbTestInPlaceResponse(unittest.TestCase):
51
51
  tags = [
52
52
  ''
53
53
  ],
54
- demo = True, )
54
+ demo = True,
55
+ type = 'TEST_TYPE_UNSPECIFIED', )
55
56
  )
56
57
  else:
57
58
  return V1PerturbTestInPlaceResponse(
@@ -51,7 +51,8 @@ class TestV1PerturbTestResponse(unittest.TestCase):
51
51
  tags = [
52
52
  ''
53
53
  ],
54
- demo = True, )
54
+ demo = True,
55
+ type = 'TEST_TYPE_UNSPECIFIED', )
55
56
  )
56
57
  else:
57
58
  return V1PerturbTestResponse(
@@ -0,0 +1,62 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ ai/h2o/eval_studio/v1/insight.proto
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: version not set
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ import unittest
16
+
17
+ from eval_studio_client.api.models.v1_repeated_context import V1RepeatedContext
18
+
19
+ class TestV1RepeatedContext(unittest.TestCase):
20
+ """V1RepeatedContext unit test stubs"""
21
+
22
+ def setUp(self):
23
+ pass
24
+
25
+ def tearDown(self):
26
+ pass
27
+
28
+ def make_instance(self, include_optional) -> V1RepeatedContext:
29
+ """Test V1RepeatedContext
30
+ include_option is a boolean, when False only required
31
+ params are included, when True both required and
32
+ optional params are included """
33
+ # uncomment below to create an instance of `V1RepeatedContext`
34
+ """
35
+ model = V1RepeatedContext()
36
+ if include_optional:
37
+ return V1RepeatedContext(
38
+ content = [
39
+ eval_studio_client.api.models.v1_context.v1Context(
40
+ collection_id = '',
41
+ chunk_id = 56,
42
+ score = 1.337,
43
+ content = '',
44
+ document_id = '',
45
+ document_name = '',
46
+ pages = '',
47
+ topic = '',
48
+ topic_id = 56, )
49
+ ]
50
+ )
51
+ else:
52
+ return V1RepeatedContext(
53
+ )
54
+ """
55
+
56
+ def testV1RepeatedContext(self):
57
+ """Test V1RepeatedContext"""
58
+ # inst_req_only = self.make_instance(include_optional=False)
59
+ # inst_req_and_optional = self.make_instance(include_optional=True)
60
+
61
+ if __name__ == '__main__':
62
+ unittest.main()
@@ -50,7 +50,8 @@ class TestV1Test(unittest.TestCase):
50
50
  tags = [
51
51
  ''
52
52
  ],
53
- demo = True
53
+ demo = True,
54
+ type = 'TEST_TYPE_UNSPECIFIED'
54
55
  )
55
56
  else:
56
57
  return V1Test(
@@ -0,0 +1,33 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ ai/h2o/eval_studio/v1/insight.proto
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: version not set
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ import unittest
16
+
17
+ from eval_studio_client.api.models.v1_test_type import V1TestType
18
+
19
+ class TestV1TestType(unittest.TestCase):
20
+ """V1TestType unit test stubs"""
21
+
22
+ def setUp(self):
23
+ pass
24
+
25
+ def tearDown(self):
26
+ pass
27
+
28
+ def testV1TestType(self):
29
+ """Test V1TestType"""
30
+ # inst = V1TestType()
31
+
32
+ if __name__ == '__main__':
33
+ unittest.main()
@@ -50,7 +50,8 @@ class TestV1UpdateDashboardResponse(unittest.TestCase):
50
50
  ''
51
51
  ],
52
52
  create_operation = '',
53
- demo = True, )
53
+ demo = True,
54
+ type = 'DASHBOARD_TYPE_UNSPECIFIED', )
54
55
  )
55
56
  else:
56
57
  return V1UpdateDashboardResponse(
@@ -51,7 +51,8 @@ class TestV1UpdateTestResponse(unittest.TestCase):
51
51
  tags = [
52
52
  ''
53
53
  ],
54
- demo = True, )
54
+ demo = True,
55
+ type = 'TEST_TYPE_UNSPECIFIED', )
55
56
  )
56
57
  else:
57
58
  return V1UpdateTestResponse(
@@ -69,7 +69,8 @@ class TestV1Workflow(unittest.TestCase):
69
69
  updater = '',
70
70
  delete_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
71
71
  deleter = '',
72
- mime_type = '', )
72
+ mime_type = '',
73
+ type = '', )
73
74
  ], )
74
75
  },
75
76
  llm_model = '',
@@ -0,0 +1,52 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ ai/h2o/eval_studio/v1/insight.proto
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: version not set
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ import unittest
16
+
17
+ from eval_studio_client.api.models.v1_workflow_dependency import V1WorkflowDependency
18
+
19
+ class TestV1WorkflowDependency(unittest.TestCase):
20
+ """V1WorkflowDependency unit test stubs"""
21
+
22
+ def setUp(self):
23
+ pass
24
+
25
+ def tearDown(self):
26
+ pass
27
+
28
+ def make_instance(self, include_optional) -> V1WorkflowDependency:
29
+ """Test V1WorkflowDependency
30
+ include_option is a boolean, when False only required
31
+ params are included, when True both required and
32
+ optional params are included """
33
+ # uncomment below to create an instance of `V1WorkflowDependency`
34
+ """
35
+ model = V1WorkflowDependency()
36
+ if include_optional:
37
+ return V1WorkflowDependency(
38
+ name = '',
39
+ optional = True
40
+ )
41
+ else:
42
+ return V1WorkflowDependency(
43
+ )
44
+ """
45
+
46
+ def testV1WorkflowDependency(self):
47
+ """Test V1WorkflowDependency"""
48
+ # inst_req_only = self.make_instance(include_optional=False)
49
+ # inst_req_and_optional = self.make_instance(include_optional=True)
50
+
51
+ if __name__ == '__main__':
52
+ unittest.main()
@@ -60,7 +60,8 @@ class TestV1WorkflowNode(unittest.TestCase):
60
60
  updater = '',
61
61
  delete_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
62
62
  deleter = '',
63
- mime_type = '', )
63
+ mime_type = '',
64
+ type = '', )
64
65
  ],
65
66
  status = 'WORKFLOW_NODE_STATUS_UNSPECIFIED',
66
67
  attributes = eval_studio_client.api.models.v1_workflow_node_attributes.v1WorkflowNodeAttributes(
@@ -45,7 +45,8 @@ class TestV1WorkflowNodeArtifact(unittest.TestCase):
45
45
  updater = '',
46
46
  delete_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
47
47
  deleter = '',
48
- mime_type = ''
48
+ mime_type = '',
49
+ type = ''
49
50
  )
50
51
  else:
51
52
  return V1WorkflowNodeArtifact(
@@ -47,7 +47,8 @@ class TestV1WorkflowNodeArtifacts(unittest.TestCase):
47
47
  updater = '',
48
48
  delete_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
49
49
  deleter = '',
50
- mime_type = '', )
50
+ mime_type = '',
51
+ type = '', )
51
52
  ]
52
53
  )
53
54
  else:
@@ -54,6 +54,12 @@ class TestWorkflowServiceApi(unittest.TestCase):
54
54
  """
55
55
  pass
56
56
 
57
+ def test_workflow_service_get_guardrails_configuration(self) -> None:
58
+ """Test case for workflow_service_get_guardrails_configuration
59
+
60
+ """
61
+ pass
62
+
57
63
  def test_workflow_service_get_workflow(self) -> None:
58
64
  """Test case for workflow_service_get_workflow
59
65
 
@@ -61,6 +67,13 @@ class TestWorkflowServiceApi(unittest.TestCase):
61
67
  """
62
68
  pass
63
69
 
70
+ def test_workflow_service_list_workflow_dependencies(self) -> None:
71
+ """Test case for workflow_service_list_workflow_dependencies
72
+
73
+ ListWorkflowDependencies lists workflow nodes and map of the node dependencies.
74
+ """
75
+ pass
76
+
64
77
  def test_workflow_service_list_workflows(self) -> None:
65
78
  """Test case for workflow_service_list_workflows
66
79
 
@@ -18,7 +18,11 @@ class Client:
18
18
  """Main Eval Studio client class."""
19
19
 
20
20
  def __init__(
21
- self, host: str, token_provider: Optional[h2o_authn.TokenProvider] = None
21
+ self,
22
+ host: str,
23
+ token_provider: Optional[h2o_authn.TokenProvider] = None,
24
+ verify_ssl: bool = True,
25
+ ssl_ca_cert: Optional[str] = None,
22
26
  ):
23
27
  """Initialize the client connection to Eval Studio host.
24
28
 
@@ -26,9 +30,14 @@ class Client:
26
30
  host: The Eval Studio host URL.
27
31
  token_provider: Optional TokenProvider used for authentication. If not
28
32
  provided, the client will not set any authentication headers.
33
+ verify: Whether to verify SSL certificates. Defaults to True.
34
+ ssl_ca_cert: Path to a file of concatenated CA certificates
35
+ in PEM format. If not provided, the default system CA certificates will be used.
29
36
  """
30
37
  _host = host.rstrip("/")
31
- _api_config = api.Configuration(host=_host)
38
+ _api_config = api.Configuration(host=_host, ssl_ca_cert=ssl_ca_cert)
39
+ _api_config.verify_ssl = verify_ssl
40
+
32
41
  self._api_client = api.ApiClient(configuration=_api_config)
33
42
  if token_provider is not None:
34
43
  self._api_client = _TokenApiClient(_api_config, token_provider.token)