1414from azure .core .pipeline import policies
1515from azure .core .rest import HttpRequest , HttpResponse
1616
17- from ._configuration import AIProjectClientConfiguration
17+ from ._configuration import ProjectsClientConfiguration
1818from ._utils .serialization import Deserializer , Serializer
1919from .operations import (
2020 ConnectionsOperations ,
2121 DatasetsOperations ,
2222 DeploymentsOperations ,
2323 EvaluationResultsOperations ,
24+ EvaluationRulesOperations ,
25+ EvaluationTaxonomiesOperations ,
2426 EvaluationsOperations ,
27+ EvaluatorsOperations ,
2528 IndexesOperations ,
29+ InsightsOperations ,
2630 RedTeamsOperations ,
31+ SchedulesOperations ,
32+ SyncEvalsOperations ,
2733)
2834
2935if TYPE_CHECKING :
3036 from azure .core .credentials import TokenCredential
3137
3238
33- class AIProjectClient : # pylint: disable=too-many-instance-attributes
34- """AIProjectClient .
39+ class ProjectsClient : # pylint: disable=too-many-instance-attributes
40+ """ProjectsClient .
3541
3642 :ivar connections: ConnectionsOperations operations
37- :vartype connections: azure.ai.projects.onedp.operations.ConnectionsOperations
43+ :vartype connections: azure.ai.projects.operations.ConnectionsOperations
44+ :ivar sync_evals: SyncEvalsOperations operations
45+ :vartype sync_evals: azure.ai.projects.operations.SyncEvalsOperations
3846 :ivar evaluations: EvaluationsOperations operations
39- :vartype evaluations: azure.ai.projects.onedp.operations.EvaluationsOperations
47+ :vartype evaluations: azure.ai.projects.operations.EvaluationsOperations
48+ :ivar evaluators: EvaluatorsOperations operations
49+ :vartype evaluators: azure.ai.projects.operations.EvaluatorsOperations
4050 :ivar datasets: DatasetsOperations operations
41- :vartype datasets: azure.ai.projects.onedp. operations.DatasetsOperations
51+ :vartype datasets: azure.ai.projects.operations.DatasetsOperations
4252 :ivar indexes: IndexesOperations operations
43- :vartype indexes: azure.ai.projects.onedp.operations.IndexesOperations
53+ :vartype indexes: azure.ai.projects.operations.IndexesOperations
54+ :ivar insights: InsightsOperations operations
55+ :vartype insights: azure.ai.projects.operations.InsightsOperations
4456 :ivar deployments: DeploymentsOperations operations
45- :vartype deployments: azure.ai.projects.onedp. operations.DeploymentsOperations
57+ :vartype deployments: azure.ai.projects.operations.DeploymentsOperations
4658 :ivar red_teams: RedTeamsOperations operations
47- :vartype red_teams: azure.ai.projects.onedp.operations.RedTeamsOperations
59+ :vartype red_teams: azure.ai.projects.operations.RedTeamsOperations
60+ :ivar evaluation_taxonomies: EvaluationTaxonomiesOperations operations
61+ :vartype evaluation_taxonomies: azure.ai.projects.operations.EvaluationTaxonomiesOperations
62+ :ivar schedules: SchedulesOperations operations
63+ :vartype schedules: azure.ai.projects.operations.SchedulesOperations
4864 :ivar evaluation_results: EvaluationResultsOperations operations
49- :vartype evaluation_results: azure.ai.projects.onedp.operations.EvaluationResultsOperations
65+ :vartype evaluation_results: azure.ai.projects.operations.EvaluationResultsOperations
66+ :ivar evaluation_rules: EvaluationRulesOperations operations
67+ :vartype evaluation_rules: azure.ai.projects.operations.EvaluationRulesOperations
5068 :param endpoint: Project endpoint. In the form
51- "https://<your-ai-services-account-name>.services.ai.azure.com/api/projects/_project"
69+ "`https://your-ai-services-account-name.services.ai.azure.com/api/projects/_project
70+ <https://your-ai-services-account-name.services.ai.azure.com/api/projects/_project>`_"
5271 if your Foundry Hub has only one Project, or to use the default Project in your Hub. Or in the
5372 form
54- "https://<your-ai-services-account-name>.services.ai.azure.com/api/projects/<your-project-name>"
73+ "`https://your-ai-services-account-name.services.ai.azure.com/api/projects/your-project-name
74+ <https://your-ai-services-account-name.services.ai.azure.com/api/projects/your-project-name>`_"
5575 if you want to explicitly
5676 specify the Foundry Project name. Required.
5777 :type endpoint: str
5878 :param credential: Credential used to authenticate requests to the service. Required.
5979 :type credential: ~azure.core.credentials.TokenCredential
6080 :keyword api_version: The API version to use for this operation. Default value is
61- "2025-05 -15-preview". Note that overriding this default value may result in unsupported
81+ "2025-11 -15-preview". Note that overriding this default value may result in unsupported
6282 behavior.
6383 :paramtype api_version: str
6484 """
6585
6686 def __init__ (self , endpoint : str , credential : "TokenCredential" , ** kwargs : Any ) -> None :
6787 _endpoint = "{endpoint}"
68- self ._config = AIProjectClientConfiguration (endpoint = endpoint , credential = credential , ** kwargs )
88+ self ._config = ProjectsClientConfiguration (endpoint = endpoint , credential = credential , ** kwargs )
6989
7090 _policies = kwargs .pop ("policies" , None )
7191 if _policies is None :
@@ -90,14 +110,24 @@ def __init__(self, endpoint: str, credential: "TokenCredential", **kwargs: Any)
90110 self ._deserialize = Deserializer ()
91111 self ._serialize .client_side_validation = False
92112 self .connections = ConnectionsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
113+ self .sync_evals = SyncEvalsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
93114 self .evaluations = EvaluationsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
115+ self .evaluators = EvaluatorsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
94116 self .datasets = DatasetsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
95117 self .indexes = IndexesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
118+ self .insights = InsightsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
96119 self .deployments = DeploymentsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
97120 self .red_teams = RedTeamsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
121+ self .evaluation_taxonomies = EvaluationTaxonomiesOperations (
122+ self ._client , self ._config , self ._serialize , self ._deserialize
123+ )
124+ self .schedules = SchedulesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
98125 self .evaluation_results = EvaluationResultsOperations (
99126 self ._client , self ._config , self ._serialize , self ._deserialize
100127 )
128+ self .evaluation_rules = EvaluationRulesOperations (
129+ self ._client , self ._config , self ._serialize , self ._deserialize
130+ )
101131
102132 def send_request (self , request : HttpRequest , * , stream : bool = False , ** kwargs : Any ) -> HttpResponse :
103133 """Runs the network request through the client's chained policies.
0 commit comments