### Search before asking - [x] I searched in the [issues](https://github.com/apache/flink-agents/issues) and found nothing similar. ### Description Currently, when user call from_datastream and then to_table when build an flink job with agent, it will throw exception for table env is null. ### How to reproduce agent_env.from_datastream(input_stream).apply(agent).to_table() ### Version and environment all versions ### Are you willing to submit a PR? - [x] I'm willing to submit a PR!