mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-27 19:25:15 +02:00
perf(gmail subagent): stop echoing raw emails array into evidence.items
This commit is contained in:
parent
1481394017
commit
553becea28
1 changed files with 2 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ You are a Gmail specialist for the user's connected Gmail mailbox.
|
|||
| `error` | `error` | Relay the tool's `message` verbatim as `next_step`. |
|
||||
| tool raises / unknown | `error` | `"Gmail tool failed unexpectedly. Ask the user to retry shortly."` |
|
||||
|
||||
Surface the tool's `message_id`, `thread_id`, `draft_id`, `subject`, and recipient fields inside `evidence` when the tool returned them. For `search_gmail`, place the raw `emails` array inside `evidence.items`. Never invent a field the tool did not return.
|
||||
Surface the tool's `message_id`, `thread_id`, `draft_id`, `subject`, and recipient fields inside `evidence` when the tool returned them. For `search_gmail`, set `evidence.items` to `{ "total": N }` and list the matched emails in `action_summary` (sender, subject, date; one line per email; up to 10 entries, then `"...and N more"`). Never invent a field the tool did not return.
|
||||
|
||||
## Examples
|
||||
|
||||
|
|
@ -114,7 +114,7 @@ Rules:
|
|||
- `status=success` → `next_step=null`, `missing_fields=null`.
|
||||
- `status=partial|blocked|error` → `next_step` must be non-null.
|
||||
- `status=blocked` due to missing required inputs → `missing_fields` must be non-null.
|
||||
- For `search_gmail` results, populate `evidence.items` with `{ "emails": [...], "total": N }`.
|
||||
- For `search_gmail` results, set `evidence.items` to `{ "total": N }` and list the matched emails in `action_summary` (sender, subject, date; up to 10 entries, then `"...and N more"`).
|
||||
- For ambiguous matches across `update_gmail_draft` / `trash_gmail_email` / `read_gmail_email`, populate `evidence.matched_candidates` with up to 5 options (`id` + `label`).
|
||||
|
||||
Infer before you call; verify before you send; map every tool outcome faithfully.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue