Skip to content

test(a2a): align ResponseConverter tests with unlabelled DataPart fallback - #1405

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_959656099
Aug 5, 2026
Merged

test(a2a): align ResponseConverter tests with unlabelled DataPart fallback#1405
copybara-service[bot] merged 1 commit into
mainfrom
test_959656099

Conversation

@copybara-service

Copy link
Copy Markdown

test(a2a): align ResponseConverter tests with unlabelled DataPart fallback

A DataPart carrying no adk_type metadata is no longer inferred to be a
function call. PartConverter serializes it into an inline text/plain JSON
blob instead, so two tests that still asserted the old inferred behaviour
failed at head with NoSuchElementException on an empty functionCall().

Update both to assert what the converter actually produces: no function
call, and an inline JSON blob that still carries the original payload. A
small inlineJson helper holds the blob-shape assertions and explains why
the fallback happens.

@copybara-service
copybara-service Bot force-pushed the test_959656099 branch 2 times, most recently from 5568e30 to 0ae02a4 Compare August 5, 2026 19:09
…lback

A DataPart carrying no `adk_type` metadata is no longer inferred to be a
function call. PartConverter serializes it into an inline `text/plain` JSON
blob instead, so two tests that still asserted the old inferred behaviour
failed at head with `NoSuchElementException` on an empty `functionCall()`.

Update both to assert what the converter actually produces: no function
call, and an inline JSON blob that still carries the original payload. A
small `inlineJson` helper holds the blob-shape assertions and explains why
the fallback happens.

PiperOrigin-RevId: 959800614
@copybara-service
copybara-service Bot merged commit cfcec61 into main Aug 5, 2026
1 check passed
@copybara-service
copybara-service Bot deleted the test_959656099 branch August 5, 2026 19:17
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