
Research
Security News
Malicious npm Packages Use Telegram to Exfiltrate BullX Credentials
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Use the AI Projects client library (in preview) to:
openai
package, or clients from the azure-ai-inference
package.Product documentation | Samples | API reference documentation | Package (PyPI) | SDK source code | AI Starter Template
To report an issue with the client library, or request additional features, please open a GitHub issue here. Mention the package name "azure-ai-projects" in the title or content.
ConnectedAgentTool
class for better connected Agent support.AgentEventHandler
based event handler.max_retry
argument to the enable_auto_function_calls
function to cancel the run if the maximum number of retries for auto function calls is reached.project_client.agents.enable_auto_function_calls(toolset=toolset)
to all samples that has toolcalls
executed by azure-ai-project
SDKupdate_agent
and get_agent
do not support them. With the new design, the toolset parameter in create_agent
no longer executes toolcalls automatically during create_and_process_run
or create_stream
. To retain this behavior, call enable_auto_function_calls
without additional changes.FunctionTool.execute
and AsyncFunctionTool.execute
, they return a JSON string in the format of {error: [message]}
instead of throwing errors.ToolSet.execute_tool_calls
and AsyncToolSet.execute_tool_calls
, the returned array now includes an entry with output: {error: [message]} instead of not inserting the entry into the array.agent_id
was not included in the response. This caused the SDK not to make function calls when the thread run status is requires_action
.create_and_process_run
addresses an issue where it would get into an infinite loop when automatic function calls fail.MessageTextUrlCitationAnnotation
and MessageDeltaTextUrlCitationAnnotation
.ConnectionType.API_KEY
to support enumeration of generic connections that uses API Key authentication.sample_agents_bing_grounding.py
with printout of URL citation.sample_agents_stream_eventhandler_with_bing_grounding.py
and sample_agents_stream_iteration_with_bing_grounding.py
with printout of URL citation.RunStepDeltaFileSearchToolCall
returned during Agent streaming (see GitHub issue 48333).assistant_id
to agent_id
in all Agent methods to align with the "Agent" terminology. Similarly, rename all assistant_id
properties on classes.trace_function
decorator for conveniently tracing function calls in Agents using OpenTelemetry. Please see the README.md for updated documentation.samples/agents
, folder to make Azure Logic App integration with Agents easier.warning
to debug
to prevent unnecessary log entries in agent application runs..inference.get_image_embeddings_client
on AIProjectClient
to get an authenticated
ImageEmbeddingsClient
(from the package azure-ai-inference). You need to have azure-ai-inference package
version 1.0.0b7 or above installed for this method to work.on_thread_run
(instead of the wrong function on_unhandled_event
).to_evaluator_model_config
method of class ConnectionProperties
. See new input
argument include_credentials
.submit_tool_outputs_to_run
returns None
instead of ThreadRun
(see GitHub issue 39028).send_email_async
is not called (see GitHub issue 38898)connection_name
to methods .inference.get_chat_completions_client
,
.inference.get_embeddings_client
and .inference.get_azure_openai_client
.parallel_tool_calls
parameter to allow parallel tool execution for Agents.BingGroundingTool
for Agents to use against a Bing API Key connection.AzureAiSearchTool
for Agents to use against an Azure AI Search resource.OpenApiTool
for Agents, which creates and executes a REST function defined by an OpenAPI spec.OpenAIPageableListOfThreadMessage
, MessageDeltaChunk
, and ThreadMessage
..agents.get_messages
was removed. Please use .agents.list_messages
instead..inference
operations when Entra ID authentication is used by the default connection.First beta version
FAQs
Microsoft Azure AI Projects Client Library for Python
We found that azure-ai-projects demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.
Security News
AI-generated slop reports are making bug bounty triage harder, wasting maintainer time, and straining trust in vulnerability disclosure programs.