Skip to content

Revert Change CallId to allow for more data. (#793)#880

Open
jgindin wants to merge 1 commit intogoogle:mainfrom
jgindin:server-initiated-functions
Open

Revert Change CallId to allow for more data. (#793)#880
jgindin wants to merge 1 commit intogoogle:mainfrom
jgindin:server-initiated-functions

Conversation

@jgindin
Copy link
Collaborator

@jgindin jgindin commented Mar 17, 2026

Description

After further discussion, we decided that the use case for passing the agent could be solved in a better way.

We're adding the call property to the functionResponse as we believe that will be useful for logging purposes.

Pre-launch Checklist

  • [x ] I signed the CLA.
  • [x ] I read the Contributors Guide.
  • [x ] I read the Style Guide.
  • I have added updates to the CHANGELOG.
  • [x ] I updated/added relevant documentation.
  • [x ] My code changes (if any) have tests.

After further discussion, we decided that the use case for passing the
agent could be solved in a better way.

We're adding the `call` property to the `functionResponse` as we believe
that will be useful for logging purposes.
@github-project-automation github-project-automation bot moved this to Todo in A2UI Mar 17, 2026
@jgindin jgindin requested a review from wrenj March 17, 2026 20:35
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request reverts the structure of CallId from an object back to a string, simplifying the specification. It also introduces a new optional call property to functionResponse for better logging. The changes to the specification and the updates to existing test cases to reflect the CallId change are well-executed. My only feedback is regarding test coverage for the newly added call property, as detailed in my comment.

Comment on lines +54 to +57
"call": {
"type": "string",
"description": "The name of the function which was called. MUST be copied verbatim from the function invocation. Useful for logging."
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The new call property is a useful addition for logging. However, the test suite for functionResponse messages in specification/v0_10/test/cases/function_response.json has not been updated to include cases for this new property. Per the repository's style guide, new code changes should be accompanied by tests. Please add a test case for a valid functionResponse containing the call property to ensure it is handled correctly.

References
  1. If there are code changes, code should have tests. (link)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant