sam
6fea86ae5e
feat(gateway): offer ask_user when the turn's channel can carry a question
...
prepareTurn now registers an ask_user tool only when the turn context
carries an interactive adapter (WithInteractive), so a contract with no
caller has a real one and a channel that cannot ask registers no tool
rather than one that always fails. A channel reporting Picker gets the
native single-choice request; one reporting only Clarify still carries a
choice, rendered as numbered text and matched from the typed reply through
the domain's FormatPickerText/ParsePickerReply rather than erroring.
Red-first: InteractiveTools returned nothing and
TestInteractiveToolsRegisteredWithCarrier / TestAskUserUsesPickerWhenChannelCanPick
/ TestAskUserFallsBackToTextWhenChannelCannotPick failed at the assertion
before the tool was implemented. TestTurnRegistersAskUserOnlyWithCarrier
proves reachability from a real TurnRunner turn.
2026-10-02 11:52:07 +10:00
..
2026-09-19 11:40:45 +10:00
2026-08-23 03:27:44 +10:00
2026-09-19 23:37:23 +10:00
2026-08-08 16:42:59 +10:00
2026-08-08 16:42:59 +10:00
2026-09-09 01:05:36 +10:00
2026-09-10 03:03:33 +10:00
2026-09-10 03:03:33 +10:00
2026-09-30 08:57:32 +10:00
2026-10-02 10:53:21 +10:00
2026-09-09 01:05:36 +10:00
2026-09-08 21:28:19 +10:00
2026-09-24 19:39:06 +10:00
2026-09-08 21:28:19 +10:00
2026-09-24 14:26:42 +10:00
2026-08-09 01:15:41 +10:00
2026-08-09 01:15:41 +10:00
2026-09-10 03:03:33 +10:00
2026-09-25 01:32:20 +10:00
2026-10-02 11:08:44 +10:00
2026-09-30 08:57:32 +10:00
2026-09-30 08:57:32 +10:00
2026-09-30 08:57:32 +10:00
2026-09-30 08:57:32 +10:00
2026-10-02 10:00:37 +10:00
2026-09-20 02:42:36 +10:00
2026-09-20 02:42:36 +10:00
2026-09-09 01:05:36 +10:00
2026-10-02 11:52:07 +10:00
2026-10-02 11:52:07 +10:00
2026-10-02 11:52:07 +10:00
2026-09-30 08:57:32 +10:00
2026-09-30 07:48:56 +10:00
2026-08-06 22:55:26 +10:00
2026-09-19 23:37:23 +10:00
2026-07-26 01:19:38 +10:00
2026-09-19 23:37:23 +10:00
2026-09-10 03:03:33 +10:00
2026-09-21 08:17:42 +10:00
2026-09-21 08:17:42 +10:00
2026-09-05 22:52:03 +10:00
2026-09-19 11:46:05 +10:00
2026-09-09 01:05:36 +10:00
2026-09-24 21:45:27 +10:00
2026-09-24 21:45:27 +10:00
2026-08-09 22:27:25 +10:00
2026-09-09 01:05:36 +10:00
2026-09-09 01:05:36 +10:00
2026-09-22 04:30:15 +10:00
2026-09-09 01:05:36 +10:00
2026-08-05 04:24:16 +10:00
2026-09-30 03:07:54 +10:00
2026-09-24 14:26:42 +10:00
2026-09-30 03:07:54 +10:00
2026-09-24 14:26:42 +10:00
2026-07-26 10:25:07 +10:00
2026-09-30 08:57:32 +10:00
2026-09-09 01:05:36 +10:00
2026-09-09 23:33:38 +10:00
2026-09-09 23:33:38 +10:00
2026-09-09 01:05:36 +10:00
2026-09-10 03:03:33 +10:00
2026-09-30 03:07:54 +10:00
2026-10-02 10:00:37 +10:00
2026-10-02 10:00:37 +10:00
2026-09-30 08:57:32 +10:00
2026-09-19 23:37:23 +10:00
2026-10-02 10:53:21 +10:00
2026-09-29 00:35:34 +10:00
2026-10-02 10:53:21 +10:00
2026-10-02 02:27:59 +10:00
2026-10-02 02:27:59 +10:00
2026-09-30 08:26:27 +10:00
2026-09-17 10:13:07 +00:00
2026-09-22 21:36:02 +10:00
2026-09-24 19:39:06 +10:00
2026-09-24 14:26:42 +10:00
2026-10-02 11:12:59 +10:00
2026-09-22 04:30:15 +10:00
2026-09-19 12:59:11 +10:00
2026-09-19 12:59:11 +10:00
2026-09-22 04:30:15 +10:00
2026-09-09 01:05:36 +10:00
2026-10-02 10:25:39 +10:00
2026-10-02 11:52:07 +10:00
2026-07-30 01:25:46 +10:00
2026-09-19 23:37:23 +10:00
2026-09-15 10:18:53 +10:00