agentscope-java icon indicating copy to clipboard operation
agentscope-java copied to clipboard

[Feature]: 通过AguiAgentRegistry注册的agent被创建时支持传参

Open bybywudi opened this issue 10 months ago • 0 comments

目前的代码是

    public void configureAgents(AguiAgentRegistry registry) {
        registry.registerFactory("default", this::createAgent);
    }

希望能做到类似于这种效果:

    public void configureAgents(AguiAgentRegistry registry) {
        registry.registerFactory("default", createAgent(sessionId));
    }

这能够让agent创建的控制更精细,能够向子agent传递更多信息进行更好的上下文控制等

bybywudi avatar Jan 16 '26 01:01 bybywudi