Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions sdk/ai/azure-ai-projects/apiview-properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
"azure.ai.projects.models.FunctionTool": "OpenAI.FunctionTool",
"azure.ai.projects.models.HostedAgentDefinition": "Azure.AI.Projects.HostedAgentDefinition",
"azure.ai.projects.models.HourlyRecurrenceSchedule": "Azure.AI.Projects.HourlyRecurrenceSchedule",
"azure.ai.projects.models.HumanEvaluationRuleAction": "Azure.AI.Projects.HumanEvaluationRuleAction",
"azure.ai.projects.models.HumanEvaluationPreviewRuleAction": "Azure.AI.Projects.HumanEvaluationPreviewRuleAction",
"azure.ai.projects.models.HybridSearchOptions": "OpenAI.HybridSearchOptions",
"azure.ai.projects.models.ImageGenTool": "OpenAI.ImageGenTool",
"azure.ai.projects.models.ImageGenToolInputImageMask": "OpenAI.ImageGenToolInputImageMask",
Expand Down Expand Up @@ -286,8 +286,6 @@
"azure.ai.projects.models.EvaluationTaxonomyInputType": "Azure.AI.Projects.EvaluationTaxonomyInputType",
"azure.ai.projects.models.RiskCategory": "Azure.AI.Projects.RiskCategory",
"azure.ai.projects.models.FoundryFeaturesOptInKeys": "Azure.AI.Projects.FoundryFeaturesOptInKeys",
"azure.ai.projects.models.EvaluationRuleActionType": "Azure.AI.Projects.EvaluationRuleActionType",
"azure.ai.projects.models.EvaluationRuleEventType": "Azure.AI.Projects.EvaluationRuleEventType",
"azure.ai.projects.models.EvaluatorType": "Azure.AI.Projects.EvaluatorType",
"azure.ai.projects.models.EvaluatorCategory": "Azure.AI.Projects.EvaluatorCategory",
"azure.ai.projects.models.EvaluatorDefinitionType": "Azure.AI.Projects.EvaluatorDefinitionType",
Expand Down Expand Up @@ -345,6 +343,8 @@
"azure.ai.projects.models.PendingUploadType": "Azure.AI.Projects.PendingUploadType",
"azure.ai.projects.models.DeploymentType": "Azure.AI.Projects.DeploymentType",
"azure.ai.projects.models.IndexType": "Azure.AI.Projects.IndexType",
"azure.ai.projects.models.EvaluationRuleActionType": "Azure.AI.Projects.EvaluationRuleActionType",
"azure.ai.projects.models.EvaluationRuleEventType": "Azure.AI.Projects.EvaluationRuleEventType",
"azure.ai.projects.models.MemoryStoreUpdateStatus": "Azure.AI.Projects.MemoryStoreUpdateStatus",
"azure.ai.projects.operations.AgentsOperations.get": "Azure.AI.Projects.Agents.getAgent",
"azure.ai.projects.aio.operations.AgentsOperations.get": "Azure.AI.Projects.Agents.getAgent",
Expand Down Expand Up @@ -399,6 +399,14 @@
"azure.ai.projects.operations.IndexesOperations.delete": "Azure.AI.Projects.Indexes.deleteVersion",
"azure.ai.projects.aio.operations.IndexesOperations.delete": "Azure.AI.Projects.Indexes.deleteVersion",
"azure.ai.projects.operations.IndexesOperations.create_or_update": "Azure.AI.Projects.Indexes.createOrUpdateVersion",
"azure.ai.projects.aio.operations.IndexesOperations.create_or_update": "Azure.AI.Projects.Indexes.createOrUpdateVersion"
"azure.ai.projects.aio.operations.IndexesOperations.create_or_update": "Azure.AI.Projects.Indexes.createOrUpdateVersion",
"azure.ai.projects.operations.EvaluationRulesOperations.get": "Azure.AI.Projects.EvaluationRules.get",
"azure.ai.projects.aio.operations.EvaluationRulesOperations.get": "Azure.AI.Projects.EvaluationRules.get",
"azure.ai.projects.operations.EvaluationRulesOperations.delete": "Azure.AI.Projects.EvaluationRules.delete",
"azure.ai.projects.aio.operations.EvaluationRulesOperations.delete": "Azure.AI.Projects.EvaluationRules.delete",
"azure.ai.projects.operations.EvaluationRulesOperations.create_or_update": "Azure.AI.Projects.EvaluationRules.createOrUpdate",
"azure.ai.projects.aio.operations.EvaluationRulesOperations.create_or_update": "Azure.AI.Projects.EvaluationRules.createOrUpdate",
"azure.ai.projects.operations.EvaluationRulesOperations.list": "Azure.AI.Projects.EvaluationRules.list",
"azure.ai.projects.aio.operations.EvaluationRulesOperations.list": "Azure.AI.Projects.EvaluationRules.list"
}
}
8 changes: 7 additions & 1 deletion sdk/ai/azure-ai-projects/azure/ai/projects/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@
ConnectionsOperations,
DatasetsOperations,
DeploymentsOperations,
EvaluationRulesOperations,
IndexesOperations,
)

