Skip to content

[BUG] Azure.AI.Agents.Persistent.ThreadMessages.GetMessagesAsync ignores "after" parameter #51342

@azu-compent

Description

@azu-compent

Library name and version

Azure.AI.Agents.Persistent 1.1.0-beta.4

Describe the bug

Azure.AI.Agents.Persistent.ThreadMessages.GetMessagesAsync ignores "after" parameter, this makes it impossible to skip messages during pagination.

public virtual AsyncPageable<PersistentThreadMessage> GetMessagesAsync(string threadId, string runId = null, int? limit = null, ListSortOrder? order = null, string after = null, string before = null, CancellationToken cancellationToken = default)

Expected behavior

"after" parameter is passed correctly to the endpoint

Actual behavior

"after" parameter is ignored

Reproduction Steps

Install the library and try to pass "after" parameter.

Environment

Not important

Metadata

Metadata

Assignees

Labels

AI AgentsClientThis issue is related to a non-management packageService AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.issue-addressedWorkflow: The Azure SDK team believes it to be addressed and ready to close.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions