Harshith Mullapudi 54e535d57d
Feat: v2 (#12)
* Feat: v2

* feat: add chat functionality

* First cut: integrations

* Feat: add conversation API

* Enhance conversation handling and memory management

* Feat: added conversation

---------

Co-authored-by: Manoj K <saimanoj58@gmail.com>
2025-07-08 22:41:00 +05:30

29 lines
851 B
TypeScript

export const conversationTitlePrompt = `You are an AI assistant specialized in generating concise and informative conversation titles. Your task is to analyze the given message and context to create an appropriate title.
Here is the message:
<message>
{{message}}
</message>
Please follow these steps:
- Extract the core topic/intent from the message
- Create a clear, concise title
- Focus on the main subject or action
- Avoid unnecessary words
- Maximum length: 60 characters
Before providing output, analyze in <title_analysis> tags:
- Key elements from message
- Main topic/action
- Relevant actors/context
- Your title formation process
Provide final output in this format:
<output>
{
"title": "Your generated title"
}
</output>
If message is empty or contains no meaningful content, return {"title": "New Conversation"}`;