if TYPE_CHECKING:
from azure.core.credentials import TokenCredential


class AIProjectClient:
class AIProjectClient: # pylint: disable=too-many-instance-attributes
"""AIProjectClient.

:ivar beta: BetaOperations operations
Expand All @@ -44,6 +45,8 @@ class AIProjectClient:
:vartype deployments: azure.ai.projects.operations.DeploymentsOperations
:ivar indexes: IndexesOperations operations
:vartype indexes: azure.ai.projects.operations.IndexesOperations
:ivar evaluation_rules: EvaluationRulesOperations operations
:vartype evaluation_rules: azure.ai.projects.operations.EvaluationRulesOperations
:param endpoint: Foundry Project endpoint in the form
"https://{ai-services-account-name}.services.ai.azure.com/api/projects/{project-name}". If you
only have one Project in your Foundry Hub, or to target the default Project in your Hub, use
Expand Down Expand Up @@ -89,6 +92,9 @@ def __init__(self, endpoint: str, credential: "TokenCredential", **kwargs: Any)
self.datasets = DatasetsOperations(self._client, self._config, self._serialize, self._deserialize)
self.deployments = DeploymentsOperations(self._client, self._config, self._serialize, self._deserialize)
self.indexes = IndexesOperations(self._client, self._config, self._serialize, self._deserialize)
self.evaluation_rules = EvaluationRulesOperations(
self._client, self._config, self._serialize, self._deserialize
)

def send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
"""Runs the network request through the client's chained policies.
Expand Down
8 changes: 7 additions & 1 deletion sdk/ai/azure-ai-projects/azure/ai/projects/aio/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@
ConnectionsOperations,
DatasetsOperations,
DeploymentsOperations,
EvaluationRulesOperations,
IndexesOperations,
)

if TYPE_CHECKING:
from azure.core.credentials_async import AsyncTokenCredential


class AIProjectClient:
class AIProjectClient: # pylint: disable=too-many-instance-attributes
"""AIProjectClient.

:ivar beta: BetaOperations operations
Expand All @@ -44,6 +45,8 @@ class AIProjectClient:
:vartype deployments: azure.ai.projects.aio.operations.DeploymentsOperations
:ivar indexes: IndexesOperations operations
:vartype indexes: azure.ai.projects.aio.operations.IndexesOperations
:ivar evaluation_rules: EvaluationRulesOperations operations
:vartype evaluation_rules: azure.ai.projects.aio.operations.EvaluationRulesOperations
:param endpoint: Foundry Project endpoint in the form
"https://{ai-services-account-name}.services.ai.azure.com/api/projects/{project-name}". If you
only have one Project in your Foundry Hub, or to target the default Project in your Hub, use
Expand Down Expand Up @@ -89,6 +92,9 @@ def __init__(self, endpoint: str, credential: "AsyncTokenCredential", **kwargs:
self.datasets = DatasetsOperations(self._client, self._config, self._serialize, self._deserialize)
self.deployments = DeploymentsOperations(self._client, self._config, self._serialize, self._deserialize)
self.indexes = IndexesOperations(self._client, self._config, self._serialize, self._deserialize)
self.evaluation_rules = EvaluationRulesOperations(
self._client, self._config, self._serialize, self._deserialize
)

def send_request(
self, request: HttpRequest, *, stream: bool = False, **kwargs: Any
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from ._operations import DatasetsOperations # type: ignore
from ._operations import DeploymentsOperations # type: ignore
from ._operations import IndexesOperations # type: ignore
from ._operations import EvaluationRulesOperations # type: ignore

from ._patch import __all__ as _patch_all
from ._patch import *
Expand All @@ -30,6 +31,7 @@
"DatasetsOperations",
"DeploymentsOperations",
"IndexesOperations",
"EvaluationRulesOperations",
]
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
_patch_sdk()
Loading
Loading