You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to have a user message appear when the user triggers a new quick action, so they can clearly see what the sequence of requests are in the chat window. These messages should never be forwarded to the server (I believe you don't need to do anything special to ensure this, but double check). The flow should be as follows:
a user triggers a new quick action
Where we kick off a new streamMessage call, we should ensure we're also updating the messages in state, without sending them to the server.
The messages should be the following:
Writing tools
translate -> Translate my artifact to ${language}
reading level -> Rewrite my artifact to be at a ${"PhD" | "college student" | "teenager" | "child"} reading level. or Rewrite my artifact to sound like a pirate
adjust length -> Update my artifact to be ${"much longer" | "longer" | "shorter" | "much shorter"}`
add emojis -> Add emojis to my artifact
Coding tools
add comments -> Add descriptive inline comments to my code.
add logs -> Insert log statements into my code.
port language -> Port the code to ${language}.
fix bugs -> Fix any potential bugs in my code.
Custom artifacts
The message should be: Please use my custom quick action "${quick action name}" to update my artifact.
The text was updated successfully, but these errors were encountered:
I've submitted a PR (#185 ) that implements user messages for all quick actions in the chat window. Here's what was added:
Message handling for:
Text actions (translate, reading level adjustments, etc)
Code actions (comments, logs, language porting, etc)
Custom quick actions
Example messages:
"Translate my artifact to Spanish"
"Rewrite my artifact to be at a PhD reading level"
"Add descriptive inline comments to my code"
"Please use my custom quick action 'Format Code' to update my artifact"
I want to have a user message appear when the user triggers a new quick action, so they can clearly see what the sequence of requests are in the chat window. These messages should never be forwarded to the server (I believe you don't need to do anything special to ensure this, but double check). The flow should be as follows:
streamMessage
call, we should ensure we're also updating the messages in state, without sending them to the server.The messages should be the following:
Writing tools
translate
->Translate my artifact to ${language}
reading level
->Rewrite my artifact to be at a ${"PhD" | "college student" | "teenager" | "child"} reading level.
orRewrite my artifact to sound like a pirate
adjust length
->Update my artifact to be
${"much longer" | "longer" | "shorter" | "much shorter"}`add emojis
->Add emojis to my artifact
Coding tools
add comments
->Add descriptive inline comments to my code.
add logs
->Insert log statements into my code.
port language
->Port the code to ${language}.
fix bugs
->Fix any potential bugs in my code.
Custom artifacts
The message should be:
Please use my custom quick action "${quick action name}" to update my artifact.
The text was updated successfully, but these errors were encountered: