宫颈筛查是检查什么| 锐减是什么意思| 郝字五行属什么| 什么安神助睡眠| 坐小月子可以吃什么水果| 减肥适合吃什么主食| 酒精胶是粘什么的| 元气是什么意思| 右侧肋骨下方是什么器官| 包饺子用什么面粉| 血小板低吃什么好| 今年80岁属什么生肖| 阳离子是什么面料| 什么是文员| 保妇康栓治疗什么妇科病| 沙悟净的武器叫什么| 东北人喜欢吃什么菜| 包皮过长是什么样的| 时蔬是什么菜| 女人吃洋葱有什么好处| only什么意思| 高三学生吃什么补脑抗疲劳| 乌龟属于什么动物| 浪凡算是什么档次的| 胎位 头位是什么意思| 什么为笑| 大便潜血什么意思| 1927年中国发生了什么| utc是什么时间| 曹操是什么星座| 丘疹性荨麻疹吃什么药| 撸铁是什么意思| 圆圆的什么| 念旧的人属于什么性格| 香叶是什么树的叶子| gn是什么颜色| 甲状腺结节吃什么盐| 撮鸟是什么意思| 流口水是什么原因引起的| 忆苦思甜下一句是什么| 清肺热用什么泡水喝比较好| by是什么意思| 喜鹊进家有什么预兆| 坐月子吃什么水果好| 生理期肚子疼吃什么药| 尿酸低是什么原因| 匡威属于什么档次| 射手座男和什么星座最配| 白细胞低吃什么补得快| 洗衣机不排水是什么原因| 吃什么补精| 广州为什么叫花城| 开心果是什么树的果实| 为什么蝙蝠会飞进家里| 拉倒吧是什么意思| 卵子是什么| 英语一和英语二有什么区别| 肝硬化吃什么水果好| Iud是什么| 大腿抽筋是什么原因引起的| 生殖感染用什么消炎药效果好| 为什么做梦| 直肠ca代表什么病| 除湿气吃什么好| 甲状腺双叶回声欠均匀是什么意思| 爱而不得是什么感觉| 中耳炎吃什么药| 腰椎退行性变什么意思| 亚历山大王什么档次| 肾萎缩吃什么药好| 给老人买什么礼物| 福瑞祥和是什么意思| 什么的青年| 做不好的梦预示着什么| 黑松露是什么东西| 加鸡腿什么意思| 乳酸杆菌大量是什么意思| 做梦梦到自己怀孕了是什么意思| 出口伤人是什么生肖| 读书与吃药是什么生肖| 茹毛饮血什么意思| 痛风不能吃什么食物| clinique是什么牌子的化妆品| 猫贫血吃什么补血最快| 早上5点多是什么时辰| 医生说忌辛辣是指什么| 智能手环是干什么用的| 脾肺两虚吃什么中成药| 什么是跑马| 隐翅虫咬到擦什么药膏| 内招是什么意思| 迎春花像什么| 黄喉是牛的什么部位| 万能血型是什么血型| 拉肚子拉稀是什么原因| 舌头溃疡吃什么水果| 上户口需要什么材料| 天麻炖什么治疗头痛效果最好| 怀孕后吃避孕药有什么后果| 左手指头麻木是什么原因| 小孩经常流鼻血是什么原因| 玳瑁色是什么颜色| cpi指数是什么意思| 三点水一个高念什么| 怀孕有什么特征和反应| 南极为什么比北极冷| 上腹疼是什么原因| 透析是什么意思啊| 造口是什么| 沉香是什么东西| 为什么老是想睡觉| gxg是什么牌子| 大腿酸软无力是什么原因| 脸浮肿是什么原因引起的| 1956年是什么年| 口苦是什么原因引起的| 缺钾会出现什么症状| 为什么射出的精子里有淡红色| 恩施玉露是什么茶| 助听器什么牌子的好| 火疖子挂什么科| 宝宝拉肚子挂什么科| 农历十二月是什么月| 羊肉馅饺子配什么菜好| 手指变形是什么原因| 高筋小麦粉适合做什么| 酸麻胀痛痒各代表什么| 胃胀胃酸是什么原因| 摘帽是什么意思| 什么样的梦才算是胎梦| 利有攸往是什么意思| marlboro是什么烟| 经常叹气是什么原因| 小蓝是什么| 月经前长痘痘是什么原因| 小孩睡觉磨牙是什么原因| 什么的蜻蜓| 生孩子前要注意什么| 孕妇胃疼可以吃什么药| 胆固醇高是什么意思| 男人梦见龙是什么征兆| 为什么不开朱元璋的墓| 盐酸对人体有什么危害| 吃什么改善睡眠| 手足是什么意思| 苑字五行属什么| 2015年五行属什么| 区长是什么级别| 内膜有炎症什么症状| 什么阳地名| 上当是什么意思| river是什么意思| 梦见过年是什么意思| 石榴石一般什么价位| 肠胃湿热吃什么药| 心慌是什么原因引起的| 囊性灶是什么意思| 阑尾炎能吃什么水果| 阑尾炎能吃什么| 肝不好有什么症状有哪些表现| 眉毛痒痒代表什么预兆| 九月24日是什么星座| 狗是什么生肖| 什么是韧带| 甲亢和甲减有什么区别| 胃烧心吃什么药| 反绒皮是什么材质| 混合性皮肤用什么护肤品比较好| 所以我求求你别让我离开你是什么歌| 才高八斗代表什么生肖| tomboy什么意思| 冰枕对人有什么危害吗| 梦见自己又结婚了是什么意思| 皮肤科挂什么科| 一刻是什么意思| 胎儿左心室强光点是什么意思| 总胆红素偏高是什么病| 脑梗怎么形成的原因是什么| 男性霉毒是什么症状| 黑豆不能和什么一起吃| 痛风不能吃什么食物| 精明是什么意思| 一天当中什么时候最热| 胃胀痛吃什么药好| 1928年属什么生肖| 反流性食管炎吃什么食物好| 区教育局局长是什么级别| 处女座男和什么星座最配| 嘴唇淡紫色是什么原因| 减肥喝什么茶| 金银花主治什么| 学习是什么| 棕色用什么颜色调出来| 双非是什么意思| 甲减吃什么食物好| 垂体催乳素高是什么原因| 甲状腺是什么引起的| hsv病毒是什么意思| 鲷鱼是什么鱼| 牙周炎用什么药| 耳朵烧是什么原因| 骨髓水肿吃什么消炎药| 下午六点是什么时辰| 脑梗有什么前兆| 三界牌是什么| 艾灸什么时候做最好| 外阴苔藓用什么药膏| 心率快吃什么药效果好| 碱性磷酸酶偏低是什么原因| 戏梦巴黎讲的是什么| 阴道骚痒是什么原因| 鸣字五行属什么| 结论是什么意思| 幽门螺杆菌阴性是什么意思| 嘴角烂了擦什么药| model什么意思| 摆拍是什么意思| 大小三阳是什么病| 白细胞低代表什么意思| 指甲长出来是白色的什么原因| 2月11日是什么星座| 低血压吃什么可以补| 生动形象是什么意思| 吃脆骨有什么好处| 上海有什么特产| 肾造瘘是什么意思| 鸡蛋粘壳是什么原因| 2月20号是什么星座| 女人梦见掉头发是什么征兆| 轰趴是什么意思| 排湿气最快的方法吃什么| 肿脚是什么原因引起的| 低血糖的症状是什么| im是什么意思| 孕妇拉肚子可以吃什么药| 六月十三是什么日子| 憋气是什么意思| 手指甲扁平是什么原因| 嗔是什么意思| 两肋插刀是什么意思| 精神什么满| 指甲表面凹凸不平是什么原因| 黄鼠狼喜欢吃什么东西| 低钾是什么原因造成的| 35是什么意思| 荷叶茶有什么作用| 月经不正常吃什么药| 房颤是什么症状| 父母都是a型血孩子是什么血型| 什么人不适合去高原| 生僻字什么意思| 无以言表是什么意思| 吃什么紧致皮肤抗衰老| 经常呕吐是什么原因| 什么时候同房最容易怀孕| 紧急避孕药有什么危害| 南明为什么打不过清朝| snoopy是什么意思| 脚凉是什么原因造成的| 送百合花代表什么意思| 欲望是什么| 冻结账户需要什么条件| 喉咙痛吃什么药好得快| 音欠读什么| 百度

