Skip to content

feat(rust): re-export IndexMap from the schema crate - #2970

Merged
benbrandt merged 1 commit into
mainfrom
feat/reexport-indexmap
Nov 21, 2026
Merged

benbrandt merged 1 commit into
mainfrom
feat/reexport-indexmap

Conversation

@benbrandt

Copy link
Copy Markdown
Member

Since 1.20.0 the maps in the schema types are indexmap::IndexMaps, so they keep the key order of the wire: the fields of every unknown variant, ElicitationSchema::properties, ElicitationAcceptAction::content, and SetProviderRequest::headers.

Building one by name needed a direct indexmap dependency at a matching major version. agent_client_protocol_schema::IndexMap is now the same type, next to MaybeUndefined. The crate docs gain a short "Maps" section with an example.

The generated schema files do not change.

Since 1.20.0 the maps in the schema types are `indexmap::IndexMap`s, so
they keep the key order of the wire. Building an unknown variant, an
elicitation form, or provider headers by name needed a direct `indexmap`
dependency at a matching version.

`agent_client_protocol_schema::IndexMap` is the same type. The crate
docs gain a short section with an example.
@benbrandt
benbrandt requested a review from a team as a code owner November 21, 2026 11:22
@benbrandt
benbrandt enabled auto-merge (squash) November 21, 2026 11:22
@benbrandt
benbrandt merged commit 18862ab into main Nov 21, 2026
15 checks passed
@benbrandt
benbrandt deleted the feat/reexport-indexmap branch November 21, 2026 11:28
@acp-release-bot acp-release-bot Bot mentioned this pull request Nov 21, 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.

1 participant