rosemarYuan commented on code in PR #756:
URL: https://github.com/apache/flink-agents/pull/756#discussion_r3394001395


##########
python/flink_agents/api/events/event_type.py:
##########
@@ -0,0 +1,66 @@
+################################################################################
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+# limitations under the License.
+#################################################################################
+"""Built-in event-type constants, sourced from each ``XxxEvent.EVENT_TYPE``."""
+
+from __future__ import annotations
+
+from flink_agents.api.events.chat_event import (
+    ChatRequestEvent as _ChatRequestEvent,
+)
+from flink_agents.api.events.chat_event import (
+    ChatResponseEvent as _ChatResponseEvent,
+)
+from flink_agents.api.events.context_retrieval_event import (
+    ContextRetrievalRequestEvent as _ContextRetrievalRequestEvent,
+)
+from flink_agents.api.events.context_retrieval_event import (
+    ContextRetrievalResponseEvent as _ContextRetrievalResponseEvent,
+)
+from flink_agents.api.events.event import (
+    InputEvent as _InputEvent,
+)
+from flink_agents.api.events.event import (
+    OutputEvent as _OutputEvent,
+)
+from flink_agents.api.events.tool_event import (
+    ToolRequestEvent as _ToolRequestEvent,
+)
+from flink_agents.api.events.tool_event import (
+    ToolResponseEvent as _ToolResponseEvent,
+)
+
+
+class EventType:
+    """Namespace of built-in event-type constants.
+
+    Usage: ``@action(EventType.InputEvent)``.
+    """
+
+    InputEvent: str = _InputEvent.EVENT_TYPE
+    OutputEvent: str = _OutputEvent.EVENT_TYPE
+    ChatRequestEvent: str = _ChatRequestEvent.EVENT_TYPE
+    ChatResponseEvent: str = _ChatResponseEvent.EVENT_TYPE
+    ToolRequestEvent: str = _ToolRequestEvent.EVENT_TYPE
+    ToolResponseEvent: str = _ToolResponseEvent.EVENT_TYPE
+    ContextRetrievalRequestEvent: str = 
_ContextRetrievalRequestEvent.EVENT_TYPE
+    ContextRetrievalResponseEvent: str = 
_ContextRetrievalResponseEvent.EVENT_TYPE
+
+    def __init__(self) -> None:

Review Comment:
   Thanks for your suggestions regarding the review. Dropped the `__init__` 
guard. Agreed it adds little value here, so removing it aligns with that idiom.
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to