Skip to content

feat(api): add mobile turn event facade#459

Open
PIGU-PPPgu wants to merge 1 commit into
HKUDS:mainfrom
PIGU-PPPgu:codex/mobile-turn-events
Open

feat(api): add mobile turn event facade#459
PIGU-PPPgu wants to merge 1 commit into
HKUDS:mainfrom
PIGU-PPPgu:codex/mobile-turn-events

Conversation

@PIGU-PPPgu
Copy link
Copy Markdown

Summary

  • add /api/v1/mobile/chat/turn to start a TurnRuntimeManager turn over HTTP
  • add /api/v1/mobile/turns/{turn_id}/events for long-poll replayable stream events
  • add /api/v1/mobile/turns/{turn_id}/cancel for mobile cancellation
  • assemble final content using the same llm_final_response rule as the web client

Why

WeChat Mini Program clients cannot always keep /api/v1/ws open. These endpoints expose the existing runtime without adding a second chat engine, so mobile can fall back to HTTP polling while preserving DeepTutor thinking/tool/observation/content events.

Verification

  • python -m py_compile deeptutor/api/main.py deeptutor/api/routers/mobile.py

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.

1 participant