Skip to content

Mirror AgentScope #2796 for JAIPilot Cloud - #1

Open
skrcode wants to merge 1 commit into
baseline/agentscope-pr-2796from
evaluation/agentscope-pr-2796
Open

Mirror AgentScope #2796 for JAIPilot Cloud#1
skrcode wants to merge 1 commit into
baseline/agentscope-pr-2796from
evaluation/agentscope-pr-2796

Conversation

@skrcode

@skrcode skrcode commented Aug 22, 2026

Copy link
Copy Markdown
Owner

Exact mirror of agentscope-ai#2796 at head 15859a9.

Evaluation context: this change restores thread safety by serializing every schema generation through one global lock. Look only for a small behavior-preserving improvement within the changed production path that reduces avoidable lock contention or work. Preserve schema bytes, exception behavior, and thread safety. Independently benchmark or count the relevant operation under comparable conditions; keep no change if the benefit cannot be proved.

The shared static victools SchemaGenerator is not thread-safe: its
JacksonModule keeps an unsynchronized introspection cache, so concurrent
structured calls can fail with ConcurrentModificationException. Guard
both schemaGenerator.generateSchema(...) call sites with a dedicated lock.
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.

2 participants