Skip to content

docs(model): Improve documentation#1986

Merged
chickenlj merged 1 commit into
agentscope-ai:mainfrom
jujn:docs/model-migration-update
Jul 6, 2026
Merged

docs(model): Improve documentation#1986
chickenlj merged 1 commit into
agentscope-ai:mainfrom
jujn:docs/model-migration-update

Conversation

@jujn

@jujn jujn commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

AgentScope-Java Version

[The version of AgentScope-Java you are working on, e.g. 1.0.12, check your pom.xml dependency version or run mvn dependency:tree | grep agentscope-parent:pom(only mac/linux)]

Description

[Please describe the background, purpose, changes made, and how to test this PR]

Checklist

Please check the following items before code is ready to be reviewed.

  • Code has been formatted with mvn spotless:apply
  • All tests are passing (mvn test)
  • Javadoc comments are complete and follow project conventions
  • Related documentation has been updated (e.g. links, examples, etc.)
  • Code is ready for review

@jujn jujn requested review from a team and Copilot July 2, 2026 07:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the v2 English/Chinese documentation to reflect the “model providers as extension modules” architecture, and documents the recommended model creation paths (string model id vs explicit builders vs Spring Boot starters), plus the newer ModelRegistry/ModelCreationContext concepts.

Changes:

  • Expand model-layer docs to explain core contracts vs provider extensions, SPI discovery, and cache policy behavior.
  • Add guidance on choosing a model creation path (string id, explicit builder, Spring Boot starters).
  • Update agent docs to clarify that ModelRegistry string ids require the corresponding model extension module on the classpath.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
docs/v2/zh/docs/building-blocks/model.md Expands model documentation (creation paths, extension modules, registry/context, caching, SPI) and updates credential import example.
docs/v2/zh/docs/building-blocks/agent.md Clarifies classpath requirement for ModelRegistry string ids.
docs/v2/en/docs/building-blocks/model.md English counterpart of the model doc expansion and import update.
docs/v2/en/docs/building-blocks/agent.md English counterpart of the classpath requirement clarification.

Comment thread docs/v2/en/docs/building-blocks/model.md
Comment thread docs/v2/zh/docs/building-blocks/model.md
Comment thread docs/v2/en/docs/building-blocks/model.md
Comment thread docs/v2/zh/docs/building-blocks/model.md
@codecov

codecov Bot commented Jul 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@zouyx zouyx left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

But can you descrise the background of these changes?

@chickenlj chickenlj merged commit c363d1f into agentscope-ai:main Jul 6, 2026
6 checks passed
@jujn jujn deleted the docs/model-migration-update branch July 6, 2026 06:43
zouyx pushed a commit to zouyx/agentscope-java that referenced this pull request Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants