Rename extensions package to clients with facade refactor#90
Conversation
## Summary This commit introduces a suite of new client extensions for the RoboSystems API, enhancing functionality with Server-Sent Events (SSE) support. The new clients include: - **AgentClient**: Facilitates intelligent agent execution with automatic strategy selection and SSE support. - **DocumentClient**: Manages document operations including upload, search, and deletion, with integration for OpenSearch. - **FileClient**: Handles file operations as first-class resources, supporting uploads and lifecycle management. - **DataFrame utilities**: Provides utilities for seamless integration between query results and Pandas DataFrames. ## Key Changes - Updated `pyproject.toml` to include new client paths. - Added comprehensive documentation for each new client, detailing usage and capabilities. ## Testing Notes - Ensure all new clients function correctly with the RoboSystems API. - Validate SSE functionality in the AgentClient for real-time updates. ## Infrastructure Considerations - Review the integration of new clients with existing API endpoints to ensure compatibility.
|
@claude please review this PR |
|
Claude finished @jfrench9's task in 1m 36s —— View job PR Review: Rename
|
This commit updates the `robosystems_client` to replace references from `extensions` to `clients`, reflecting a shift in the architecture. Key changes include: - Updated `pyproject.toml` to exclude test directories more broadly. - Refactored the `__init__.py` file to use the new `clients` instance for monitoring and executing queries. - Revised the `README.md` to reflect the new import paths for client classes, ensuring accurate documentation for users. These changes enhance clarity and maintainability of the codebase.
Summary
Renames the
robosystems_client/extensionspackage torobosystems_client/clientsto better reflect the module's purpose as a collection of API client implementations. The main orchestrator class is also renamed fromextensions.pytofacade.py, clarifying its role as a facade over the individual domain clients.Key Changes
robosystems_client/extensions/→robosystems_client/clients/__init__.pyexports updated accordinglyextensions.py→facade.pyto better describe the pattern used (Facade pattern over multiple domain-specific clients)clientsterminologyrobosystems_client.clientsinstead ofrobosystems_client.extensionsBreaking Changes
robosystems_client.extensionsmust be changed torobosystems_client.clientsextensionsmodule entry point (e.g.,from robosystems_client.extensions.extensions import ...) is nowfrom robosystems_client.clients.facade import ...Testing Notes
Infrastructure Considerations
robosystems_client.extensionswill need to be updated to point torobosystems_client.clients🤖 Generated with Claude Code
Branch Info:
refactor/sdk-extensions-rename-clientsmainCo-Authored-By: Claude noreply@anthropic.com