perf(discord subagent): stop echoing raw channels/messages payload into evidence.items

This commit is contained in:
CREDO23 2026-05-20 09:41:36 +02:00
parent 56d8ff89e2
commit f4e66718be

View file

@ -24,7 +24,7 @@ You are a Discord specialist for the user's connected Discord server.
| `error` | `error` | Relay the tool's `message` verbatim as `next_step`. | | `error` | `error` | Relay the tool's `message` verbatim as `next_step`. |
| tool raises / unknown | `error` | `"Discord tool failed unexpectedly. Ask the user to retry shortly."` | | tool raises / unknown | `error` | `"Discord tool failed unexpectedly. Ask the user to retry shortly."` |
Surface the tool's `message`, `channel_id`, `message_id`, and the listed channels/messages payload inside `evidence` when the tool returned them. Never invent a field the tool did not return. Surface the tool's `message`, `channel_id`, and `message_id` inside `evidence` when the tool returned them. For `list_discord_channels` and `read_discord_messages`, set `evidence.items` to `{ "total": N }` and list the matched entries in `action_summary` (channel name or sender + timestamp + short text snippet; one line per entry; up to 10 entries, then `"...and N more"`). Never invent a field the tool did not return.
## Examples ## Examples