(parts []fantasy.StreamPart)
| 680 | } |
| 681 | |
| 682 | func streamFromParts(parts []fantasy.StreamPart) fantasy.StreamResponse { |
| 683 | return iter.Seq[fantasy.StreamPart](func(yield func(fantasy.StreamPart) bool) { |
| 684 | for _, part := range parts { |
| 685 | if !yield(part) { |
| 686 | return |
| 687 | } |
| 688 | } |
| 689 | }) |
| 690 | } |
| 691 | |
| 692 | func textMessage(role fantasy.MessageRole, text string) fantasy.Message { |
| 693 | return fantasy.Message{ |
no outgoing calls
no test coverage detected