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

Implement Pinning Feature in the Chat #19

Open
mihaela21k opened this issue Nov 16, 2024 · 2 comments
Open

Implement Pinning Feature in the Chat #19

mihaela21k opened this issue Nov 16, 2024 · 2 comments
Labels

Comments

@mihaela21k
Copy link
Collaborator

mihaela21k commented Nov 16, 2024

Explanation:

When a specific agent is called in the Theia IDE chat starting with the help of @xyz in the first message in the session, then this agent should be pinned for the subsequent messages in this session, so that there is no need for the user to mention it every time.

If the user wants to call other agent, different from the pinned one, the user can call it via @abc. This action does not affect the pinning of the first agent for this session and the agent remains pinned.

If an agent @abc is pinned, a pinning sign would be shown on top of the input widget with a close button, and user can click on the button to unpin the agent.

If in the first message in the chat we don’t call any agent, the chat remains unpinned.

Implementation:

Create a function „Pin-Chat-Session-To-Agent“ with arguments - agent and chat session. Set a flag in the chat session - to be respected by the chat service. This function can then be called by the chat service in the following scenarios:

if the first message in a chat session starts with calling agent via @xyz

@JonasHelming
Copy link
Member

Could you describe this much more in detail how it exactly works? I have sent you a discussion about this.

@mihaela21k
Copy link
Collaborator Author

mihaela21k commented Nov 22, 2024

flowchart TD
    A["Start Chat Session"] -- First Message Starts with @xyz --> B["Pin to @xyz"]
    A -- First Message Does Not Mention Agent --> C["Unpinned Session"]
    B --> D["Subsequent Messages Sent to @xyz Automatically"]
    D -- Mention @abc --> F["User Mentions Other Agent - e.g., @abc"]
    F -- Does Not Affect Pinning --> D
    D --> UI["User Unpins Agent via Unpin Button"]
    UI --> C
Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants