kyma-project / kyma-companion

A tool that brings AI to Kyma
Apache License 2.0
2 stars 6 forks source link

Implement Controllers and Session Management #48

Open Teneroy opened 2 weeks ago

Teneroy commented 2 weeks ago

Description

Develop and integrate necessary controllers for communication with external services and implement session management to maintain user sessions effectively in the Kyma Companion core application. The task depends on #47 . The task can be done after we connect to the redis client. The redis setup depends on this task #25 .

Subtasks

  1. Setup Controllers:
    • Implement necessary controllers to enable communication with external services (dummy API, "Hello World" responses with correct data types).
    • /chat: Handle conversation with an agent. At the moment just dummy response stream.
    • /followups: Generate follow-up questions. Just dummy response.
    • /init: Generate initial questions and initialize the conversation with an agent. Just dummy response.
    • Ensure controllers can handle multiple requests from different users simultaneously.
  2. Integrate Session Management:
    • Set up the connection to the Redis client for session storage.
    • Implement middleware to inject sessions into the request handling process.

Acceptance Criteria