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

Integrate and adjust POST /conversations endpoint #3602

Open
6 tasks
chriskari opened this issue Jan 17, 2025 · 0 comments
Open
6 tasks

Integrate and adjust POST /conversations endpoint #3602

chriskari opened this issue Jan 17, 2025 · 0 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature. kyma companion Related to all activities around the Kyma Companion

Comments

@chriskari
Copy link
Contributor

chriskari commented Jan 17, 2025

Description
The Kyma Companion frontend needs to make API calls to the POST /conversations endpoint in the Kyma Companion backend. This endpoint initializes a conversation by:

  1. Receiving information about the currently opened resource.
  2. Returning a list of suggestions for initial questions to start the conversation.
  3. Providing a session ID for subsequent interactions.

The POC version already includes a similar API call in the file KymaCompanion/api/getPromptSuggestions.js. However, since the development of the POC, the API structure and requirements have been updated. This API call must be adjusted accordingly to reflect the latest backend implementation.

For detailed information on the updated API structure, refer to the API documentation.

Tasks:
The necessary adjustments include, but may not be limited to

  • Endpoint and URL have changed
  • Cluster authorization should already be properly added to the headers, but take a second look
  • Format of request body has changed
  • Format of response body has changed
  • Response header now contains a session ID that needs to be used for subsequent API calls and must be securely stored on the frontened side
  • Previously the session ID was created on the client side, so this flow probably needs to be adjusted
@chriskari chriskari added kind/feature Categorizes issue or PR as related to a new feature. kyma companion Related to all activities around the Kyma Companion labels Jan 17, 2025
@chriskari chriskari changed the title Integrate and Adjust POST /conversations Endpoint Integrate and adjust POST /conversations endpoint Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. kyma companion Related to all activities around the Kyma Companion
Projects
None yet
Development

No branches or pull requests

1 participant