Skip to content

feat: demo database seed and multi-tool end-to-end demo - #41

Merged
getdownandcode merged 2 commits into
mainfrom
feat/demo-seed-and-script
Sep 29, 2026
Merged

getdownandcode merged 2 commits into
mainfrom
feat/demo-seed-and-script

Conversation

@getdownandcode

Copy link
Copy Markdown
Owner

Description

This PR implements Milestone 12 Task 1 (M12-T01).

Changes

  • scripts/seed_demo_db.sql: Seeds sample products and orders tables with realistic data.
  • examples/demo.py: End-to-end script demonstrating an autonomous ReAct agent resolving a multi-step analytical problem by querying a seeded database using sql_readonly and computing revenue + sales tax using the calculator tool. Supports completely offline execution via FakeLLMClient and live execution with Gemini or OpenAI when API keys are available.
  • tests/integration/test_demo.py: Comprehensive tests verifying SQL seed execution, multi-tool agent reasoning workflow, and demo script offline execution.

Verification

  • 228 passing tests across unit and integration suites
  • Code quality verified with ruff linter, formatter, and mypy (strict type-checking, 0 errors)

- Add tests verifying existence and execution of scripts/seed_demo_db.sql
- Test multi-step reasoning workflow combining sql_readonly with calculator
- Test offline execution mode of examples/demo.py
- Create scripts/seed_demo_db.sql with demo products and orders datasets
- Implement examples/demo.py solving multi-step SQL querying + AST calculator problem
- Support offline execution mode via FakeLLMClient alongside live LLM providers
- Update integration tests in tests/integration/test_demo.py to verify seed and demo execution

@getdownandcode getdownandcode left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self-review: scripts/seed_demo_db.sql, examples/demo.py, and tests/integration/test_demo.py fully satisfy M12-T01 criteria with clean multi-step reasoning, offline testability, and ANSI standard SQL tables.

@getdownandcode
getdownandcode merged commit b270536 into main Sep 29, 2026
1 check passed
@getdownandcode
getdownandcode deleted the feat/demo-seed-and-script branch September 29, 2026 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant