yunfengzhou-hub commented on code in PR #1114:
URL: https://github.com/apache/flink-agents/pull/1114#discussion_r4026723224


##########
python/flink_agents/api/subagent.py:
##########
@@ -15,18 +15,68 @@
 #  See the License for the specific language governing permissions and
 #  limitations under the License.
 
#################################################################################
+import json
 import logging
 from abc import ABC, abstractmethod
 from dataclasses import dataclass
 from typing import TYPE_CHECKING, Any
 
+from pydantic import BaseModel, field_validator, model_validator
+
 from flink_agents.api.resource import ResourceType, SerializableResource
 
 if TYPE_CHECKING:
     from flink_agents.api.runner_context import RunnerContext
 
 _LOG = logging.getLogger(__name__)
 
+# Prefix of the callable name a sub-agent is exposed to a chat model under.
+# Tools are forbidden to register under this prefix, so a prefixed callable
+# name unambiguously addresses a sub-agent and the executing side routes it to
+# the AGENT namespace.
+CALLABLE_NAME_PREFIX = "subagent_"

Review Comment:
   Done — renamed to `_subagent_` in both languages.



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