Sdk python 0 2#4
Merged
Merged
Conversation
Introduce AgentWorkflowsResource for multi-agent workflow monitoring (create, start, complete, register_agent, create_execution, create_interaction, get_analytics) and expose it on the WhiteBoxAI client as `agent_workflows`. Fix a TYPE_CHECKING import (explainai.client -> whiteboxai.client) and remove unused imports in crewai_monitor and langchain_agents. Also remove CHANGELOG.md from .gitignore.
Update CI to treat pytest exit code 5 (no tests collected) as a non-fatal case to avoid failing runs. Bump sdk_version from 0.1.0 to 0.2.0. Remove unused pathlib import in git_utils. Use .get("id") when creating agent workflows to access the id from the returned dict. Fix TYPE_CHECKING import path from explainai.client to whiteboxai.client.
…ox-python-sdk into sdk-python-0-2
Large cleanup: standardizes imports and formatting across examples and src (consistent quote styles, trailing commas, single-line argument lists), reorders and consolidates imports (e.g. tenacity moved, DataLoader import), and replaces legacy explainai references with whiteboxai. Integrations package (__init__) was cleaned up to consistently build __all__ and re-export monitors/wrappers; git_utils messages and URL handling were slightly reformatted. Client/offline initialization and config defaults were tidied (commas, param order), and examples updated for consistent style. NOTE: there's an apparent accidental edit in integrations/boosting.py where the ImportError branch is replaced with a stray "r" — this will cause a syntax error and should be fixed to re-raise a proper ImportError.
Adjust various project files: raise flake8 max-complexity to 22; tidy example scripts by removing unused imports/variables, normalizing print formatting, and using explicit Exception in except blocks; remove coverage reporting options from pytest.ini; and clean up library modules by removing unused imports, simplifying logging messages, and minor call/typing adjustments in crewai_monitor.py, monitor.py, offline.py, and privacy.py. These are maintenance changes to reduce noise, address lint warnings, and simplify example code.
Update CI workflow to correctly capture pytest exit codes and treat exit code 5 (no tests collected) as success. Propagate other pytest exit codes properly. Also remove several unused imports across example scripts to avoid unnecessary dependencies and linter warnings: remove LangChain imports in the RAG example, drop unused time/typing/numpy imports in offline_mode_example, remove unused numpy in sklearn_integration, and remove the redundant top-level `import tensorflow as tf` in tensorflow_example (keeping the guarded `from tensorflow import keras`).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces the 0.2.0 release of the WhiteBoxAI Python SDK, featuring major enhancements, new integrations, and improved documentation. The most significant changes include a breaking update to import paths, new Git and multi-agent monitoring integrations, expanded optional dependencies, and a comprehensive documentation overhaul using MkDocs.
Major Features and Integrations:
Git Integration:
Adds automatic Git context detection for model versioning, including the
GitContextclass,detect_git_context(), andvalidate_git_context()with support for both GitPython and subprocess fallback. [1] [2]Multi-Agent Monitoring:
Introduces full support for CrewAI and LangChain multi-agent workflows, including new classes (
CrewAIMonitor,MultiAgentCallbackHandler,LangGraphMultiAgentMonitor) for tracking agents, tasks, and interactions. [1] [2] [3] [4]Breaking and Dependency Changes:
BREAKING: Import Path Update:
All imports have changed from
explainai.*towhiteboxai.*. Users must update their code accordingly. [1] [2]Dependency Updates:
httpxto >=0.25.0 and addspandasandtenacityas core dependencies.git,crewai) and updates theallextra to include all available integrations. [1] [2] [3]Documentation and Versioning:
MkDocs Documentation Overhaul:
Adds a complete MkDocs configuration with Material theme, navigation, code highlighting, and example-rich index and integration pages. [1] [2] [3]
Version Bump and Changelog:
Updates version to 0.2.0 across metadata and changelog, and adds release links. [1] [2] [3]
These changes bring significant new capabilities and require users to update their import paths and review new integration options. The improved documentation should make onboarding and advanced usage much easier.