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
# Create the AI agent based on the agent definition
37
+
agent = AzureAIAgent(
38
+
client=client,
39
+
definition=agent_definition,
40
+
)
41
+
```
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:
44
+
45
+
```python
46
+
thread: AzureAIAgentThread = AzureAIAgentThread()
47
+
48
+
try:
49
+
# Create a prompt
50
+
prompt ="What are the largest semiconductor manufacturing companies?"
51
+
52
+
# Instruct the agent to add a message to the thread
The Semantic Kernel AzureAIAgent object relies on the following components to function:
19
64
65
+
-**AzureAISAgentSettings** - an object that automatically includes the Azure AI Agent settings from the environment configuration. These settings will be used by the AzureAIAgents you create.
66
+
20
67
-**AzureAIAgent client** - an object that manages the connection to your Azure AI Foundry project. This object allows you to access the services and models associated with your project.
21
68
22
69
-**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.
0 commit comments