Skip to content

Fix with ctx.send_and_receive. #798

@abhifetch

Description

@abhifetch

Prerequisites

  • I checked the documentation and found no answer to my problem
  • I checked the existing issues and made sure there are no similar bug reports

Category

Bug (unexpected behavior)

Expected Behavior

While getting a message back in send_and_recieve from chat protocol. it should ignore chatAcknowledgment and consider only chatMessage

Observed Behavior

I noticed a bug from hackathon participants where if an agent receives a ChatAcknowledgement message before a ChatMessage, and in the case ctx.send_and_receive expects a ChatMessage, the ctx.send_and_receive function errors out. It seems to detect the first message type and fails to process the subsequent one properly. This could happen to other message schemas too other than ChatProtocol-related ones.

To Reproduce

No response

Version

0.22.10

Environment Details (Optional)

Failure Logs (Optional)

Additional Information (Optional)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions