@lambforge/agent-chat 0.0.6 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -76,6 +76,21 @@ the `launcher` slot replaces the button's icon. Editors that read
76
76
  `@customElement` JSDoc (web-component-analyzer, lit-plugin) autocomplete
77
77
  all of them.
78
78
 
79
+ Ratings: every answer gets a thumbs up / down (the same thumb again takes
80
+ it back). A thumbs down opens a short optional "what was wrong" box. The
81
+ owner reads them in Conversations and Usage, and can switch them off in
82
+ **Embed -> Visitors may rate answers**. Parts: `rate`, `thumb-up`,
83
+ `thumb-down`, `feedback-comment`.
84
+
85
+ Files: when the agent's owner turns on **Embed -> Visitors may attach
86
+ files**, the chat shows a paperclip. Visitors pick images, PDFs or text
87
+ files (or paste a picture), see them under the input and can remove one
88
+ before sending. The files go straight to storage, then the message is sent.
89
+ Agents without the switch show no paperclip, and the server refuses their
90
+ files anyway. The limits are those of the API: images 5 MB, PDF 10 MB, text
91
+ 1 MB, 5 files and 15 MB a message. `el.attach(files)` adds files from your
92
+ own code. Parts: `attach`, `files`, `file`.
93
+
79
94
  Answers render a safe markdown subset (paragraphs, lists, code, bold,
80
95
  italics, http(s) links); an answer can never inject HTML.
81
96