Skip to content

HenriSchulte-MS/Basic-Azure-AI-Agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic AI Agent with Azure AI Agent Service

This repo contains a simple example of a command-line AI agent utilizing Azure AI Agent Service.

To run this sample:

  1. Follow the setup instructions in the docs. The basic agent setup is sufficient for this example.
  2. Clone this repo and install the requirements, e.g., using pip install -r requirements.txt.
  3. Rename .env.example to .env and add the connection string of your AI Foundry project.
  4. Ensure that you can authenticate using Azure Default Credential, e.g., by logging into your Azure CLI (az login).
  5. Optional: Review the get_sales_data function and modify it or add your own custom functions for the assistant to call.
  6. Run basic_ai_agent.py in your Terminal. The assistant can call the custom functions as well as write and execute Python code on the fly (Code Interpreter). Try asking "Please give me a bar chart of the sales data for 2024".

Screenshot of using the agent in the Terminal

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages