yunfengzhou-hub commented on code in PR #1114:
URL: https://github.com/apache/flink-agents/pull/1114#discussion_r4037120816
##########
api/src/main/java/org/apache/flink/agents/api/subagent/SubagentSetup.java:
##########
@@ -19,22 +19,105 @@
package org.apache.flink.agents.api.subagent;
import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.flink.agents.api.context.RunnerContext;
import org.apache.flink.agents.api.resource.ResourceType;
import org.apache.flink.agents.api.resource.SerializableResource;
+import javax.annotation.Nullable;
+
/**
* Caller-facing definition of a sub-agent, registered in the agent plan as an
{@code AGENT}
* resource.
*/
public abstract class SubagentSetup extends SerializableResource {
+ /**
+ * 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 {@code AGENT}
namespace.
+ */
+ public static final String CALLABLE_NAME_PREFIX = "_subagent_";
Review Comment:
Done. The description has been updated to match the latest code 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]