Skip to content

feat(core): adapters process chat message in a background task#863

Draft
lrahmani wants to merge 2 commits intomainfrom
feat/adaptors-send-chat-response-in-bg-task
Draft

feat(core): adapters process chat message in a background task#863
lrahmani wants to merge 2 commits intomainfrom
feat/adaptors-send-chat-response-in-bg-task

Conversation

@lrahmani
Copy link
Copy Markdown
Contributor

@lrahmani lrahmani commented Apr 1, 2026

No description provided.

background=BackgroundTask(
self._process_chat_message, request=request, env=env, msg=msg
),
)
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.

I presume this supports asynchronous messaging only. Should we at least handle the header x-uagents-connection: sync with a error message?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, I am not supporting async messaging yet

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