Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ cp -v .env.example .env
Run integration tests to validate that your API keys are set up correctly.

```bash
PYTHONPATH="." uv run --env-file .env pytest -sv tests/tool_tests/test_integration.py
uv run --env-file .env pytest -sv tests/tool_tests/test_integration.py
```

## Reference Implementations
Expand Down Expand Up @@ -79,16 +79,16 @@ These warnings can be safely ignored, as they are the result of a bug in the ups
Interactive knowledge base demo. Access the gradio interface in your browser to see if your knowledge base meets your expectations.

```bash
PYTHONPATH="." uv run --env-file .env gradio src/1_basics/0_search_demo/app.py
uv run --env-file .env gradio src/1_basics/0_search_demo/app.py
```

Basic Reason-and-Act Agent- for demo purposes only.

As noted above, these are unnecessarily verbose for real applications.

```bash
# PYTHONPATH="." uv run --env-file .env src/1_basics/1_react_rag/cli.py
# PYTHONPATH="." uv run --env-file .env gradio src/1_basics/1_react_rag/app.py
# uv run --env-file .env src/1_basics/1_react_rag/cli.py
# uv run --env-file .env gradio src/1_basics/1_react_rag/app.py
```


Expand All @@ -97,16 +97,16 @@ As noted above, these are unnecessarily verbose for real applications.
Reason-and-Act Agent without the boilerplate- using the OpenAI Agent SDK.

```bash
PYTHONPATH="." uv run --env-file .env src/2_frameworks/1_react_rag/cli.py
PYTHONPATH="." uv run --env-file .env gradio src/2_frameworks/1_react_rag/langfuse_gradio.py
uv run --env-file .env src/2_frameworks/1_react_rag/cli.py
uv run --env-file .env gradio src/2_frameworks/1_react_rag/langfuse_gradio.py
```

Multi-agent examples, also via the OpenAI Agent SDK.

```bash
PYTHONPATH="." uv run --env-file .env gradio src/2_frameworks/2_multi_agent/efficient.py
uv run --env-file .env gradio src/2_frameworks/2_multi_agent/efficient.py
# Verbose option- greater control over the agent flow, but less flexible.
# PYTHONPATH="." uv run --env-file .env gradio src/2_frameworks/2_multi_agent/verbose.py
# uv run --env-file .env gradio src/2_frameworks/2_multi_agent/verbose.py
```

Python Code Interpreter demo- using the OpenAI Agent SDK, E2B for secure code sandbox, and LangFuse for observability. Refer to [src/2_frameworks/3_code_interpreter/README.md](src/2_frameworks/3_code_interpreter/README.md) for details.
Expand Down
8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ description = "Vector Institute Agent Bootcamp 202507"
readme = "README.md"
authors = [ {name = "Vector AI Engineering", email = "ai_engineering@vectorinstitute.ai"}]
license = "Apache-2.0"
repository = "https://github.com/VectorInstitute/agent-bootcamp"
requires-python = ">=3.12"
dependencies = [
"aiohttp>=3.12.14",
Expand All @@ -27,6 +26,13 @@ dependencies = [
"weaviate-client>=4.15.4",
]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
packages = ["src"]

[dependency-groups]
dev = [
"aieng-platform-onboard>=0.3.5",
Expand Down
2 changes: 1 addition & 1 deletion src/2_frameworks/3_code_interpreter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ Prerequisites:
Run:

```bash
PYTHONPATH="." uv run --env-file .env gradio src/2_frameworks/3_code_interpreter/app.py
uv run --env-file .env gradio src/2_frameworks/3_code_interpreter/app.py
```
2 changes: 1 addition & 1 deletion src/utils/tools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ This module contains various tools for LLM agents.

```bash
# Tool for getting a list of recent news headlines from enwiki
PYTHONPATH="." uv run --env-file .env python3 src/utils/tools/news_events.py
uv run --env-file .env python3 src/utils/tools/news_events.py
```
3 changes: 1 addition & 2 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
```bash
uv run pytest -sv tests/tool_tests/test_weaviate.py
uv run pytest -sv tests/tool_tests/test_code_interpreter.py
PYTHONPATH="." uv run pytest -sv tests/tool_tests/test_integration.py

uv run pytest -sv tests/tool_tests/test_integration.py
```
23 changes: 7 additions & 16 deletions tests/tool_tests/test_integration.py
Original file line number Diff line number Diff line change
@@ -1,30 +1,21 @@
"""Test cases for Weaviate integration."""

import json
import sys
from pathlib import Path
from typing import AsyncGenerator

import pytest
import pytest_asyncio
from dotenv import load_dotenv
from langfuse import get_client
from openai import AsyncOpenAI

# Add project root to path to allow imports from src
project_root = Path(__file__).parent.parent.parent
sys.path.insert(0, str(project_root))

import pytest # noqa: E402
import pytest_asyncio # noqa: E402
from dotenv import load_dotenv # noqa: E402
from langfuse import get_client # noqa: E402
from openai import AsyncOpenAI # noqa: E402

from src.utils import ( # noqa: E402
from src.utils import (
AsyncWeaviateKnowledgeBase,
Configs,
get_weaviate_async_client,
pretty_print,
)
from src.utils.langfuse.otlp_env_setup import ( # noqa: E402
set_up_langfuse_otlp_env_vars,
)
from src.utils.langfuse.otlp_env_setup import set_up_langfuse_otlp_env_vars


load_dotenv(verbose=True)
Expand Down
Loading