Skip to content

Dependency updates, tooling modernization and configurable AI agent#9

Merged
piiq merged 8 commits intomainfrom
march-update
Mar 12, 2026
Merged

Dependency updates, tooling modernization and configurable AI agent#9
piiq merged 8 commits intomainfrom
march-update

Conversation

@piiq
Copy link
Owner

@piiq piiq commented Mar 12, 2026

March Update: Tooling Modernization and Configurable AI Agent

This PR updates the project's development toolchain, introduces support for configurable AI models, and resolves several API and dependency-related issues.

Key Changes

🛠 Modernized Tooling & Type Safety

  • Replaced Black/Mypy with Ruff & Ty: Transitioned to ruff for both linting and formatting and integrated ty (Rust-based type checker) for faster static analysis.
  • CI/CD Integration: Updated .github/workflows/lint_and_test.yml to include ruff check, ruff format --check, and ty check.
  • Pyproject Standardization: Updated pyproject.toml to follow modern standards (PEP 639 for licenses) and formatted the file using tombi.

🤖 Configurable AI Agent

  • Introduced `AGENT_MODEL`: Added support for customizing the AI model via an environment variable (defaulting to `qwen/qwen3.5-397b-a17b`).
  • Configuration Updates: Updated `.env.example`, `config.py`, and Kubernetes manifests to support the new model configuration.

🐛 Bug Fixes & API Improvements

  • JSON Compliance: Fixed a `ValueError` in the `/v1/tasks` endpoint where `NaN` values from pandas DataFrames were breaking JSON serialization. All missing values are now safely returned as `"N/A"`.
  • OpenAPI Cleanup: Excluded the internal `/v1/query` endpoint from the public OpenAPI documentation to streamline the widget interface.

📦 Dependencies & Documentation

  • Python Support: Updated `requires-python` to support up to version `3.13` (less than `3.14`).
  • Dependency Upgrades: Bumped several core packages, including `openbb-platform-api`, `aiohttp`, and `pandas`.
  • Documentation Refactor: Renamed `llms.md` to `AGENTS.md` and updated all relevant symlink targets.

Technical Notes

  • Redundant `# type: ignore` comments have been removed throughout the codebase.
  • Pytest configuration now includes filters for persistent third-party deprecation warnings (`magentic`, `openbb-core`).
  • All 72 tests are passing with clean output.

piiq added 6 commits March 12, 2026 12:24
Update Python version support to <3.14, exclude /v1/query from OpenAPI
docs, and upgrade several dependencies including openbb-platform-api and
aiohttp. Added pytest warnings filters for deprecation messages.
Introduce AGENT_MODEL environment variable to allow customization of the
AI model used by the agent. The default model is set to
qwen/qwen3.5-397b-a17b. Configuration is updated across all relevant
files including .env.example, README, config, models, and Kubernetes
manifests. All agent instances now use the configured model instead of
hardcoded values.
- Replace black with ruff for formatting checks
- Add type checking step using ty
- Remove redundant type ignore comments throughout the codebase
- Update version to 0.3.0
Replace black with ruff format and add ty check command for type
checking
@piiq piiq changed the title Exclude /v1/query from OpenAPI and enhance agent model support Dependency updates, tooling modernization and configurable AI agent Mar 12, 2026
piiq added 2 commits March 12, 2026 13:34
Split long content lines in test_agent.py for better readability and PEP
8 compliance.
@piiq piiq merged commit f3d91c1 into main Mar 12, 2026
1 check passed
@piiq piiq deleted the march-update branch March 12, 2026 10:38
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