azure.ai.projects.aio package¶
- class azure.ai.projects.aio.AIProjectClient(endpoint: str, subscription_id: str, resource_group_name: str, project_name: str, credential: AsyncTokenCredential, **kwargs: Any)[source]¶
-
- classmethod from_connection_string(conn_str: str, credential: AsyncTokenCredential, **kwargs) Self[source]¶
Create an asynchronous AIProjectClient from a connection string.
- Parameters:
conn_str (str) – The connection string, copied from your AI Foundry project.
credential (AsyncTokenCredential) – Credential used to authenticate requests to the service.
- Returns:
An AIProjectClient instance.
- Return type:
- send_request(request: HttpRequest, *, stream: bool = False, **kwargs: Any) Awaitable[AsyncHttpResponse][source]¶
Runs the network request through the client’s chained policies.
>>> from azure.core.rest import HttpRequest >>> request = HttpRequest("GET", "https://www.example.org/") <HttpRequest [GET], url: 'https://www.example.org/'> >>> response = await client.send_request(request) <AsyncHttpResponse: 200 OK>
For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request
- Parameters:
request (HttpRequest) – The network request you want to make. Required.
- Keyword Arguments:
stream (bool) – Whether the response payload will be streamed. Defaults to False.
- Returns:
The response of your network call. Does not do error handling on your response.
- Return type:
Subpackages¶
- azure.ai.projects.aio.operations package
AgentsOperationsAgentsOperations.cancel_run()AgentsOperations.cancel_vector_store_file_batch()AgentsOperations.create_agent()AgentsOperations.create_and_process_run()AgentsOperations.create_message()AgentsOperations.create_run()AgentsOperations.create_stream()AgentsOperations.create_thread()AgentsOperations.create_thread_and_run()AgentsOperations.create_vector_store()AgentsOperations.create_vector_store_and_poll()AgentsOperations.create_vector_store_file()AgentsOperations.create_vector_store_file_and_poll()AgentsOperations.create_vector_store_file_batch()AgentsOperations.create_vector_store_file_batch_and_poll()AgentsOperations.delete_agent()AgentsOperations.delete_file()AgentsOperations.delete_thread()AgentsOperations.delete_vector_store()AgentsOperations.delete_vector_store_file()AgentsOperations.get_agent()AgentsOperations.get_file()AgentsOperations.get_file_content()AgentsOperations.get_message()AgentsOperations.get_run()AgentsOperations.get_run_step()AgentsOperations.get_thread()AgentsOperations.get_vector_store()AgentsOperations.get_vector_store_file()AgentsOperations.get_vector_store_file_batch()AgentsOperations.list_agents()AgentsOperations.list_files()AgentsOperations.list_messages()AgentsOperations.list_run_steps()AgentsOperations.list_runs()AgentsOperations.list_vector_store_file_batch_files()AgentsOperations.list_vector_store_files()AgentsOperations.list_vector_stores()AgentsOperations.modify_vector_store()AgentsOperations.save_file()AgentsOperations.submit_tool_outputs_to_run()AgentsOperations.submit_tool_outputs_to_stream()AgentsOperations.update_agent()AgentsOperations.update_message()AgentsOperations.update_run()AgentsOperations.update_thread()AgentsOperations.upload_file()AgentsOperations.upload_file_and_poll()
ConnectionsOperationsEvaluationsOperationsInferenceOperationsTelemetryOperations