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
varendpoint=Environment.GetEnvironmentVariable("AZURE_AI_PROJECT_ENDPOINT") ??thrownewInvalidOperationException("AZURE_AI_PROJECT_ENDPOINT is not set.");
.AsAIAgent(model: deploymentName, name: "HaikuBot", instructions: "You are an upbeat assistant that writes beautifully.");
155
139
156
140
Console.WriteLine(awaitagent.RunAsync("Write a haiku about Microsoft Agent Framework."));
157
141
```
158
142
143
+
Create a simple Agent, using OpenAI Responses, that writes a haiku about the Microsoft Agent Framework
144
+
145
+
```c#
146
+
// dotnet add package Microsoft.Agents.AI.OpenAI
147
+
usingSystem;
148
+
usingOpenAI;
149
+
usingOpenAI.Responses;
150
+
151
+
// Replace the <apikey> with your OpenAI API key.
152
+
varagent=newOpenAIClient("<apikey>")
153
+
.GetResponsesClient()
154
+
.AsAIAgent(model: "gpt-5.4-mini", name: "HaikuBot", instructions: "You are an upbeat assistant that writes beautifully.");
155
+
156
+
Console.WriteLine(awaitagent.RunAsync("Write a haiku about Microsoft Agent Framework."));
157
+
```
158
+
159
159
## More Examples & Samples
160
160
161
161
### Python
@@ -207,4 +207,9 @@ The samples typically read configuration from environment variables. Common requ
207
207
208
208
## Important Notes
209
209
210
-
If you use the Microsoft Agent Framework to build applications that operate with third-party servers or agents, you do so at your own risk. We recommend reviewing all data being shared with third-party servers or agents and being cognizant of third-party practices for retention and location of data. It is your responsibility to manage whether your data will flow outside of your organization's Azure compliance and geographic boundaries and any related implications.
210
+
> [!IMPORTANT]
211
+
> If you use Microsoft Agent Framework to build applications that operate with any third-party servers, agents, code, or non-Azure Direct models (“Third-Party Systems”), you do so at your own risk. Third-Party Systems are Non-Microsoft Products under the Microsoft Product Terms and are governed by their own third-party license terms. You are responsible for any usage and associated costs.
212
+
>
213
+
>We recommend reviewing all data being shared with and received from Third-Party Systems and being cognizant of third-party practices for handling, sharing, retention and location of data. It is your responsibility to manage whether your data will flow outside of your organization’s Azure compliance and geographic boundaries and any related implications, and that appropriate permissions, boundaries and approvals are provisioned.
214
+
>
215
+
>You are responsible for carefully reviewing and testing applications you build using Microsoft Agent Framework in the context of your specific use cases, and making all appropriate decisions and customizations. This includes implementing your own responsible AI mitigations such as metaprompt, content filters, or other safety systems, and ensuring your applications meet appropriate quality, reliability, security, and trustworthiness standards. See also: [Transparency FAQ](./TRANSPARENCY_FAQ.md)
0 commit comments