SeedSummary builds a base summary map with a first_message label. Returns nil if label is empty.
(label string)
| 35 | // SeedSummary builds a base summary map with a first_message label. |
| 36 | // Returns nil if label is empty. |
| 37 | func SeedSummary(label string) map[string]any { |
| 38 | if label == "" { |
| 39 | return nil |
| 40 | } |
| 41 | return map[string]any{"first_message": label} |
| 42 | } |
| 43 | |
| 44 | // ExtractFirstUserText extracts the plain text content from a |
| 45 | // fantasy.Prompt for the first user message. Used to derive |
no outgoing calls