Try to extend agent mode in VS Code!

资讯平台补贴哪家强?自媒体人必知的平台补贴政策

Note

Agent Builder was previously known as Prompt Builder. The updated name better reflects the feature's capabilities and its focus on building agents.

Agent Builder in AI Toolkit streamlines the engineering workflow for building agents, including prompt engineering and integration with tools, such as MCP servers. It helps with common prompt engineering tasks:

  • Generate starter prompts
  • Iterate and refine with each run
  • Break down complex tasks through prompt chaining and structured outputs
  • Provide easy access to code for seamless Large Language Model (LLM) integration via APIs

Agent Builder also enhances intelligent app's capabilities with tool use:

  • Connect to existing MCP servers
  • Build new MCP servers from scaffolds
  • Use function calling to connect to external APIs and services

Screenshot showing the Agent Builder interface with prompt engineering and testing capabilities.

Create, edit, and test prompts

To access Agent Builder, use either of these options:

  • In the AI Toolkit view, select Agent Builder
  • Select Try in Agent Builder from a model card in the model catalog

To test a prompt in Agent Builder, follow these steps:

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

    Screenshot showing the model selection dropdown in Agent Builder.

  2. Enter a User prompt and optionally enter a System prompt.

    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.

    Tip

    Describe your project idea using natural language to generate prompts automatically. Screenshot showing natural language prompt generation in Agent Builder.

  3. Select Run to send the prompts to the model.

  4. Optionally, select Add Prompt to add more prompts or Add to Prompts to build conversation history.

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

