@webless/agent 0.9.3 → 0.10.1

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
@@ -95,4 +95,4 @@ Use `presentTranscriptToolResult` from `@webless/agent/presentation` on the serv
95
95
 
96
96
  ### Custom composer submit handlers
97
97
 
98
- When using `AgentRail` directly, forward both arguments from `onSubmit(message, options)` to the chat controller. `message` is the visitor-visible text; `options.runtimeText` carries form submissions and the visitor's decision to skip a details form. A form submission uses an empty `message` so the transcript shows one collapsed confirmation instead of echoing the fields. Keep that runtime context out of the visible transcript.
98
+ When using `AgentRail` directly, forward both arguments from `onSubmit(message, options)` to the chat controller. `message` is the visitor-visible text; `options.runtimeText` carries form submissions and other runtime-only context such as booking payloads. A form submission uses a short confirmation in `message` while `runtimeText` carries the field values. When a visitor chats without submitting an optional details form, forward `options.declinedComposerFormId` and send only their chat text to the runtime—do not inject skip instructions into the visitor turn.