Elegance AI LabBack to Elegance AI →

Elegance AI Lab · Beginner

What is an AI agent?

Learn the fundamentals, then watch a simple enterprise agent use two tools.

Estimated time: 10 to 15 minutes · Level: Beginner

Model thinks. Tool does. Agent decides. Harness controls.

A model on its own only generates text. Give it tools, instructions, and a controlled loop and it becomes an agent: a system that decides what to do, takes action, and answers. The harness around it is what makes it reliable enough for enterprise use.

The example you will use

An employee leave assistant with exactly two tools: one checks an employee's leave balance, the other retrieves the company leave policy. It is kept simple on purpose. The same pattern later connects to SAP, Workday, or any enterprise system.

Sample company data. Not connected to a real HR system.

The agent loop

  1. 1User asks a question
  2. 2Model reads the question
  3. 3Model chooses a tool
  4. 4Tool receives an input
  5. 5Tool returns data
  6. 6Model uses the result
  7. 7Agent gives the final answer