Open
feat(runtime):开放被包装 Agent 的只读访问,供处理器扩展使用 #274
feat(runtime):开放被包装 Agent 的只读访问,供处理器扩展使用 #274
Open
lynn45Add on 4 days ago
Total: 1 files changed+5-2
@@ -208,11 +208,14 @@ public class JiuwenCoreAgentHandler implements AgentHandler {
208 }208 }
209 209 
210 /**210 /**
211- * Returns the wrapped agent instance for tests and subclasses.211+ * Returns the wrapped agent instance.
212+ *
213+ * <p>This is a read-only extension hook for runtime integrations that decorate the default
214+ * handler while preserving the application-provided agent instance.
212 *215 *
213 * @return the agent delegate216 * @return the agent delegate
214 */217 */
215- protected Object getAgent() {218+ public Object getAgent() {
216 return agent;219 return agent;
217 }220 }
218 221