Use MCP servers

MCP server is a tool that allows you to connect to external APIs and services, enabling your agent to perform actions beyond just generating text. For example, you can use an MCP server to access databases, call web services, or interact with other applications.

Use the agent builder to discover and configure featured MCP servers, connect to existing MCP servers, or build a new MCP server from scaffold.

Note

Using MCP servers might require either Node or Python environment. AI Toolkit validates your environment to ensure that the required dependencies are installed. After installing, use the command npm install -g npx to install npx. If you prefer Python, we recommend using uv

AI Toolkit provides a list of featured MCP servers that you can use to connect to external APIs and services.

To configure an MCP server from featured selections, follow these steps:

  1. In the Tools section, select + MCP Server, and then select + Add server in the Quick Pick.
  2. Select Use Featured MCP Servers from the dropdown list.
  3. Choose an MCP server that meets your needs. Screenshot showing the connect to MCP server interface in Agent Builder.
  4. Enter a name for the server.
  5. Select tools you want to use. Screenshot showing the select tools interface in Agent Builder.

Use an existing MCP server

Tip

Find MCP servers in these reference servers.

To use an existing MCP server, follow these steps:

  1. In the Tools section, select + MCP Server, and then select + Add server in the quick pick.
  2. Select Connect to an Existing MCP Server
  3. Select an option from the dropdown list to specify how you want to connect to the MCP server:
    • Command (stdio): Run a local command that implements the MCP protocol
    • HTTP (server-sent events): Connect to a remote server that implements the MCP protocol
  4. Select tools from the MCP server if there are multiple tools available.
  5. Enter your prompts and select Run to test the connection.

Here's an example of configuring the Filesystem server in AI Toolkit:

  1. In the Tools section, select + MCP Server, and then select + Add server in the Quick Pick.

  2. Select Connect to an Existing MCP Server

  3. Select Command (stdio)

    Note

    Some servers use the Python runtime and the uvx command. The process is the same as using the npx command.

  4. Navigate to the Server instructions and locate the npx section.

  5. Copy the command and args into the input box in AI Toolkit. For the Filesystem server example, it's npx -y @modelcontextprotocol/server-filesystem /Users/<username>/.aitk/examples

  6. Input a name for the server.

  7. Optionally, enter extra environment variables. Some servers might require extra environment variables such as API keys. In this case, AI Toolkit fails at the stage of adding tools and a file mcp.json opens, where you can enter the required server details following the instructions provided by each server. Screenshot showing an example of a missing arg exception After you complete the configuration: 1. Navigate back to Tools section and select + MCP Server 1. Select the server you configured from the dropdown list

  8. Select the tools you want to use.

connect to MCP server

AI Toolkit also provides a scaffold to help you build a new MCP server. The scaffold includes a basic implementation of the MCP protocol, which you can customize to suit your needs.

Build a new MCP server

To build a new MCP server, follow these steps:

  1. In the Tools section, select + MCP Server, and then select + Add server in the quick pick.
  2. Select Create a New MCP Server
  3. Select a programming language from the dropdown list: Python or TypeScript
  4. Select a folder to create the new MCP server project in.
  5. Enter a name for the MCP server project.

Animated GIF showing how to use the scaffold mcp

After you create the MCP server project, you can customize the implementation to suit your needs. The scaffold includes a basic implementation of the MCP protocol, which you can modify to add your own functionality.

You can also use the agent builder to test the MCP server. The agent builder sends the prompts to the MCP server and displays the response.

Follow these steps to test the MCP server:

Note

