Share via


Quickstart: Create an agent with the Agents SDK

Note

The Agents SDK is generally available ((GA)) for C#/.NET and JavaScript/Node.js.

This example shows you how to download and run the Empty Agent sample from GitHub.

Prerequisites

You need a few things before you get started. These steps use the Empty Agent sample, but any Agents SDK sample could be used.

Set up and run the sample agent

There are three ways to get started:

  • Clone and run the Empty/echo agent sample available on GitHub
  • Use the Microsoft 365 Agents Toolkit. The Agents Toolkit has two built-in templates for Visual Studio and Visual Studio Code that use the Microsoft 365 Agents SDK for starting with an Echo/Empty Agent and a Weather Agent that uses Azure Foundry or OpenAI Services with either Semantic Kernel or LangChain
  • Use the CLI, as shown in the quickstart

The steps depend on the language you're using. Follow the instructions for your language of choice.

  1. Open the solution file EmptyAgent.csproj in Visual Studio.

  2. Run the project.

At this point, your agent is running locally using port 3978.

Test your agent locally

  1. If you haven't done so already, install the Agents Playground

    winget install agentsplayground
    
  2. Start the Agent in VS or VS Code

  3. Start the Teams App Tester. At a command prompt: agentsplayground

    • The tool will open a web browser showing the Teams App Test Tool, ready to send messages to your agent.
  4. Interact with the Agent via the browser

Next Steps