Skip to content

Conversation

@copybara-service
Copy link

refactor: Fixing minor implementation details in agent/ classes

  1. Simplifying Javadoc: Removing redundant @param and @return tags in ActiveStreamingTool.java.
  2. Refactoring ConfigAgentUtils.java: Replacing a series of if-else if statements with a more concise map
  3. Improving Logging: Changing System.err.println to logger.warn in LlmAgent.java.
  4. Refining Exception Handling: Catching more specific exception types (ConfigurationException, RuntimeException, ReflectiveOperationException) in ToolResolver.java to provide better error handling and clarity, and updating method signatures accordingly.

1.  **Simplifying Javadoc:** Removing redundant `@param` and `@return` tags in `ActiveStreamingTool.java`.
2.  **Refactoring `ConfigAgentUtils.java`:** Replacing a series of `if-else if` statements with a more concise map
3.  **Improving Logging:** Changing `System.err.println` to `logger.warn` in `LlmAgent.java`.
4.  **Refining Exception Handling:** Catching more specific exception types (`ConfigurationException`, `RuntimeException`, `ReflectiveOperationException`) in `ToolResolver.java` to provide better error handling and clarity, and updating method signatures accordingly.

PiperOrigin-RevId: 860034646
@copybara-service copybara-service bot merged commit af4926a into main Jan 23, 2026
@copybara-service copybara-service bot deleted the test_859631080 branch January 23, 2026 11:48
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