Skip to content

Fix ResponseUpdate.String godoc: it has no messages - #1150

Open
PratikDhanave (PratikDhanave) wants to merge 1 commit into
microsoft:mainfrom
PratikDhanaveFork:fix/godoc-responseupdate-string
Open

PratikDhanave (PratikDhanave) wants to merge 1 commit into
microsoft:mainfrom
PratikDhanaveFork:fix/godoc-responseupdate-string

Conversation

@PratikDhanave

Copy link
Copy Markdown
Contributor

ResponseUpdate.String ranges over r.Contents (this single update's own content slice), but its comment says it returns "the concatenated text contents of the response messages." A ResponseUpdate has no messages — the wording was copied from Response.String, which genuinely iterates resp.Messages. Comment-only fix.

ResponseUpdate.String iterates the update's own Contents; a ResponseUpdate has
no messages. The "response messages" wording was copied from Response.String
(which does iterate resp.Messages).
Copilot AI lite review requested due to automatic review settings September 22, 2026 03:13
@github-actions github-actions Bot added area:agent Changes files in the agent area size:small At most 30 changed lines across at most 2 files labels Sep 22, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

Documentation now matches the implementation, with no unresolved issues.

Review effort: Lite
Findings: None

What changed in this PR

Updates ResponseUpdate.String godoc to accurately describe the update’s contents.

Changes:

  • Corrected the documentation in agent/response.go.
File Description
agent/​response.go Corrected ResponseUpdate.String godoc.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

Copy link
Copy Markdown
Contributor

Scope: internal-only (documentation comment only)

Changed Go contract: None — this PR only corrects the godoc comment on ResponseUpdate.String in agent/response.go. It does not change any exported signature, type, default, or runtime behavior; String() still ranges over r.Contents exactly as before.

Upstream evidence reviewed: Not applicable — no API or behavior changed, so no upstream .NET/Python comparison is needed.

Result: out of scope for cross-repo parity review. This is a 1-line comment-only fix (+1/-1 in agent/response.go) with no observable effect on callers, so there is nothing to compare against microsoft/agent-framework. No public-api-change label applies.

Generated by Go API Consistency Review Agent · copilot · auto · 13.1 AIC · ⌖ 7.14 AIC · ⊞ 9.2K ·

@github-actions github-actions Bot added the kind:docs Changes documentation or comments label Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:agent Changes files in the agent area kind:docs Changes documentation or comments size:small At most 30 changed lines across at most 2 files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants