You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "GreatEugenius (via GitHub)" <gi...@apache.org> on 2026/06/18 09:17:15 UTC
[PR] [Feature] Support tool parameter injection [flink-agents]
GreatEugenius opened a new pull request, #854:
URL: https://github.com/apache/flink-agents/pull/854
<!--
* Thank you very much for contributing to Flink Agents.
* Please add the relevant components in the PR title. E.g., [api], [runtime], [java], [python], [hotfix], etc.
-->
<!-- Please link the PR to the relevant issue(s). Hotfix doesn't need this. -->
Linked issue: #853
### Purpose of change
Support tool parameter injection for function tools.
This change lets framework-owned arguments, such as tenant id or request context, be injected at tool execution time without exposing them to the model-facing tool schema.
Main changes:
- Add Python API support:
- `@tool(injected_args=[...])`
- `@before_tool_call`
- `@after_tool_call`
- Add Java API support:
- `@ToolParam(injected = true)`
- `@BeforeToolCall`
- `@AfterToolCall`
- Inject parameters in the built-in `tool_call_action`, after reading model arguments and before invoking the tool.
- Preserve `injected_args` in the plan/runtime representation while filtering injected parameters from model metadata.
- Add YAML API support:
- `tools[].injected_args`
- `before_tool_call`
- `after_tool_call`
- Keep cross-language tool calls supported, but explicitly reject cross-language tool-call hooks in YAML because hooks execute directly inside the host-language built-in `tool_call_action`.
### Tests
UT & E2E Test
<!-- How is this change verified? -->
### API
Yes
<!-- Does this change touches any public APIs? -->
### Documentation
<!-- Do not remove this section. Check the proper box only. -->
- [ ] `doc-needed` <!-- Your PR changes impact docs -->
- [ ] `doc-not-needed` <!-- Your PR changes do not impact docs -->
- [x] `doc-included` <!-- Your PR already contains the necessary documentation updates -->
--
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-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature] Support tool parameter injection [flink-agents]
Posted by "Sxnan (via GitHub)" <gi...@apache.org>.
Sxnan commented on code in PR #854:
URL: https://github.com/apache/flink-agents/pull/854#discussion_r3510361547
##########
python/flink_agents/plan/tools/function_tool.py:
##########
@@ -40,11 +46,28 @@ class FunctionTool(Tool):
"""
func: PythonFunction | JavaFunction
+ injected_args: dict[str, InjectedArg] = Field(default_factory=dict)
+
+ @model_validator(mode="before")
+ @classmethod
+ def _normalize_injected_args(cls, data: dict) -> dict:
+ if isinstance(data, dict) and "injected_args" in data:
+ data = dict(data)
+ data["injected_args"] = normalize_injected_args(data["injected_args"])
+ return data
@model_validator(mode="after")
def _eager_derive_python_metadata(self) -> "FunctionTool":
+ if isinstance(self.func, PythonFunction):
+ callable_ = self.func.as_callable()
+ self.injected_args = merge_injected_args(
+ getattr(callable_, "_injected_args", None),
+ self.injected_args,
+ tool_name=callable_.__qualname__,
+ )
+ validate_injected_arg_names(callable_, self.injected_args)
if self.metadata is None and isinstance(self.func, PythonFunction):
- self.metadata = _python_metadata(self.func)
+ self.metadata = _python_metadata(self.func, list(self.injected_args))
Review Comment:
The `PythonFunction` path here passes `list(self.injected_args)` into the schema derivation — but the `JavaFunction` path below (`set_java_resource_adapter` → `_java_metadata(self.func)`) drops `self.injected_args` entirely. For a `type: java` tool whose `injected_args` are declared only in YAML (loader `_build_tool` does store them on this FunctionTool), `_java_metadata` → `JavaResourceAdapter.getJavaToolMetadata` ends up calling the no-injected-args overload `ToolMetadataFactory.fromStaticMethod(method)`, so the injected param leaks into the model-facing schema unless the Java method also has `@ToolParam(injected = true)`. Execution-time injection still works, so this is a schema leak, not a broken call. The injected-aware overload `fromStaticMethod(method, names)` already exists — threading the names through `_java_metadata` and `getJavaToolMetadata` closes the gap (the reverse bridge already does this via `getInjectedArgNames()`).
##########
python/flink_agents/runtime/python_java_utils.py:
##########
@@ -149,7 +151,9 @@ def get_python_tool_metadata(module: str, qual_name: str) -> Dict[str, str]:
callable_ = descriptor.as_callable()
name = callable_.__name__
description = (parse(callable_.__doc__).description or "") if callable_.__doc__ else ""
- args_schema_model = create_schema_from_function(name, callable_)
+ args_schema_model = create_schema_from_function(
Review Comment:
Mirror direction: a Python function declared with `@tool(injected_args={...})` but referenced from a Java agent's YAML without re-declaring `injected_args` loses its injection entirely — this only excludes the names Java passes (YAML-declared), never reads the callable's `_injected_args`, so the param leaks into the schema; and `invoke_python_tool` calls the function with only the model kwargs, so nothing is injected at execution time and the call fails on the missing required param. If decorator declarations aren't meant to cross the language boundary, this deserves a loud error or a docs note instead of a silent failure.
--
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-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature] Support tool parameter injection [flink-agents]
Posted by "GreatEugenius (via GitHub)" <gi...@apache.org>.
GreatEugenius commented on code in PR #854:
URL: https://github.com/apache/flink-agents/pull/854#discussion_r3465784316
##########
python/flink_agents/api/tools/tool_parameter_injection.py:
##########
@@ -0,0 +1,89 @@
+################################################################################
+# 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.
+#################################################################################
+from enum import Enum
+
+from pydantic import BaseModel
+
+
+class ToolParameterSource(str, Enum):
+ """Source for a framework-injected tool parameter."""
+
+ CONFIG = "config"
+ SENSORY_MEMORY = "sensory_memory"
+ SHORT_TERM_MEMORY = "short_term_memory"
+
+ @classmethod
+ def _missing_(cls, value: object) -> "ToolParameterSource | None":
+ if not isinstance(value, str):
+ return None
+ normalized = value.lower()
+ if normalized == "action_config":
+ return cls.CONFIG
+ for source in cls:
+ if source.value == normalized:
+ return source
+ return None
+
+
+class InjectedArg(BaseModel):
+ """Declarative source binding for a framework-injected tool parameter."""
+
+ source: ToolParameterSource = ToolParameterSource.SENSORY_MEMORY
+ key: str | None = None
+
+ @staticmethod
+ def from_config(key: str) -> "InjectedArg":
+ """Create an injected argument read from global agent config."""
+ return InjectedArg(source=ToolParameterSource.CONFIG, key=key)
+
+ @staticmethod
+ def from_sensory_memory(path: str) -> "InjectedArg":
+ """Create an injected argument read from sensory memory."""
+ return InjectedArg(source=ToolParameterSource.SENSORY_MEMORY, key=path)
+
+ @staticmethod
+ def from_short_term_memory(path: str) -> "InjectedArg":
+ """Create an injected argument read from short-term memory."""
+ return InjectedArg(source=ToolParameterSource.SHORT_TERM_MEMORY, key=path)
+
+ def with_default_key(self, key: str) -> "InjectedArg":
+ """Use the tool parameter name when no explicit key is configured."""
+ if self.key:
+ return self
+ return InjectedArg(source=self.source, key=key)
+
+
+def normalize_injected_args(
Review Comment:
Yes, agreed. I added upfront validation for declarative injected argument names.
On the Python side, `@tool(...)` / `Tool.from_callable(...)` validate immediately because the callable is already available. For descriptor-style paths such as YAML/API `FunctionTool`, the YAML loader now stays side-effect-free and does not import/inspect user functions just for validation; the check is performed when building the `AgentPlan`, where the callable is materialized anyway. The validator also allows `**kwargs`, since those tools can intentionally accept framework-provided extra arguments.
The Java side now validates at the same AgentPlan boundary via `ToolParameterInjectionValidator`. It validates when parameter names are reliable, for example from `@ToolParam(name = ...)` or `-parameters`, and avoids false positives when bytecode only exposes synthetic names like `arg0`.
--
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-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature] Support tool parameter injection [flink-agents]
Posted by "Sxnan (via GitHub)" <gi...@apache.org>.
Sxnan merged PR #854:
URL: https://github.com/apache/flink-agents/pull/854
--
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-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature] Support tool parameter injection [flink-agents]
Posted by "GreatEugenius (via GitHub)" <gi...@apache.org>.
GreatEugenius commented on PR #854:
URL: https://github.com/apache/flink-agents/pull/854#issuecomment-4787534848
Hi @Sxnan and @weiqingy, thank you for your comments. I have addressed all of them. Please take a look.
--
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-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature] Support tool parameter injection [flink-agents]
Posted by "wenjin272 (via GitHub)" <gi...@apache.org>.
wenjin272 commented on code in PR #854:
URL: https://github.com/apache/flink-agents/pull/854#discussion_r3510955666
##########
python/flink_agents/runtime/python_java_utils.py:
##########
@@ -149,7 +151,9 @@ def get_python_tool_metadata(module: str, qual_name: str) -> Dict[str, str]:
callable_ = descriptor.as_callable()
name = callable_.__name__
description = (parse(callable_.__doc__).description or "") if callable_.__doc__ else ""
- args_schema_model = create_schema_from_function(name, callable_)
+ args_schema_model = create_schema_from_function(
+ name, callable_, injected_args=injected_args
Review Comment:
get_python_tool_metadata builds the schema from only the Java-passed injected_args, never the callable's own `_injected_args`.
The pure-Python paths (`Tool.from_callable`, `_eager_derive_python_metadata`) both `merge_injected_args(getattr(callable_, "_injected_args", None), ...)`, so a Python tool authored with `@tool(injected_args=...)` and used in a Java-orchestrated plan (YAML omitting the arg) gets its injected param neither hidden from the schema nor injected at call time — the model-supplied value flows into the real call, the exact spoofing case this feature prevents.
Suggest merging the callable's _injected_args here (as the docstring's "mirrors the Python-side derivation" claim implies).
--
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-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature] Support tool parameter injection [flink-agents]
Posted by "Sxnan (via GitHub)" <gi...@apache.org>.
Sxnan commented on PR #854:
URL: https://github.com/apache/flink-agents/pull/854#issuecomment-4776889177
Thanks for the work — the schema-hiding part (`injected_args` / `@ToolParam(injected=true)`) is clean and useful.
A step back on the API shape before line details: #853 asks for one narrow thing — inject a model-hidden, framework-owned arg at execution time. This PR does it via a general **before/after hook mechanism** (hook slots on `Agent`, plan fields, serializers, YAML keys, new `ToolCallContext`/`ToolCallResult`). That's a lot of machinery, and the generality makes injection harder, not easier:
- Two decoupled declarations (`injected_args` + a separate global hook matching on `tool_name`), no plan-time link — forget/typo the hook → silent crash.
- One hook per agent → a manual `if tool_name == ...` dispatch table as tools grow.
- `after_tool_call` (result rewriting) is unrelated to injection — a separate capability bundled in.
Suggestion:
1. **Keep** `injected_args` for schema hiding.
2. **Make the value source declarative and co-located with the param**, e.g. `@tool(inject={"tenant_id": lambda ctx: ctx.tenant_id})`, resolved right before the call — drops the decoupling, the dispatch table, and the "declared but never filled" gap.
3. **Defer** `before_tool_call` / `after_tool_call` to a separate issue if a real cross-cutting need shows up — and there, consider the existing event/action model over a parallel mechanism.
If there's a concrete need behind the general hooks that isn't in #853, worth surfacing here.
--
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-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature] Support tool parameter injection [flink-agents]
Posted by "weiqingy (via GitHub)" <gi...@apache.org>.
weiqingy commented on code in PR #854:
URL: https://github.com/apache/flink-agents/pull/854#discussion_r3464165131
##########
python/flink_agents/plan/actions/tool_call_action.py:
##########
@@ -39,27 +46,80 @@ async def process_tool_request(event: Event, ctx: RunnerContext) -> None:
responses = {}
external_ids = {}
for tool_call in event.tool_calls:
- id = tool_call["id"]
+ call_id = tool_call["id"]
name = tool_call["function"]["name"]
kwargs = tool_call["function"]["arguments"]
- tool = ctx.get_resource(name, ResourceType.TOOL)
external_id = tool_call.get("original_id")
+
+ tool = ctx.get_resource(name, ResourceType.TOOL)
if not tool:
- response = f"Tool `{name}` does not exist."
+ responses[call_id] = f"Tool `{name}` does not exist."
+ external_ids[call_id] = external_id
+ continue
else:
- if tool_call_async:
- response = await ctx.durable_execute_async(tool.call, **kwargs)
- else:
- response = ctx.durable_execute(tool.call, **kwargs)
- responses[id] = response
- external_ids[id] = external_id
+ try:
+ call_kwargs = dict(kwargs or {})
+ # Framework-owned injected args must win over model-provided values so
+ # hidden context such as tenant ids cannot be spoofed by tool calls.
+ call_kwargs.update(_resolve_injected_arguments(tool, ctx))
+ if tool_call_async:
+ response = await ctx.durable_execute_async(
+ tool.call, **call_kwargs
+ )
+ else:
+ response = ctx.durable_execute(tool.call, **call_kwargs)
+ responses[call_id] = response
+ except Exception as e:
+ responses[call_id] = str(e)
Review Comment:
This new per-call `except Exception as e: responses[call_id] = str(e)` routes an injection failure (missing config, missing memory path) into the response channel. But Python `ToolResponseEvent` carries only `responses` — there's no success/error channel like Java's — and the consumer at `chat_model_action.py:439` does `content=str(response)` for every entry. So a failed injection gets fed back to the LLM as an ordinary string, indistinguishable from a real tool result. The Java side emits `ToolResponse.error(...)` and populates the error map, so there the failure stays structurally distinguishable.
To be clear, the *absence* of a Python error channel is pre-existing — what's new here is routing injection failures through it. Is feeding the error text back to the model the intended contract, or should an injection misconfiguration fail loudly / be distinguishable from a successful result? CLAUDE.md asks for Java/Python parity, and this is where the two sides diverge most.
##########
python/flink_agents/api/tools/tool_parameter_injection.py:
##########
@@ -0,0 +1,89 @@
+################################################################################
+# 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.
+#################################################################################
+from enum import Enum
+
+from pydantic import BaseModel
+
+
+class ToolParameterSource(str, Enum):
+ """Source for a framework-injected tool parameter."""
+
+ CONFIG = "config"
+ SENSORY_MEMORY = "sensory_memory"
+ SHORT_TERM_MEMORY = "short_term_memory"
+
+ @classmethod
+ def _missing_(cls, value: object) -> "ToolParameterSource | None":
+ if not isinstance(value, str):
+ return None
+ normalized = value.lower()
+ if normalized == "action_config":
+ return cls.CONFIG
+ for source in cls:
+ if source.value == normalized:
+ return source
+ return None
+
+
+class InjectedArg(BaseModel):
+ """Declarative source binding for a framework-injected tool parameter."""
+
+ source: ToolParameterSource = ToolParameterSource.SENSORY_MEMORY
+ key: str | None = None
+
+ @staticmethod
+ def from_config(key: str) -> "InjectedArg":
+ """Create an injected argument read from global agent config."""
+ return InjectedArg(source=ToolParameterSource.CONFIG, key=key)
+
+ @staticmethod
+ def from_sensory_memory(path: str) -> "InjectedArg":
+ """Create an injected argument read from sensory memory."""
+ return InjectedArg(source=ToolParameterSource.SENSORY_MEMORY, key=path)
+
+ @staticmethod
+ def from_short_term_memory(path: str) -> "InjectedArg":
+ """Create an injected argument read from short-term memory."""
+ return InjectedArg(source=ToolParameterSource.SHORT_TERM_MEMORY, key=path)
+
+ def with_default_key(self, key: str) -> "InjectedArg":
+ """Use the tool parameter name when no explicit key is configured."""
+ if self.key:
+ return self
+ return InjectedArg(source=self.source, key=key)
+
+
+def normalize_injected_args(
Review Comment:
The reflection path (`@ToolParam(injected=true)`) is safe by construction, but the declarative paths aren't: the YAML `injected_args` keys and the `@tool(injected_args={...})` decorator keys accept arbitrary names with no check that the key matches an actual function parameter. A typo like `tenent_id` gets merged into the call kwargs and fails late — a `TypeError: unexpected keyword argument` on Python, which then gets swallowed per the response-channel point above. Was up-front validation at tool construction considered? A cheap key-against-signature check would turn an opaque runtime tool-failure into a clear config error.
##########
python/flink_agents/plan/tests/resources/agent_plan.json:
##########
@@ -102,30 +102,30 @@
"__resource_provider_type__": "PythonResourceProvider"
}
},
- "embedding_model": {
- "mock_embedding": {
- "name": "mock_embedding",
- "type": "embedding_model",
+ "embedding_model_connection": {
Review Comment:
This hunk swaps the positions of the `embedding_model` and `embedding_model_connection` blocks; their contents are byte-identical before and after, and no `injected_args` is added here — it looks like unrelated regeneration churn. Worth reverting this file to keep the diff focused on injection?
##########
api/src/main/java/org/apache/flink/agents/api/tools/ToolParameterSource.java:
##########
@@ -0,0 +1,52 @@
+/*
+ * 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.
+ */
+package org.apache.flink.agents.api.tools;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/** Source for a framework-injected tool parameter. */
+public enum ToolParameterSource {
+ CONFIG("config"),
+ SENSORY_MEMORY("sensory_memory"),
+ SHORT_TERM_MEMORY("short_term_memory");
+
+ private final String value;
+
+ ToolParameterSource(String value) {
+ this.value = value;
+ }
+
+ @JsonValue
+ public String getValue() {
+ return value;
+ }
+
+ @JsonCreator
+ public static ToolParameterSource fromValue(String value) {
+ if ("action_config".equals(value)) {
Review Comment:
This branch maps the string `"action_config"` → `CONFIG` (mirrored in Python at `tool_parameter_injection.py:35`), but `action_config` is a brand-new name with no test, no doc, and no YAML/JSON reference. It also collides with the existing, unrelated per-action `action_config` concept (`RunnerContext.action_config`, the per-action config dict — not the global config this maps to). It reads as vestigial, likely a leftover from the removed hook iteration. Is `action_config` meant to be a public source name? If not, dropping both branches keeps the contract to the documented `config` source.
##########
plan/src/test/java/org/apache/flink/agents/plan/actions/ToolCallActionTest.java:
##########
@@ -0,0 +1,376 @@
+/*
+ * 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.
+ */
+package org.apache.flink.agents.plan.actions;
+
+import org.apache.flink.agents.api.Event;
+import org.apache.flink.agents.api.annotation.ToolParam;
+import org.apache.flink.agents.api.configuration.ReadableConfiguration;
+import org.apache.flink.agents.api.context.DurableCallable;
+import org.apache.flink.agents.api.context.MemoryObject;
+import org.apache.flink.agents.api.context.MemoryRef;
+import org.apache.flink.agents.api.context.RunnerContext;
+import org.apache.flink.agents.api.event.ToolRequestEvent;
+import org.apache.flink.agents.api.event.ToolResponseEvent;
+import org.apache.flink.agents.api.memory.BaseLongTermMemory;
+import org.apache.flink.agents.api.metrics.FlinkAgentsMetricGroup;
+import org.apache.flink.agents.api.resource.Resource;
+import org.apache.flink.agents.api.resource.ResourceType;
+import org.apache.flink.agents.api.tools.Tool;
+import org.apache.flink.agents.api.tools.ToolMetadata;
+import org.apache.flink.agents.api.tools.ToolParameterInjection;
+import org.apache.flink.agents.api.tools.ToolParameters;
+import org.apache.flink.agents.api.tools.ToolResponse;
+import org.apache.flink.agents.api.tools.ToolType;
+import org.apache.flink.agents.plan.AgentConfiguration;
+import org.apache.flink.agents.plan.JavaFunction;
+import org.apache.flink.agents.plan.tools.FunctionTool;
+import org.junit.jupiter.api.Test;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+public class ToolCallActionTest {
+
+ public static String queryOrder(
+ @ToolParam(name = "orderId") String orderId,
+ @ToolParam(name = "tenant_id") String tenantId) {
+ return tenantId + ":" + orderId;
+ }
+
+ static class FailingTool extends Tool {
+ FailingTool() {
+ super(new ToolMetadata("queryOrder", "Query order.", "{}"));
+ }
+
+ @Override
+ public ToolType getToolType() {
+ return ToolType.FUNCTION;
+ }
+
+ @Override
+ public ToolResponse call(ToolParameters parameters) {
+ throw new RuntimeException("database timeout");
+ }
+ }
+
+ static class FakeRunnerContext implements RunnerContext {
+ private final List<Event> sentEvents = new ArrayList<>();
+ private final AgentConfiguration config =
+ new AgentConfiguration(Map.of("tenant_id", "tenant-1"));
+ private ToolParameterInjection injection = ToolParameterInjection.fromConfig("tenant_id");
+ private MemoryObject sensoryMemory;
+ private MemoryObject shortTermMemory;
+
+ FakeRunnerContext withInjection(ToolParameterInjection injection) {
+ this.injection = injection;
+ return this;
+ }
+
+ FakeRunnerContext withSensoryMemory(Map<String, Object> values) {
+ this.sensoryMemory = new FakeMemoryObject(values);
+ return this;
+ }
+
+ FakeRunnerContext withShortTermMemory(Map<String, Object> values) {
+ this.shortTermMemory = new FakeMemoryObject(values);
+ return this;
+ }
+
+ @Override
+ public void sendEvent(Event event) {
+ sentEvents.add(event);
+ }
+
+ @Override
+ public MemoryObject getSensoryMemory() {
+ return sensoryMemory;
+ }
+
+ @Override
+ public MemoryObject getShortTermMemory() {
+ return shortTermMemory;
+ }
+
+ @Override
+ public BaseLongTermMemory getLongTermMemory() {
+ return null;
+ }
+
+ @Override
+ public FlinkAgentsMetricGroup getAgentMetricGroup() {
+ return null;
+ }
+
+ @Override
+ public FlinkAgentsMetricGroup getActionMetricGroup() {
+ return null;
+ }
+
+ @Override
+ public Resource getResource(String name, ResourceType type) throws Exception {
+ assertThat(name).isEqualTo("queryOrder");
+ assertThat(type).isEqualTo(ResourceType.TOOL);
+ return new FunctionTool(
+ new ToolMetadata("queryOrder", "Query order.", "{}"),
+ new JavaFunction(
+ ToolCallActionTest.class,
+ "queryOrder",
+ new Class[] {String.class, String.class}),
+ Map.of("tenant_id", injection));
+ }
+
+ @Override
+ public ReadableConfiguration getConfig() {
+ return config;
+ }
+
+ @Override
+ public Map<String, Object> getActionConfig() {
+ return Map.of();
+ }
+
+ @Override
+ public Object getActionConfigValue(String key) {
+ return null;
+ }
+
+ @Override
+ public <T> T durableExecute(DurableCallable<T> callable) throws Exception {
+ return callable.call();
+ }
+
+ @Override
+ public <T> T durableExecuteAsync(DurableCallable<T> callable) throws Exception {
+ return callable.call();
+ }
+
+ @Override
+ public void close() {}
+ }
+
+ static class FakeMemoryObject implements MemoryObject {
+ private final Map<String, Object> values;
+ private final Object value;
+
+ FakeMemoryObject(Map<String, Object> values) {
+ this(values, null);
+ }
+
+ FakeMemoryObject(Map<String, Object> values, Object value) {
+ this.values = values;
+ this.value = value;
+ }
+
+ @Override
+ public MemoryObject get(String path) throws Exception {
+ if (!values.containsKey(path)) {
+ throw new IllegalArgumentException("Missing path: " + path);
+ }
+ return new FakeMemoryObject(values, values.get(path));
+ }
+
+ @Override
+ public MemoryObject get(MemoryRef ref) throws Exception {
+ return get(ref.getPath());
+ }
+
+ @Override
+ public MemoryRef set(String path, Object value) {
+ throw new UnsupportedOperationException();
+ }
+
+ @Override
+ public MemoryObject newObject(String path, boolean overwrite) {
+ throw new UnsupportedOperationException();
+ }
+
+ @Override
+ public boolean isExist(String path) {
+ return values.containsKey(path);
+ }
+
+ @Override
+ public List<String> getFieldNames() {
+ return new ArrayList<>(values.keySet());
+ }
+
+ @Override
+ public Map<String, Object> getFields() {
+ return Collections.unmodifiableMap(values);
+ }
+
+ @Override
+ public Object getValue() {
+ return value;
+ }
+
+ @Override
+ public boolean isNestedObject() {
+ return value == null;
+ }
+ }
+
+ @Test
+ void processToolRequestInjectsArgsFromConfigBeforeDurableToolCall() throws Exception {
+ FakeRunnerContext ctx = new FakeRunnerContext();
+
+ Map<String, Object> arguments = new HashMap<>(Map.of("orderId", "order-1"));
+ ToolRequestEvent event =
+ new ToolRequestEvent(
+ "model",
+ List.of(
+ Map.of(
+ "id",
+ "call-1",
+ "type",
+ "function",
+ "function",
+ Map.of("name", "queryOrder", "arguments", arguments))));
+
+ ToolCallAction.processToolRequest(event, ctx);
+
+ ToolResponseEvent response = ToolResponseEvent.fromEvent(ctx.sentEvents.get(0));
+ assertThat(response.getResponses().get("call-1").getResult()).isEqualTo("tenant-1:order-1");
+ assertThat(arguments).containsOnly(Map.entry("orderId", "order-1"));
Review Comment:
The comment in `ToolCallAction` says injected args must win over model-provided values "so hidden context such as tenant ids cannot be spoofed by a tool call payload" — but this config-injection test passes only non-conflicting args (`orderId`), so it would still pass even if Java used `putIfAbsent` instead of `putAll`. The security-relevant override is verified only on the Python side (`test_tool_call_action_injected_arg_overrides_model_argument`). Something like this, if useful — add a case where the model also supplies `tenant_id` and assert the injected value wins, so the Java override is actually pinned.
--
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-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature] Support tool parameter injection [flink-agents]
Posted by "GreatEugenius (via GitHub)" <gi...@apache.org>.
GreatEugenius commented on PR #854:
URL: https://github.com/apache/flink-agents/pull/854#issuecomment-4764467320
Hi, @Sxnan and @wenjin272. Could you please review this PR? Thank you!
--
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-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature] Support tool parameter injection [flink-agents]
Posted by "GreatEugenius (via GitHub)" <gi...@apache.org>.
GreatEugenius commented on PR #854:
URL: https://github.com/apache/flink-agents/pull/854#issuecomment-4784435218
> Thanks for the work — the schema-hiding part (`injected_args` / `@ToolParam(injected=true)`) is clean and useful.
>
> A step back on the API shape before line details: #853 asks for one narrow thing — inject a model-hidden, framework-owned arg at execution time. This PR does it via a general **before/after hook mechanism** (hook slots on `Agent`, plan fields, serializers, YAML keys, new `ToolCallContext`/`ToolCallResult`). That's a lot of machinery, and the generality makes injection harder, not easier:
>
> * Two decoupled declarations (`injected_args` + a separate global hook matching on `tool_name`), no plan-time link — forget/typo the hook → silent crash.
> * One hook per agent → a manual `if tool_name == ...` dispatch table as tools grow.
> * `after_tool_call` (result rewriting) is unrelated to injection — a separate capability bundled in.
>
> Suggestion:
>
> 1. **Keep** `injected_args` for schema hiding.
> 2. **Make the value source declarative and co-located with the param**, e.g. `@tool(inject={"tenant_id": lambda ctx: ctx.tenant_id})`, resolved right before the call — drops the decoupling, the dispatch table, and the "declared but never filled" gap.
> 3. **Defer** `before_tool_call` / `after_tool_call` to a separate issue if a real cross-cutting need shows up — and there, consider the existing event/action model over a parallel mechanism.
>
> If there's a concrete need behind the general hooks that isn't in #853, worth surfacing here.
Thanks, agreed with the direction here. Stepping back, #853 should stay focused on model-hidden framework-owned argument injection, and the generic before/after hook mechanism was too broad for that scope.
I’ve updated the PR accordingly:
- Removed the before/after tool-call hook API and the related Agent/Plan/YAML/serializer fields.
- Kept `injected_args` / `@ToolParam(injected = true)` for schema hiding.
- Made the injection source declarative and co-located with the parameter instead of relying on a separate global hook. The current API supports explicit sources such as config, sensory memory, and short-term memory.
- Kept resolution in the built-in `tool_call_action`, right before invoking the tool, so the injected value remains hidden from the model and is not written back to the tool request.
So the PR now covers only the narrow injection use case from #853. Any general `before_tool_call` / `after_tool_call` capability can be discussed separately if a concrete cross-cutting need shows up.
--
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-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature] Support tool parameter injection [flink-agents]
Posted by "GreatEugenius (via GitHub)" <gi...@apache.org>.
GreatEugenius commented on PR #854:
URL: https://github.com/apache/flink-agents/pull/854#issuecomment-4842674769
Hi @wenjin272 and @Sxnan, I have addressed your comment. Please review it once more.
--
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-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature] Support tool parameter injection [flink-agents]
Posted by "GreatEugenius (via GitHub)" <gi...@apache.org>.
GreatEugenius commented on code in PR #854:
URL: https://github.com/apache/flink-agents/pull/854#discussion_r3465785900
##########
plan/src/test/java/org/apache/flink/agents/plan/actions/ToolCallActionTest.java:
##########
@@ -0,0 +1,376 @@
+/*
+ * 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.
+ */
+package org.apache.flink.agents.plan.actions;
+
+import org.apache.flink.agents.api.Event;
+import org.apache.flink.agents.api.annotation.ToolParam;
+import org.apache.flink.agents.api.configuration.ReadableConfiguration;
+import org.apache.flink.agents.api.context.DurableCallable;
+import org.apache.flink.agents.api.context.MemoryObject;
+import org.apache.flink.agents.api.context.MemoryRef;
+import org.apache.flink.agents.api.context.RunnerContext;
+import org.apache.flink.agents.api.event.ToolRequestEvent;
+import org.apache.flink.agents.api.event.ToolResponseEvent;
+import org.apache.flink.agents.api.memory.BaseLongTermMemory;
+import org.apache.flink.agents.api.metrics.FlinkAgentsMetricGroup;
+import org.apache.flink.agents.api.resource.Resource;
+import org.apache.flink.agents.api.resource.ResourceType;
+import org.apache.flink.agents.api.tools.Tool;
+import org.apache.flink.agents.api.tools.ToolMetadata;
+import org.apache.flink.agents.api.tools.ToolParameterInjection;
+import org.apache.flink.agents.api.tools.ToolParameters;
+import org.apache.flink.agents.api.tools.ToolResponse;
+import org.apache.flink.agents.api.tools.ToolType;
+import org.apache.flink.agents.plan.AgentConfiguration;
+import org.apache.flink.agents.plan.JavaFunction;
+import org.apache.flink.agents.plan.tools.FunctionTool;
+import org.junit.jupiter.api.Test;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+public class ToolCallActionTest {
+
+ public static String queryOrder(
+ @ToolParam(name = "orderId") String orderId,
+ @ToolParam(name = "tenant_id") String tenantId) {
+ return tenantId + ":" + orderId;
+ }
+
+ static class FailingTool extends Tool {
+ FailingTool() {
+ super(new ToolMetadata("queryOrder", "Query order.", "{}"));
+ }
+
+ @Override
+ public ToolType getToolType() {
+ return ToolType.FUNCTION;
+ }
+
+ @Override
+ public ToolResponse call(ToolParameters parameters) {
+ throw new RuntimeException("database timeout");
+ }
+ }
+
+ static class FakeRunnerContext implements RunnerContext {
+ private final List<Event> sentEvents = new ArrayList<>();
+ private final AgentConfiguration config =
+ new AgentConfiguration(Map.of("tenant_id", "tenant-1"));
+ private ToolParameterInjection injection = ToolParameterInjection.fromConfig("tenant_id");
+ private MemoryObject sensoryMemory;
+ private MemoryObject shortTermMemory;
+
+ FakeRunnerContext withInjection(ToolParameterInjection injection) {
+ this.injection = injection;
+ return this;
+ }
+
+ FakeRunnerContext withSensoryMemory(Map<String, Object> values) {
+ this.sensoryMemory = new FakeMemoryObject(values);
+ return this;
+ }
+
+ FakeRunnerContext withShortTermMemory(Map<String, Object> values) {
+ this.shortTermMemory = new FakeMemoryObject(values);
+ return this;
+ }
+
+ @Override
+ public void sendEvent(Event event) {
+ sentEvents.add(event);
+ }
+
+ @Override
+ public MemoryObject getSensoryMemory() {
+ return sensoryMemory;
+ }
+
+ @Override
+ public MemoryObject getShortTermMemory() {
+ return shortTermMemory;
+ }
+
+ @Override
+ public BaseLongTermMemory getLongTermMemory() {
+ return null;
+ }
+
+ @Override
+ public FlinkAgentsMetricGroup getAgentMetricGroup() {
+ return null;
+ }
+
+ @Override
+ public FlinkAgentsMetricGroup getActionMetricGroup() {
+ return null;
+ }
+
+ @Override
+ public Resource getResource(String name, ResourceType type) throws Exception {
+ assertThat(name).isEqualTo("queryOrder");
+ assertThat(type).isEqualTo(ResourceType.TOOL);
+ return new FunctionTool(
+ new ToolMetadata("queryOrder", "Query order.", "{}"),
+ new JavaFunction(
+ ToolCallActionTest.class,
+ "queryOrder",
+ new Class[] {String.class, String.class}),
+ Map.of("tenant_id", injection));
+ }
+
+ @Override
+ public ReadableConfiguration getConfig() {
+ return config;
+ }
+
+ @Override
+ public Map<String, Object> getActionConfig() {
+ return Map.of();
+ }
+
+ @Override
+ public Object getActionConfigValue(String key) {
+ return null;
+ }
+
+ @Override
+ public <T> T durableExecute(DurableCallable<T> callable) throws Exception {
+ return callable.call();
+ }
+
+ @Override
+ public <T> T durableExecuteAsync(DurableCallable<T> callable) throws Exception {
+ return callable.call();
+ }
+
+ @Override
+ public void close() {}
+ }
+
+ static class FakeMemoryObject implements MemoryObject {
+ private final Map<String, Object> values;
+ private final Object value;
+
+ FakeMemoryObject(Map<String, Object> values) {
+ this(values, null);
+ }
+
+ FakeMemoryObject(Map<String, Object> values, Object value) {
+ this.values = values;
+ this.value = value;
+ }
+
+ @Override
+ public MemoryObject get(String path) throws Exception {
+ if (!values.containsKey(path)) {
+ throw new IllegalArgumentException("Missing path: " + path);
+ }
+ return new FakeMemoryObject(values, values.get(path));
+ }
+
+ @Override
+ public MemoryObject get(MemoryRef ref) throws Exception {
+ return get(ref.getPath());
+ }
+
+ @Override
+ public MemoryRef set(String path, Object value) {
+ throw new UnsupportedOperationException();
+ }
+
+ @Override
+ public MemoryObject newObject(String path, boolean overwrite) {
+ throw new UnsupportedOperationException();
+ }
+
+ @Override
+ public boolean isExist(String path) {
+ return values.containsKey(path);
+ }
+
+ @Override
+ public List<String> getFieldNames() {
+ return new ArrayList<>(values.keySet());
+ }
+
+ @Override
+ public Map<String, Object> getFields() {
+ return Collections.unmodifiableMap(values);
+ }
+
+ @Override
+ public Object getValue() {
+ return value;
+ }
+
+ @Override
+ public boolean isNestedObject() {
+ return value == null;
+ }
+ }
+
+ @Test
+ void processToolRequestInjectsArgsFromConfigBeforeDurableToolCall() throws Exception {
+ FakeRunnerContext ctx = new FakeRunnerContext();
+
+ Map<String, Object> arguments = new HashMap<>(Map.of("orderId", "order-1"));
+ ToolRequestEvent event =
+ new ToolRequestEvent(
+ "model",
+ List.of(
+ Map.of(
+ "id",
+ "call-1",
+ "type",
+ "function",
+ "function",
+ Map.of("name", "queryOrder", "arguments", arguments))));
+
+ ToolCallAction.processToolRequest(event, ctx);
+
+ ToolResponseEvent response = ToolResponseEvent.fromEvent(ctx.sentEvents.get(0));
+ assertThat(response.getResponses().get("call-1").getResult()).isEqualTo("tenant-1:order-1");
+ assertThat(arguments).containsOnly(Map.entry("orderId", "order-1"));
Review Comment:
Good point. I added a Java test that covers the security-relevant case directly: the model supplies `tenant_id`, the injected source supplies another value, and the injected value wins. The test also checks that the original model argument map is not mutated.
##########
python/flink_agents/plan/tests/resources/agent_plan.json:
##########
@@ -102,30 +102,30 @@
"__resource_provider_type__": "PythonResourceProvider"
}
},
- "embedding_model": {
- "mock_embedding": {
- "name": "mock_embedding",
- "type": "embedding_model",
+ "embedding_model_connection": {
Review Comment:
Agreed, this was unrelated regeneration churn. I reverted the resource-order-only change so the snapshot diff stays focused on the injected-args behavior.
--
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-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature] Support tool parameter injection [flink-agents]
Posted by "GreatEugenius (via GitHub)" <gi...@apache.org>.
GreatEugenius commented on code in PR #854:
URL: https://github.com/apache/flink-agents/pull/854#discussion_r3465779193
##########
python/flink_agents/plan/actions/tool_call_action.py:
##########
@@ -39,27 +46,80 @@ async def process_tool_request(event: Event, ctx: RunnerContext) -> None:
responses = {}
external_ids = {}
for tool_call in event.tool_calls:
- id = tool_call["id"]
+ call_id = tool_call["id"]
name = tool_call["function"]["name"]
kwargs = tool_call["function"]["arguments"]
- tool = ctx.get_resource(name, ResourceType.TOOL)
external_id = tool_call.get("original_id")
+
+ tool = ctx.get_resource(name, ResourceType.TOOL)
if not tool:
- response = f"Tool `{name}` does not exist."
+ responses[call_id] = f"Tool `{name}` does not exist."
+ external_ids[call_id] = external_id
+ continue
else:
- if tool_call_async:
- response = await ctx.durable_execute_async(tool.call, **kwargs)
- else:
- response = ctx.durable_execute(tool.call, **kwargs)
- responses[id] = response
- external_ids[id] = external_id
+ try:
+ call_kwargs = dict(kwargs or {})
+ # Framework-owned injected args must win over model-provided values so
+ # hidden context such as tenant ids cannot be spoofed by tool calls.
+ call_kwargs.update(_resolve_injected_arguments(tool, ctx))
+ if tool_call_async:
+ response = await ctx.durable_execute_async(
+ tool.call, **call_kwargs
+ )
+ else:
+ response = ctx.durable_execute(tool.call, **call_kwargs)
+ responses[call_id] = response
+ except Exception as e:
+ responses[call_id] = str(e)
Review Comment:
Good catch, thanks. I agree this should not be routed back as an ordinary successful tool result.
I updated the Python side to carry `success` / `error` on `ToolResponseEvent`, populate them from `tool_call_action`, and make `chat_model_action` use the error payload when `success[tool_id]` is false. That keeps injection/config failures structurally distinguishable from successful tool output and brings the Python behavior closer to the Java side. The deserializer also keeps a compatibility default for older events that do not have these fields.
--
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-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature] Support tool parameter injection [flink-agents]
Posted by "GreatEugenius (via GitHub)" <gi...@apache.org>.
GreatEugenius commented on code in PR #854:
URL: https://github.com/apache/flink-agents/pull/854#discussion_r3465781012
##########
api/src/main/java/org/apache/flink/agents/api/tools/ToolParameterSource.java:
##########
@@ -0,0 +1,52 @@
+/*
+ * 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.
+ */
+package org.apache.flink.agents.api.tools;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/** Source for a framework-injected tool parameter. */
+public enum ToolParameterSource {
+ CONFIG("config"),
+ SENSORY_MEMORY("sensory_memory"),
+ SHORT_TERM_MEMORY("short_term_memory");
+
+ private final String value;
+
+ ToolParameterSource(String value) {
+ this.value = value;
+ }
+
+ @JsonValue
+ public String getValue() {
+ return value;
+ }
+
+ @JsonCreator
+ public static ToolParameterSource fromValue(String value) {
+ if ("action_config".equals(value)) {
Review Comment:
Agreed. `action_config` was leftover naming from the earlier hook-based iteration and is misleading because it collides with the existing per-action config concept.
I removed the `action_config` alias from both Java and Python. The public source names are now only the documented ones: `config`, `sensory_memory`, and `short_term_memory`.
--
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-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org