Skip to content

Conversation

@garyzhang99
Copy link
Collaborator

AgentScope Version

  • 1.0.6 (latest)

Description

  • Add first-class “messages saving” for both non-streaming and streaming model calls.

Changes

  • New agentscope.model._messages_save with MessagesDataCollector (JSONL).
  • ChatModelBase gains save_messages: bool, save_path: str | None.
  • Update OpenAI/Anthropic/DashScope/Ollama/Gemini to:
    • accept new params
    • save after non-stream completion
    • wrap streams to save once at end
  • Export MessagesDataCollector, enable_messages_save from agentscope.model.

Usage

  • Initialize models with save_messages=True, save_path=".../out.jsonl".

Status

  • DRAFT (naming/placement feedback welcome; need actual sft test; docs to follow).

Checklist

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

  • Code has been formatted with pre-commit run --all-files command
  • All tests are passing
  • Docstrings are in Google style
  • Related documentation has been updated (e.g. links, examples, etc.)
  • Code is ready for review

@github-actions
Copy link

github-actions bot commented Dec 2, 2025

This PR is marked as stale because there has been no activity for 30 days. Remove stale label or add new comments or this PR will be closed in 5 day.

@cla-assistant
Copy link

cla-assistant bot commented Dec 2, 2025

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


问昊 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@github-actions github-actions bot removed the stale-pr label Dec 3, 2025
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.

1 participant