To run the MCP Server in your local dev machine, you need: Node.js or Python installed on your machine.

  1. Open VS Code Debug panel. Select Debug in Agent Builder or press F5 to start debugging the MCP server.
  2. Use AI Toolkit Agent Builder to test the server with the following prompt:
    1. System Prompt: You are a weather forecast professional that can tell weather information based on given location.
  3. The server is automatically connected to Agent Builder.
  4. Select Run to test the server with the prompt.

Animated GIF showing the debug mcp process

Use function calling

Function calling connects your agent to external APIs and services.

Screenshot showing the Add Custom Function Tool dialog with options to add tools by example or upload schemas.

  1. In Tools, select Add Tool, then Custom Tool.
  2. Choose how to add the tool:
    • By Example: Add from a JSON schema example
    • Upload Existing Schema: Upload a JSON schema file
  3. Enter the tool name and description, then select Add.
  4. Provide a mock response in the tool card.

Screenshot showing a function calling tool card with weather tool configuration.

  1. Run the agent with the function calling tool.

Use function calling tools in the Evaluation tab by entering mock responses for test cases.

Screenshot showing function calling tool usage in the evaluation tab.

Structured output

Structured output support helps you design prompts to deliver outputs in a structured, predictable format.

Animated GIF showing how to use structured output

To test using structured output in Agent Builder, follow these steps:

  1. Select the Structure output from the left area, and select json_schema.

  2. Select Prepare schema, and then select Select local file to use your own schema, or select Use an example to use a predefined schema.

    If you proceed with an example, you can select a schema from the dropdown list.

  3. Select Run to send the prompts to the selected model.

  4. You can also edit the schema by selecting name of the schema.

    Screenshot showing the edit schema dropdown in Agent Builder.

Integrate prompt engineering into your application

After experimenting with models and prompts, you can get into coding right away with the automatically generated Python code.

Animated GIF showing the generated Python code

To view the Python code, follow these steps:

  1. Select View Code.

  2. For models hosted on GitHub, select the inference SDK you want to use.

    AI Toolkit generates the code for the model you selected by using the provider's client SDK. For models hosted by GitHub, you can choose which inference SDK you want to use: Azure AI Inference SDK or the SDK from the model provider, such as OpenAI SDK or Mistral API.

  3. The generated code snippet is shown in a new editor, where you can copy it into your application.

    To authenticate with the model, you usually need an API key from the provider. To access models hosted by GitHub, generate a personal access token (PAT) in your GitHub settings.

What you learned

In this article, you learned how to:

  • Use the AI Toolkit for VS Code to test and debug your agents.
  • Discover, configure, and build MCP servers to connect your agents to external APIs and services.
  • Set up function calling to connect your agents to external APIs and services.
  • Implement structured output to deliver predictable results from your agents.
  • Integrate prompt engineering into your application with generated code snippets.

Next steps

梦见别人家盖房子是什么意思 丝瓜什么人不能吃 湿疹用什么药膏最好 什么菜降血压效果最好 月经前腰疼的厉害是什么原因
天可以加什么偏旁 俄罗斯乌拉是什么意思 昝是什么意思 缪在姓氏中读什么 腋臭看什么科
独在异乡为异客的异是什么意思 10年属什么生肖 睡眠浅是什么原因 口干舌燥吃点什么药 ts是什么意思
女人打呼噜是什么原因 小郡肝是什么 尽虚空遍法界什么意思 401什么意思 平肝潜阳是什么意思
金木水火土各代表什么hcv8jop5ns4r.cn 慢性肠胃炎吃什么药hcv8jop5ns9r.cn 心脏早搏是什么症状hcv8jop7ns5r.cn 肌酐高是什么原因引起的hcv9jop0ns2r.cn 咨询是什么意思hcv7jop5ns3r.cn
肠胃炎吃什么消炎药hcv8jop2ns5r.cn 龟头炎用什么药治疗hcv8jop4ns7r.cn 安属于五行属什么hcv9jop3ns0r.cn 肛门溃烂用什么药膏hcv8jop5ns5r.cn 定海神针什么意思hcv7jop5ns3r.cn
为什么女生喜欢腹肌hcv7jop4ns7r.cn 眼睛有红血丝是什么原因hcv7jop5ns6r.cn 嘴巴经常长溃疡是什么原因hcv9jop5ns9r.cn 儿童心肌酶高有什么症状hcv8jop8ns9r.cn 桃是什么生肖hcv8jop0ns6r.cn
梦见别人给我介绍对象是什么意思hcv7jop7ns0r.cn 什么东西蛋白质最高hcv8jop3ns8r.cn 河北有什么山hcv9jop7ns2r.cn 饺子都有什么馅hcv7jop6ns0r.cn 旦角是什么意思hcv9jop2ns8r.cn
百度