Repository navigation
docs(harness): note instruction availability for 2.0.x - #4232
Merged
jujn merged 1 commit intoNov 19, 2026
Merged
Conversation
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The sysPrompt(...) documentation example discards the agent’s existing instructions instead of preserving them alongside the new rule.
1 open issue
What changed in this PR
Clarifies Harness API availability to address #4231, helping readers of the development guides avoid using instruction(...) with released 2.0.x versions.
Changes:
- Adds English and Chinese notes identifying
instruction(...)as available in 2.1 and later. - Provides
sysPrompt(...)fallback examples for 2.0.x; versioned 2.0 documentation remains unchanged.
| File | Description |
|---|---|
docs/dev/zh/docs/harness/context.md |
Adds the Chinese version note and 2.0.x fallback example. |
docs/dev/en/docs/harness/context.md |
Adds the English version note and 2.0.x fallback example. |
Review effort: Balanced
shanuo0312
force-pushed
the
agent/fix-agentscope-4231-69fe2bb65400
branch
from
November 17, 2026 11:05
4a16dc5 to
e3e368b
Compare
`HarnessAgent.Builder.instruction(String, String)` exists only in the 2.1 development line. The Harness context guide showed the `instruction` example without a version boundary, so readers who opened the `/dev/` page with a released 2.0.x dependency could not compile it. Document the version boundary next to the example on the English and Chinese pages and point 2.0.x readers to `sysPrompt`. Fixes agentscope-ai#4231
shanuo0312
force-pushed
the
agent/fix-agentscope-4231-69fe2bb65400
branch
from
November 17, 2026 11:07
e3e368b to
3a89a14
Compare
jujn
approved these changes
Nov 18, 2026
Collaborator
|
请签署 CLA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This is by an automated agent, not a human.
AgentScope-Java Version
2.1.0-SNAPSHOT(main) — documentation change only.Description
Fixes #4231.
HarnessAgent.Builder.instruction(String, String)is available only in the 2.1 development line (present inv2.1.0-BETA1andmain). The Harness context guide showed theinstructionexample with no version boundary, so readers who followed a direct/dev/link while depending on a released 2.0.x version hit a compile error.This adds a version-availability callout beside the example on the English and Chinese dev pages:
instructionis available in 2.1 and later, and 2.0.x applications should keep their existing system prompt and add the rule tosysPromptinstead. The 2.0 versioned docs are unchanged because they do not contain this page.Before / After
Baseline:
5a7e8e533709398fe5fc047e153235bfdf952498(currentmain). Changed revision:3a89a14595e37e1ec91feb01f3fb00168ab3b517.Before —
docs/dev/en/docs/harness/context.mdanddocs/dev/zh/docs/harness/context.mdshowed theinstructionexample with no version boundary:After — a Mintlify
<Note>callout with the 2.0.x alternative follows each example. English:Chinese page receives the equivalent callout; its note also tells readers to keep any existing system prompt and add the rule.
Verification
cd docs && npm test— passed.cd docs && npm run validate— passed:659 pages, 999 redirects: navigation, syntax, local links, anchors and assets passed.andsuccess build validation passed.cd docs && npm run broken-links— passed:success no broken links found.v2.0.3,v2.0.4, andv2.0.5havesysPromptbut noinstruction;v2.1.0-BETA1andmainhave both.Checklist
mvn spotless:apply— N/A, documentation-only change.mvn test) — N/A, documentation-only change; the docs checks above are the relevant validation.