feat(HYBIM-730): rename Log Streams → Agent Streams, Metrics → Evaluators#100
Open
adityamehra wants to merge 1 commit into
Open
feat(HYBIM-730): rename Log Streams → Agent Streams, Metrics → Evaluators#100adityamehra wants to merge 1 commit into
adityamehra wants to merge 1 commit into
Conversation
…tors Introduces the new canonical domain entity names required by HYBIM-730: - **AgentStream** replaces LogStream (new class in agent_stream.py that subclasses LogStream; returns AgentStream from Project methods) - **AgentStreams** replaces LogStreams service class (agent_streams.py); module-level helpers: get_agent_stream, list_agent_streams, create_agent_stream, enable_evaluators - **Evaluator** replaces Metric base class (evaluator.py) - **LlmEvaluator**, **CodeEvaluator**, **LocalEvaluator**, **SplunkAOEvaluator** replace their Metric-prefixed counterparts - **Evaluators** replaces Metrics service class (evaluators.py); helpers: create_custom_llm_evaluator, get_evaluators, delete_evaluator Backward compatibility: - Old names (LogStream, Metric, LlmMetric, …) are preserved via PEP 562 __getattr__ in __init__.py and emit DeprecationWarning - Project.create_log_stream / list_log_streams / logstreams delegate to the new methods with DeprecationWarning - __future__/agent_stream.py and __future__/evaluator.py shims added The underlying API endpoints (/log_streams, /scorers) are unchanged; the server-side rename is tracked separately. Closes HYBIM-730 Co-authored-by: Cursor <cursoragent@cursor.com>
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
Implements the SDK-side domain entity renames from HYBIM-730:
AgentStreamreplacesLogStreamas the canonical agent-stream classEvaluator(andLlmEvaluator,CodeEvaluator,LocalEvaluator,SplunkAOEvaluator) replacesMetricand its subclassesDeprecationWarningand remain functionalThe underlying API endpoints (
/log_streams,/scorers) are unchanged; the server-side rename is tracked separately.New API at a glance
Backward compatibility
Old names remain functional via PEP 562
__getattr__in__init__.py:Files changed
src/splunk_ao/agent_stream.pyAgentStreamsubclass ofLogStreamsrc/splunk_ao/agent_streams.pyAgentStreamsservice +get_agent_stream,list_agent_streams,create_agent_stream,enable_evaluatorssrc/splunk_ao/evaluator.pyEvaluator,LlmEvaluator,CodeEvaluator,LocalEvaluator,SplunkAOEvaluatorsrc/splunk_ao/evaluators.pyEvaluatorsservice +create_custom_llm_evaluator,get_evaluators,delete_evaluatorsrc/splunk_ao/__future__/agent_stream.pysrc/splunk_ao/__future__/evaluator.pysrc/splunk_ao/__init__.py__getattr__for old namessrc/splunk_ao/project.pycreate_agent_stream,list_agent_streams,agent_streams; deprecate old counterpartsdocs/HYBIM-730-domain-entity-rename.mdTest plan
splunk_ao.LogStreamandsplunk_ao.MetricemitDeprecationWarningAgentStream→LogStream→StateManagementMixin;Evaluator→Metric→StateManagementMixinAgentStreamagainst a live environmentProject.create_agent_streamround-trips correctlyRelated
Made with Cursor