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

Create internal routes to back Conversations #1328

Closed
spolu opened this issue Sep 8, 2023 · 2 comments
Closed

Create internal routes to back Conversations #1328

spolu opened this issue Sep 8, 2023 · 2 comments
Assignees

Comments

@spolu
Copy link
Contributor

spolu commented Sep 8, 2023

We likely want to discuss a bit what will be the route format but now that the dispatch is merged we can start implementing them

The conversation creation is blocked on my PR: #1324 which is blocked on @PopDaph's PR: #1303 but as soon as the queue gets processed we should be able to fully implement most of the initial routes we'll need

@spolu spolu changed the title Create routes to back the assistant Create internal routes to back the assistant Sep 8, 2023
@spolu
Copy link
Contributor Author

spolu commented Sep 10, 2023

URL I think we'll need:

  • POST /api/w/[wId]/assistant/conversations (create new conversation)
  • POST /api/w/[wid]/assistant/conversations/[cId]/messages (post new User message)
  • GET /api/w/[wId]/assistant/converstaions/[cId] (retrieve converstaion by cId)
  • GET /api/w/[wId]/assistant/conversations/[cId]/events (stream conversation events)
  • GET /api/w/[wId]/assistant/conversations/[cId]/messages/[mId]/events (stream message events only if message is not an agent message and not succeeded)

Let's standardized all input validation to io-ts (example available in code-base + @fontanierh can help)

@spolu spolu changed the title Create internal routes to back the assistant Create internal routes to back Conversations Sep 10, 2023
@spolu
Copy link
Contributor Author

spolu commented Sep 11, 2023

yay \o/

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

No branches or pull requests

2 participants