wenjin272 opened a new issue, #432: URL: https://github.com/apache/flink-agents/issues/432
### Search before asking - [x] I searched in the [issues](https://github.com/apache/flink-agents/issues) and found nothing similar. ### Description Currently, when user want to declare a resource in agent, they should write code as fllow: java: ``` ResourceDescriptor.Builder.newBuilder(OllamaEmbeddingModelSetup.class.getName()) .addInitialArgument("connection", "embeddingConnection") .addInitialArgument("model", OLLAMA_MODEL) .build(); ``` python: ``` ResourceDescriptor( clazz=Constant.OLLAMA_CHAT_MODEL_CONNECTION, request_timeout=240.0 ) ``` which requires importing the specific integration module. To make python also point a resource by class name, and provide constant strings for built-in resource, we can move the integration importing. ### Are you willing to submit a PR? - [ ] I'm willing to submit a PR! -- 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]
