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: learn-pr/wwl-data-ai/develop-ai-agent-with-semantic-kernel/includes/3-create-azure-ai-agent.md
+15-13Lines changed: 15 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
**AzureAIAgent** is a specialized agent within the Semantic Kernel framework, designed to provide advanced conversational capabilities with seamless tool integration. It automates tool calling, eliminating the need for manual parsing and invocation. The agent also securely manages conversation history using threads, reducing the overhead of maintaining state. The AzureAIAgent class supports a variety of built-in tools, including file retrieval, code execution, and data interaction via Bing, Azure AI Search, Azure Functions, and OpenAPI.
1
+
**AzureAIAgent** is a specialized agent within the Semantic Kernel framework, designed to provide advanced conversational capabilities with seamless tool integration. It automates tool calling, eliminating the need for manual parsing and invocation. The agent also securely manages conversation history using threads, reducing the overhead of maintaining state. The AzureAIAgent class supports many built-in tools, including file retrieval, code execution, and data interaction via Bing, Azure AI Search, Azure Functions, and OpenAPI.
2
2
3
3
## Creating an AzureAIAgent
4
4
@@ -12,11 +12,11 @@ To use an AzureAIAgent:
12
12
1. Create an agent definition on the agent service provided by the client.
13
13
1. Create an agent based on the definition.
14
14
15
-
Here is the code that illustrates how to create an AzureAIAgent:
15
+
Here's the code that illustrates how to create an AzureAIAgent:
16
16
17
17
```python
18
18
from azure.identity.aio import DefaultAzureCredential
19
-
from semantic_kernel.agents import AzureAIAgent, AzureAIAgentSettings
19
+
from semantic_kernel.agents import AzureAIAgent, AzureAIAgentThread, AzureAIAgentSettings
20
20
21
21
# Create an AzureAIAgentSettings object
22
22
ai_agent_settings = AzureAIAgentSettings.create()
@@ -40,21 +40,23 @@ async with (@
40
40
)
41
41
```
42
42
43
-
Once your agent is defined, you can interact with your agent and invoke responses for inputs. To invoke responses, you create an agent thread and use the agent to add prompt and retrieve a response. For example:
43
+
Once your agent is defined, you can create a thread to interact with your agent and invoke responses for inputs. For example:
@@ -68,8 +70,8 @@ The Semantic Kernel AzureAIAgent object relies on the following components to fu
68
70
69
71
-**Agent service** - the AzureAIAgent client also contains an agent operations service. This service helps streamline the process of creating, managing, and running the agents for your project.
70
72
71
-
-**Agent definition** - the AzureAI Agent model created via the AzureAI Project client. This definition specifies the AI deployment model that should be used, as well as the name and instructions for the agent.
73
+
-**Agent definition** - the AzureAI Agent model created via the AzureAI Project client. This definition specifies the AI deployment model that should be used, and the name and instructions for the agent.
72
74
73
-
-**AzureAIAgentThread** - automatically maintains the conversation history between agents and users, as well as the state. You can add messages to a thread and use the agent to invoke a response from the LLM.
75
+
-**AzureAIAgentThread** - automatically maintains the conversation history between agents and users, and the state. You can add messages to a thread and use the agent to invoke a response from the LLM.
74
76
75
77
These components work together to allow you to create an agent with instructions to define its purpose and invoke responses from the AI model.
0 commit comments