← CookbookView source on GitHub ↗

Banner

LlamaIndex Starter Agent

A powerful AI agent template built with LlamaIndex that demonstrates how to create intelligent agents using the LlamaIndex framework. This starter project implements a Task Management Assistant using the Nebius AI model to showcase LlamaIndex's capabilities in building practical AI applications.

Features

References and Acknowledgements

Tech Stack

Prerequisites

Installation

1. Get the code

git   clone    https://github.com/nebius/token-factory-cookbook/
cd    agents/llamaindex-task-timer

2. Install dependencies:

# create a venv and install dependencies
uv  sync

Or install using python pip

pip install -r requirements.txt

3 - Create .env file

Create a .env file in the project root and add your Nebius API key:

cp env.example .env
NEBIUS_API_KEY=your_api_key_here

Running the agent

Using uv

uv  sync
uv  run   python agent.py

Using python pip

python agent.py

The agent will start with a welcome message and show available capabilities. You can interact with it by typing your questions or commands.

Example Implementation

This starter implements a Task Management Assistant with the following capabilities:

Example queries:

Extending the Agent

To add your own functionality:

  1. Create new function tools using FunctionTool.from_defaults()
  2. Add your tools to the agent's tool list
  3. Implement your custom logic in the functions