addu390 commented on code in PR #631:
URL: https://github.com/apache/flink-agents/pull/631#discussion_r3104181301


##########
python/flink_agents/api/events/chat_event.py:
##########
@@ -36,9 +41,57 @@ class ChatRequestEvent(Event):
         The expected output schema of the chat model final response. Optional.
     """
 
-    model: str
-    messages: List[ChatMessage]
-    output_schema: OutputSchema | None = None
+    EVENT_TYPE: ClassVar[str] = "_chat_request_event"
+
+    def __init__(
+        self,
+        model: str,
+        messages: List[ChatMessage],
+        output_schema: OutputSchema | None = None,
+    ) -> None:
+        """Create a ChatRequestEvent."""
+        super().__init__(
+            type=ChatRequestEvent.EVENT_TYPE,
+            attributes={
+                "model": model,
+                "messages": messages,
+                "output_schema": output_schema,

Review Comment:
   Do you mean, to use
   ```
   Map.of(
           "model", model,
           "messages", messages,
           "output_schema", outputSchema
       )
   ```
   In java?



-- 
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