wenjin272 commented on code in PR #150: URL: https://github.com/apache/flink-agents/pull/150#discussion_r2339162533
########## python/flink_agents/api/decorators.py: ########## @@ -87,6 +87,41 @@ def chat_model_setup(func: Callable) -> Callable: return func +def embedding_model_connection(func: Callable) -> Callable: + """Decorator for marking a function declaring an embedding model connection. + + Parameters + ---------- + func : Callable + Function to be decorated. + + Returns: + ------- + Callable + Decorator function that marks the target function declare an embedding model + connection. + """ + func._is_embedding_model_connection = True + return func + + +def embedding_model_setup(func: Callable) -> Callable: + """Decorator for marking a function declaring an embedding model setup. + + Parameters + ---------- + func : Callable + Function to be decorated. + + Returns: + ------- + Callable + Decorator function that marks the target function declare an embedding model. + """ + func._is_embedding_model_setup = True + return func + + Review Comment: Should also add `add_embedding_model_setup` and `add_embedding_model_connection` in `AgentsExecutionEnvironment` and `Agent`. -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org