8000 GitHub - blaesild/aula-agent: For testing agent capabilities
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

blaesild/aula-agent

 
 

Repository files navigation

agent-test

A sample project demonstrating an AI-powered agents, built with FastAPI and Dash.

Features

  • FastAPI backend exposing a /chat endpoint for conversational queries via LLM agents.
  • Dash front-end UI for real-time chat with selectable AI models and agents.
  • Research Agent: performs multi-step Google searches and fetches page content.
  • Aula Agent: integrates with the Danish Aula school system to fetch profiles, messages, calendar events, etc.
  • Configuration via environment variables (.env).

Prerequisites

  • Python 3.13+
  • A valid Azure OpenAI key and endpoint (optional)
  • Anthropic API credentials (optional)
  • Aula login credentials (for aula_agent)
  • git, pip or poetry

Please check src/constants.py, and list available models.

Installation

  1. Clone the repository:

    git clone git@github.com:A-Hoier/Aula-AI.d.git
    cd agent-playground
  2. Install dependencies:

    uv sync
  3. Copy the example environment file and fill in your credentials:

    cp .env.example .env
  4. Edit .env and set all required variables (see Configuration below).

Configuration

The application uses [pydantic-settings] to load variables from .env.

  • Frontend

    • BACKEND_URL (e.g. http://localhost:8000/)

Usage

Use docker compose:

docker compose up

Alternatively, run the backend and frontend separately:

Start the backend

uv run uvicorn api:app --reload
  • The API will be available at http://localhost:8000
  • Swagger UI docs at http://localhost:8000/docs

Start the Dash UI

in another terminal:

uv run python app.py
  • Opens a local server (default http://127.0.0.1:8050) with the chat interface.

Chatting

  • Select an LLM model (e.g. gpt-4o) and an agent (research_agent or aula_agent).
  • Type a message and hit Send or enter.

About

For testing agent capabilities

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.7%
  • Dockerfile 2.5%
  • Shell 0.8%
0