You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The linked page is under /dev/, which describes current development APIs. I checked the published agentscope-harness 2.0.3 and 2.0.4 JARs with javap: neither builder has instruction(String, String). Current main does have that method, so removing it from the dev guide would make that guide inaccurate in the other direction.
For a static policy on 2.0.3, HarnessAgent.Builder.sysPrompt(String) is available:
HarnessAgent.builder()
// Keep your existing name, model and other configuration.
.sysPrompt("After modifying code, run the relevant tests and report any checks you could not run.");
This sets the system prompt; include your existing system instructions in the same value. It is not an equivalent implementation of dev's named context-source/instruction API.
For released APIs, select 2.0 in the documentation selector, for example the stable Harness guide. That documentation snapshot targets 2.0.4, so a 2.0.3 application should still check any newer methods against its exact dependency version.
An explicit development-version note beside the named-instruction example would help readers arriving through a direct /dev/ link. I can add that clarification in both languages if maintainers want it. This check establishes API availability, not a runtime test of the reporter's application.
Activity
CryoThrust commentedon Nov 17, 2026
The linked page is under
/dev/, which describes current development APIs. I checked the publishedagentscope-harness2.0.3 and 2.0.4 JARs withjavap: neither builder hasinstruction(String, String). Current main does have that method, so removing it from the dev guide would make that guide inaccurate in the other direction.For a static policy on 2.0.3,
HarnessAgent.Builder.sysPrompt(String)is available:This sets the system prompt; include your existing system instructions in the same value. It is not an equivalent implementation of dev's named context-source/instruction API.
For released APIs, select 2.0 in the documentation selector, for example the stable Harness guide. That documentation snapshot targets 2.0.4, so a 2.0.3 application should still check any newer methods against its exact dependency version.
An explicit development-version note beside the named-instruction example would help readers arriving through a direct
/dev/link. I can add that clarification in both languages if maintainers want it. This check establishes API availability, not a runtime test of the reporter's application.docs(harness): note instruction availability for 2.0.x
docs(harness): note instruction availability for 2.0.x
docs(harness): note instruction availability for 2.0.x (agentscope-ai…