Skip to content

Commit 2d295c7

Browse files
authored
Update azure-functions-samples.md
Ajusted headings.
1 parent c2faf61 commit 2d295c7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

articles/ai-services/agents/how-to/tools/azure-functions-samples.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,7 @@ For any issues with the TypeScript code, create an issue on the [sample code rep
305305

306306
::: zone pivot="csharp"
307307

308-
## Using the .NET SDK
309-
310-
### Prerequisites
308+
## Prerequisites for .NET Azure Function Sample
311309
To make a function call, we need to create and deploy the Azure function. In the code snippet, we have an example of function on C# which can be used by the earlier code.
312310

313311
```csharp
@@ -416,7 +414,7 @@ After testing the function and making sure it works, make sure that the Azure AI
416414

417415
In the example below we're calling function "foo," which responds "Bar."
418416

419-
### Create a client, tool definition and agent
417+
## Create a client, tool definition and agent
420418

421419
Get the necessary configuration, initialize the `PersistentAgentsClient`, define the `AzureFunctionToolDefinition` for the Azure Function, and then create the agent.
422420

@@ -489,7 +487,7 @@ PersistentAgent agent = client.Administration.CreateAgent(
489487
tools: [azureFnTool]
490488
);
491489
```
492-
### Create a thread and add a message
490+
## Create a thread and add a message
493491

494492
Next, create a new persistent agent thread and add an initial user message to it.
495493

@@ -519,7 +517,7 @@ while (run.Status == RunStatus.Queued
519517
|| run.Status == RunStatus.RequiresAction);
520518
```
521519

522-
### Process the results
520+
## Process the results
523521

524522
After the run is complete, we retrieve and process the messages from the thread.
525523

0 commit comments

Comments
 (0)