Python: support ChatKit structured input conversion - #8843
Open
quick_fox (quifox) wants to merge 1 commit into
Open
quick_fox (quifox) wants to merge 1 commit into
quick_fox (quifox) wants to merge 1 commit into
Conversation
quick_fox (quifox)
deployed
to
github-app-auth
September 29, 2026 14:00 — with
GitHub Actions
Active
quick_fox (quifox)
deployed
to
github-app-auth
September 29, 2026 14:00 — with
GitHub Actions
Active
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The implementation matches the documented behavior and includes focused coverage for the supported states.
Review effort: Balanced
Findings: None
What changed in this PR
Adds ChatKit structured-input conversion so prior statuses and answers remain available as user context.
Changes:
- Converts answered, skipped, and unanswered structured inputs into a user message.
- Adds focused conversion and dispatch-order tests.
| File | Description |
|---|---|
python/packages/chatkit/agent_framework_chatkit/_converter.py |
Implements structured-input conversion and dispatch. |
python/packages/chatkit/tests/test_converter.py |
Covers conversion semantics and ordering. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
This branch was successfully deployed
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.
Motivation & Context
agent-framework-chatkitrecognizesStructuredInputItem, but the converter currently drops it withreturn []. This means structured input status and user answers are missing when ChatKit thread history is converted back into model input.Description & Review Guide
StructuredInputIteminto a userMessagethat preserves the overall status and represents each question as answered, skipped, or unanswered. Add focused coverage for multiple answers, skipped answers, unanswered questions, and dispatch ordering.openai-chatkitbehavior and stays inside the ChatKit adapter.Related Issue
Fixes #8841
Contribution Checklist
breaking changelabel (or add "[BREAKING]" to the title prefix, before or after any language prefix) — a workflow keeps the label and title prefix in sync automatically.