Skip to content

Stateless user context support#178

Merged
virrius merged 3 commits into
mainfrom
stateless-support
Mar 11, 2026
Merged

Stateless user context support#178
virrius merged 3 commits into
mainfrom
stateless-support

Conversation

@virrius
Copy link
Copy Markdown
Member

@virrius virrius commented Mar 4, 2026

I add an ID to the agent's context and, depending on its state, determine what to do with the incoming context.

If an ID is present — I treat the mode as stateless and assume that the received context is complete.


Добавляю id в контекст агента и в зависимости от его состояния определяю, что должен делать с входным контекстом.

Если id есть - воспринимаю режим как stateless и считаю, что полученный контекст - полный

Мне не до конца нравится текущая реализация, но ничего умнее я пока не придумал. Во всяком случае на моих тестах оно более-менее эффективно ворочало контекстом в stateless условиях, с openwebui в частности

@virrius virrius self-assigned this Mar 4, 2026
@virrius virrius changed the title [Draft] Stateless support [Draft] Stateless user context support Mar 4, 2026
@virrius virrius marked this pull request as ready for review March 7, 2026 11:46
@virrius virrius changed the title [Draft] Stateless user context support Stateless user context support Mar 7, 2026
@virrius virrius merged commit b75da16 into main Mar 11, 2026
2 checks passed
@virrius virrius deleted the stateless-support branch March 11, 2026 13:57
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