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
* update readme with create agent instructions for AI Foundry, SDK samples, and assistants tool
* allow functionality to import agent and update main.py to use get_agent("AZURE_AI_AGENT_ID")
* if there is an error getting the agent or the environment variable has not been set, it creates a new agent and deletes it when the app is done running
Copy file name to clipboardExpand all lines: README.md
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,36 @@ You can find the connection string on the overview page of your Azure AI project
43
43
44
44
This solution has been configured to use "gpt-4o-mini" model. If you do not have a deployment named "gpt-4o-mini" in your existing AI project, you should either create one in Azure AI Foundry or follow the steps in [Customizing model deployments](#customizing-model-deployments) to specify a different model.
45
45
46
+
#### Creating and Importing an Agent
47
+
48
+
You can create an agent in your project to import to this template. For more information on creating an agent, view [Quickstart: Create a New Agent](https://learn.microsoft.com/azure/ai-services/agents/quickstart?pivots=ai-foundry). There are three agent creation options:
49
+
50
+
<details>
51
+
<summary><b>Azure AI Foundry Agents Playground</b></summary>
52
+
53
+
In [Azure AI Foundry](https://ai.azure.com/), navigate to the Agents Playground for your project. Here, you can create an agent and customize its name, model deployment, instructions, and tools, as well as upload files for file search.
54
+
</details>
55
+
56
+
<details>
57
+
<summary><b>SDK Samples</b></summary>
58
+
59
+
You can create an agent using the Azure AI Projects SDK. By following the [instructions to create an agent using Python](https://learn.microsoft.com/azure/ai-services/agents/quickstart?pivots=programming-language-python-azure), you can create an agent using code based on the SDK samples.
60
+
61
+
</details>
62
+
63
+
<details>
64
+
<summary><b>Assistants Tool</b></summary>
65
+
66
+
Using the [Azure AI Assistants Tool](https://github.com/Azure-Samples/azureai-assistant-tool), you can create an agent and customize it with tools and functions. Then, you can export the agent and use the agent_id.
67
+
<!-- TODO: do we need to implement agents.yaml changes in order to use this solution? -->
68
+
</details>
69
+
70
+
After creating your agent, import the agent into this template by copying the agent_id and setting the following environment variable:
0 commit comments