This repo contains a simple example of a command-line AI agent utilizing Azure AI Agent Service.
To run this sample:
- Follow the setup instructions in the docs. The basic agent setup is sufficient for this example.
- Clone this repo and install the requirements, e.g., using
pip install -r requirements.txt
. - Rename
.env.example
to.env
and add the connection string of your AI Foundry project. - Ensure that you can authenticate using Azure Default Credential, e.g., by logging into your Azure CLI (
az login
). - Optional: Review the
get_sales_data
function and modify it or add your own custom functions for the assistant to call. - 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".