Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MQResponse model #7

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Add MQResponse model #7

wants to merge 1 commit into from

Conversation

NeonDaniel
Copy link
Member

@NeonDaniel NeonDaniel commented Dec 10, 2024

Description

Add MQResponse model to define parameters used for multi-part response handling

Issues

Implements responses documented in NeonGeckoCom/neon_mq_connector#101

Other Notes



class MQResponse(MQContext):
is_final: bool = Field(default=True, alias="_is_final",

Choose a reason for hiding this comment

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

Does it mean that every message will have this field even if not using streaming?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ideally, yes. There's not currently anything forcing any kind of MQ message validation, but my intent is that every response message will be defined in this module and will extend this MQResponse class

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.

2 participants