Skip to content

Commit 5887138

Browse files
committed
updates
1 parent 6557233 commit 5887138

File tree

4 files changed

+18
-16
lines changed

4 files changed

+18
-16
lines changed

articles/ai-services/agents/how-to/connected-agents.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -110,18 +110,16 @@ To enable your Agent to use a connected agent, you use `ConnectedAgentToolDefini
110110
1. First we need to create agent client and read the environment variables, which will be used in the next steps.
111111

112112
```csharp
113-
var connectionString = System.Environment.GetEnvironmentVariable("PROJECT_CONNECTION_STRING");
114-
var modelDeploymentName = System.Environment.GetEnvironmentVariable("MODEL_DEPLOYMENT_NAME");
113+
var projectEndpoint = configuration["ProjectEndpoint"];
114+
var modelDeploymentName = configuration["ModelDeploymentName"];
115115

116-
var projectClient = new AIProjectClient(connectionString, new DefaultAzureCredential());
117-
118-
AgentsClient agentClient = projectClient.GetAgentsClient();
116+
PersistentAgentsClient client = new(projectEndpoint, new DefaultAzureCredential());
119117
```
120118

121119
2. Next we will create the connected agent using the agent client. This agent will be used to initialize the `ConnectedAgentToolDefinition`.
122120

123121
```csharp
124-
Agent connectedAgent = agentClient.CreateAgent(
122+
PersistentAgent agent = client.Administration.CreateAgent(
125123
model: modelDeploymentName,
126124
name: "stock_price_bot",
127125
instructions: "Your job is to get the stock price of a company. If you don't know the realtime stock price, return the last known stock price.");
@@ -132,7 +130,7 @@ To enable your Agent to use a connected agent, you use `ConnectedAgentToolDefini
132130
3. We will use the `ConnectedAgentToolDefinition` during the agent initialization.
133131

134132
```csharp
135-
Agent agent = agentClient.CreateAgent(
133+
PersistentAgent agent = client.Administration.CreateAgent(
136134
model: modelDeploymentName,
137135
name: "my-assistant",
138136
instructions: "You are a helpful assistant, and use the connected agent to get stock prices.",
@@ -229,9 +227,10 @@ To create a multi-agent setup, follow these steps:
229227
from azure.identity import DefaultAzureCredential
230228

231229

232-
project_client = AIProjectClient.from_connection_string(
233-
credential=DefaultAzureCredential(),
234-
conn_str=os.environ["PROJECT_CONNECTION_STRING"],
230+
project_client = AIProjectClient(
231+
endpoint=os.environ["PROJECT_ENDPOINT"],
232+
credential=DefaultAzureCredential(),
233+
api_version="latest",
235234
)
236235
```
237236

articles/ai-services/agents/how-to/tools/overview.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,17 @@ The Foundry Agent Service provides the following built-in tools. You can use the
7474
The following tools are authored by third-party partners. Use the links below to view the documentation and code samples.
7575

7676
> [!IMPORTANT]
77-
> * Your use of connected non-Microsoft services is subject to the terms between you and the service provider. By connecting to a non-Microsoft service, you acknowledge that some of your data, such as prompt content, is passed to the non-Microsoft service, and/or your application might receive data from the non-Microsoft service. You're responsible for your use of non-Microsoft data.
78-
> * Using tools might incur usage with tool providers, review the pricing plan with your selected tool providers.
77+
> * Your use of connected non-Microsoft services is subject to the terms between you and the service provider. By connecting to a non-Microsoft service, you acknowledge that some of your data, such as prompt content, is passed to the non-Microsoft service, and/or your application might receive data from the non-Microsoft service. You are responsible for your use (and any charges associated with your use) of non-Microsoft services and data.
78+
> * The code in these non-Microsfot files were created by third parties, not Microsoft, and have not been tested or verified by Microsoft. Your use of the code samples is subject to the terms provided by the relevant third party. By using any third-party sample in this file, you are acknowledging that Microsoft has no responsibility to you or others with respect to these samples.
7979
8080
|Tool |Description |
8181
|---------|---------|
82-
| [Auquan](https://github.com/azure-ai-foundry/foundry-samples/tree/main/samples/microsoft/python/getting-started-agents/3p-tools/auquan) | Utilize Auquan to perform your financial data crunching |
82+
| [Auquan](https://github.com/azure-ai-foundry/foundry-samples/tree/main/samples/microsoft/python/getting-started-agents/3p-tools/auquan) | AI-powered workflow automation for institutional finance |
8383
| [Celonis](https://github.com/azure-ai-foundry/foundry-samples/tree/main/samples/microsoft/python/getting-started-agents/3p-tools/Celonis) | Celonis delivers Process Intelligence to accelerate enterprise AI at scale |
8484
| [InsureMO Insurance Quotation](https://github.com/azure-ai-foundry/foundry-samples/tree/main/samples/microsoft/python/getting-started-agents/3p-tools/InsureMO) | Action APIs for insurance quotations for Car, Home, and Travel |
8585
| [LEGALFLY](https://github.com/azure-ai-foundry/foundry-samples/tree/main/samples/microsoft/python/getting-started-agents/3p-tools/legalfly) | Legal insights grounded in trusted sources from your jurisdiction. |
86+
| [LexisNexis](https://github.com/azure-ai-foundry/foundry-samples/tree/main/samples/microsoft/python/getting-started-agents/3p-tools/LexisNexis) | Seamless access to LexisNexis content. |
8687
| [MiHCM](https://github.com/azure-ai-foundry/foundry-samples/tree/main/samples/microsoft/python/getting-started-agents/3p-tools/MiHCM) | seamless integration with MiHCM's HR functionalities |
87-
| [Morningstar](https://github.com/azure-ai-foundry/foundry-samples/tree/main/samples/microsoft/python/getting-started-agents/3p-tools/Morningstar) | Access up-to-date analyst research, expert commentary, and essential Morningstar data. |
88+
| [Morningstar](https://github.com/azure-ai-foundry/foundry-samples/tree/main/samples/microsoft/python/getting-started-agents/3p-tools/Morningstar) | Access up-to-date investment research and data such as analyst research, expert commentary, and essential Morningstar data. |
89+
| [Trademo](https://github.com/azure-ai-foundry/foundry-samples/tree/main/samples/microsoft/python/getting-started-agents/3p-tools/Trademo_Glocal_trade) | Provide latest duties and past shipment data for trade between multiple countries |
8890
| [Tripadvisor](https://github.com/azure-ai-foundry/foundry-samples/tree/main/samples/microsoft/python/getting-started-agents/3p-tools/Tripadvisor) | Get travel data, guidance and reviews |

articles/ai-services/agents/how-to/triggers.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ For example, consider a workflow with the *Microsoft Forms* connector (which has
2323

2424
To check if a specific connector has a trigger capability, view its documentation and see if it has a **Trigger** section. For example, the [Triggers](/connectors/microsoftforms/#triggers) section of the *Microsoft Forms* connector.
2525

26-
## Prerequisite
26+
## Prerequisites
2727

2828
* [An existing agent](../quickstart.md)
29+
* Supported Logic Apps regions: `west us 2`, `west central us`, and `southeast asia`
2930

3031
## Set up
3132

articles/ai-services/agents/includes/quickstart-python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ message = project_client.agents.messages.create(
9191
)
9292
print(f"Created message, ID: {message['id']}")
9393

94-
Create and process an agent run
94+
# Create and process an agent run
9595
run = project_client.agents.runs.create_and_process(thread_id=thread.id, agent_id=agent.id)
9696
print(f"Run finished with status: {run.status}")
9797

0 commit comments

Comments
 (0)