You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-services/agents/overview.md
+48-6Lines changed: 48 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,17 +13,59 @@ ms.custom: azure-ai-agents
13
13
14
14
# What is Azure AI Agent Service?
15
15
16
-
Azure AI Agent Service is a fully managed service designed to empower developers to securely build, deploy, and scale high-quality, and extensible AI agents. Using an extensive ecosystem of models, tools, and capabilities from OpenAI, Microsoft, and other non-Microsoft providers, Azure AI Agent Service enables you to build agents for a wide range of generative AI use cases. Users can access the service through the [available SDKs](./quickstart.md).
16
+
Azure AI Agent Service is a fully managed service designed to empower developers to securely build, deploy, and scale high-quality, and extensible AI agents without needing to manage the underlying compute and storage resources. What originally took hundreds of lines of code to support [client side function calling](/azure/ai-services/openai/how-to/function-calling) can now be done in just a few lines of code with Azure AI Agent Service.
17
17
18
+
## What is an AI agent?
18
19
19
-
## Comparing Azure agents and Azure OpenAI assistants
20
+
Within Azure AI Foundry, an AI Agent acts as a "smart" microservice that can be used to answer questions (RAG), perform actions, or completely automate workflows. It achieves this by combining the power of generative AI models with tools that allow it to access and interact with real-world data sources.
20
21
21
-
Both agents and assistants enable you to build automated workflows that leverage Large Language Models (LLMs), but Azure AI Agent Service provides all the capabilities of assistants and:
22
+
Because Azure AI Agent Service uses the same wire protocol as [Azure OpenAI Assistants](/azure/ai-services/openai/how-to/assistant), you can use either [OpenAI SDKs](./quickstart.md?pivots=programming-language-python-openai) or [Azure AI Foundry SDKs](./quickstart.md?programming-language-python-azure) to create and run an agent in just a few lines of code. For example, to create an AI Agent with Azure AI Foundry SDK, you can simply define which model the AI uses, the instructions for how it should complete tasks, and the tools it can use to access and interact with other services.
22
23
23
-
* The ability to use non-Azure OpenAI models Such as Llama 3.
24
-
* An extended toolset that lets you ground the agent with different datasets such as Microsoft Fabric, SharePoint, OpenAPI, and access the web using Bing web searches.
24
+
```python
25
+
agent = project_client.agents.create_agent(
26
+
model="gpt-4o-mini",
27
+
name="my-agent",
28
+
instructions="You are helpful agent",
29
+
tools=code_interpreter.definitions,
30
+
tool_resources=code_interpreter.resources,
31
+
)
32
+
```
25
33
26
-
## Features overview
34
+
After defining an agent, you can start asking it to perform work by invoking a run on top of an activity thread, which is simply a conversation between multiple agents and users.
35
+
36
+
```python
37
+
# Create a thread with messages
38
+
thread = project_client.agents.create_thread()
39
+
message = project_client.agents.create_message(
40
+
thread_id=thread.id,
41
+
role="user",
42
+
content="Could you please create a bar chart for the operating profit using the following data and provide the file to me? Company A: $1.2 million, Company B: $2.5 million, Company C: $3.0 million, Company D: $1.8 million",
43
+
)
44
+
45
+
# Ask the agent to perform work on the thread
46
+
run = project_client.agents.create_and_process_run(thread_id=thread.id, agent_id=agent.id)
47
+
48
+
# Fetch and log all messages to see the agent's response
Whenever the run operation is invoked, Azure AI Agent Service will complete the entire tool calling lifecycle for you by 1) running the model with the provided instructions, 2) invoking the tools as the agent calls them, and 3) returning the results back to you.
54
+
55
+
Once you've gotten the basics, you can start using multiple agents together to automate even more complex workflows with [AutoGen](https://microsoft.github.io/autogen/0.2/docs/Getting-Started/) and [Semantic Kernel](/semantic-kernel). Because Azure AI Agent Service is a fully managed service, you can focus on building workflows and the agents that power them without needing to worry about scaling, security, or management of the underlying infrastructure for individual agents.
56
+
57
+
## Why use Azure AI Agent Service?
58
+
59
+
When compared to developing with the [Inference API](/azure/ai-studio/reference/reference-model-inference-api) directly, Azure AI Agent Service provides a more streamlined and secure way to build and deploy AI agents. This includes:
60
+
-**Automatic tool calling** – no need to parse a tool call, invoke the tool, and handle the response; all of this is now done server-side
61
+
-**Securely managed data** – instead of managing your own conversation state, you can rely on threads to store all the information you need
62
+
-**Out-of-the-box tools** – In addition to the file retrieval and code interpreter tools provided by Azure OpenAI Assistants, Azure AI Agent Service also comes with a set of tools that you can use to interact with your data sources, such as Bing, Azure AI Search, and Azure Functions.
63
+
64
+
What originally took hundreds of lines of code can now be done in just a few with Azure AI Agent Service.
65
+
66
+
### Comparing Azure agents and Azure OpenAI assistants
67
+
68
+
Both services enable you to build agents using the same API and SDKs, but if you have additional enterprise requirements, you may want to consider using Azure AI Agent Service. Azure AI Agent Service provides all the capabilities of assistants in addition to:
27
69
28
70
**Flexible model selection** - Create agents that leverage OpenAI models, or others such as Llama 3, Mistral and Cohere. Choose the most suitable model to meet your business needs.
0 commit comments