Refactor: Rename "agent" domain to "operator" across client SDK#118
Merged
Conversation
- Implemented OperatorRecommendationRequestContextType0 model for handling recommendation request context. - Created OperatorRecommendationResponse model to encapsulate operator recommendations and query details. - Developed OperatorRequest model for managing operator requests with various attributes including message, history, context, and selection criteria. - Introduced OperatorResponse model to represent responses from operator interactions, including content, metadata, and execution details. - Added error handling with OperatorResponseErrorDetailsType0 and metadata with OperatorResponseMetadataType0. - Implemented token usage tracking with OperatorResponseTokensUsedType0. - Updated SelectionCriteria model to reflect operator selection criteria, including capabilities and preferred modes. - Created comprehensive unit tests for OperatorClient and its associated dataclasses to ensure functionality and reliability.
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.
Summary
This PR performs a comprehensive domain terminology refactor, renaming all "agent" concepts to "operator" throughout the
robosystems_clientSDK. The change spans API endpoints, client classes, data models, and tests — affecting 36 files with a consistent, mechanical rename.Key Accomplishments
API layer: Renamed the
api/agent/module toapi/operator/, including all endpoint functions:auto_select_agent→auto_select_operatorexecute_specific_agent→execute_specific_operatorget_agent_metadata→get_operator_metadatalist_agents→list_operatorsrecommend_agent→recommend_operatorbatch_process_queriesupdated to use operator terminologyClient layer: Renamed
AgentClienttoOperatorClient(agent_client.py→operator_client.py) with all method signatures and internal references updated. The facade client is updated to expose the new naming.Models layer: Renamed all 18+ model classes from
Agent*toOperator*(e.g.,AgentRequest→OperatorRequest,AgentResponse→OperatorResponse,AgentRecommendation→OperatorRecommendation, etc.), including nested/auxiliary types for context, metadata, error details, and tokens used.Public exports: Updated
clients/__init__.pyandmodels/__init__.pyto export the renamed symbols.Extension operations: Updated references in
op_auto_map_elements.pyandop_create_mapping_association.pyto align with the new operator terminology.Tests: Renamed
test_agent_client.pytotest_operator_client.pywith all test cases updated to reference operator models and client methods.Breaking Changes
Agent*model classes have been removed and replaced withOperator*equivalents.AgentClientno longer exists; consumers must migrate toOperatorClient.robosystems_client.api.agenttorobosystems_client.api.operator.robosystems_client.modelsorrobosystems_client.clientswill need to be updated.Downstream services and integrations must be updated in coordination with this change.
Testing Notes
test_operator_client.pywith updated class/method/model references.agentimports before merging.Infrastructure Considerations
api.agent,AgentClient) will need corresponding updates.🤖 Generated with Claude Code
Branch Info:
refactor/ai-operator-agentmainCo-Authored-By: Claude noreply@anthropic.com