Skip to content

Commit 05ef002

Browse files
authored
Refresh AITK Agent Builder Page (#8473)
* Add function calling in agent builder * Add function calling in agent builder
1 parent 3f0b7a0 commit 05ef002

File tree

4 files changed

+40
-9
lines changed

4 files changed

+40
-9
lines changed

docs/intelligentapps/agentbuilder.md

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
ContentId: bd3d7555-3d84-4500-ae95-6dcd39641af0
3-
DateApproved: 04/22/2025
3+
DateApproved: 06/16/2025
44
MetaDescription: Get Started with creating, iterating and optimizing your agents in AI Toolkit.
55
---
66
# Build agents and prompts in AI Toolkit
@@ -16,9 +16,10 @@ Agent Builder in AI Toolkit streamlines the engineering workflow for building ag
1616

1717
Agent Builder also enhances intelligent app's capabilities with tool use:
1818
- Connect to existing MCP servers
19-
- Build a new MCP server from scaffold and test in Agent Builder
19+
- Build new MCP servers from scaffolds
20+
- Use function calling to connect to external APIs and services
2021

21-
![Getting started with prompt builder](./images/promptbuilder/AgentBuilder.gif)
22+
![Screenshot showing the Agent Builder interface with prompt engineering and testing capabilities.](./images/promptbuilder/AgentBuilder.gif)
2223

2324
## Create, edit, and test prompts
2425

@@ -31,19 +32,19 @@ To test a prompt in Agent Builder, follow these steps:
3132

3233
1. In **Models**, select a model from the dropdown list, or select **Browse models** to add another model from the model catalog.
3334

34-
![select a model](./images/promptbuilder/select_models.png)
35+
![Screenshot showing the model selection dropdown in Agent Builder.](./images/promptbuilder/select_models.png)
3536

3637
1. Enter a **User prompt** and optionally enter a **System prompt**.
3738

3839
The *user prompt* is the input that you want to send to the model. The optional *system prompt* is used to provide instructions with relevant context to guide the model response.
3940

4041
> [!TIP]
41-
> You can describe your project idea by using natural language and let the AI-powered feature generate the prompts for you to experiment with.
42-
> ![generate prompts with natural language](./images/promptbuilder/generate_prompt_2.gif)
42+
> Describe your project idea using natural language to generate prompts automatically.
43+
> ![Screenshot showing natural language prompt generation in Agent Builder.](./images/promptbuilder/generate_prompt_2.gif)
4344
44-
1. Select **Run** to send the prompts to the selected model.
45+
3. Select **Run** to send the prompts to the model.
4546

46-
1. Optionally, select **Add Prompt** to add more user and assistant prompts to the conversation, or select **Add to Prompts** as the history and context you send to the model to further guide the model's behavior.
47+
4. Optionally, select **Add Prompt** to add more prompts or **Add to Prompts** to build conversation history.
4748

4849
1. Repeat the previous steps to iterate over your prompts by observing the model response and making changes to the prompts.
4950

@@ -70,7 +71,7 @@ To configure an MCP server from featured selections, follow these steps:
7071

7172
### Use an existing MCP server
7273
> [!TIP]
73-
> There are many registries and marketplaces for MCP servers. We recommend starting with these [reference servers](https://github.com/modelcontextprotocol/servers?tab=readme-ov-file#-reference-servers).
74+
> Find MCP servers in these [reference servers](https://github.com/modelcontextprotocol/servers?tab=readme-ov-file#-reference-servers).
7475
7576
To use an existing MCP server, follow these steps:
7677
1. In the **Tools** section, select **+ MCP Server**, and then select **+ Add server** in the quick pick.
@@ -130,6 +131,27 @@ Follow these steps to test the MCP server:
130131

131132
![debug mcp](./images/promptbuilder/mcp_debug.gif)
132133

134+
## Use function calling
135+
136+
Function calling connects your agent to external APIs and services.
137+
138+
![Screenshot showing the Add Custom Function Tool dialog with options to add tools by example or upload schemas.](./images/promptbuilder/add_function_call.png)
139+
140+
1. In **Tools**, select **Add Tool**, then **Custom Tool**.
141+
2. Choose how to add the tool:
142+
- **By Example**: Add from a JSON schema example
143+
- **Upload Existing Schema**: Upload a JSON schema file
144+
3. Enter the tool name and description, then select **Add**.
145+
4. Provide a mock response in the tool card.
146+
147+
![Screenshot showing a function calling tool card with weather tool configuration.](./images/promptbuilder/function_call_card.png)
148+
149+
5. Run the agent with the function calling tool.
150+
151+
Use function calling tools in the **Evaluation** tab by entering mock responses for test cases.
152+
153+
![Screenshot showing function calling tool usage in the evaluation tab.](./images/promptbuilder/function_call_eval.png)
154+
133155
## Structured output
134156

135157
Structured output support helps you design prompts to deliver outputs in a structured, predictable format.
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)