(message: Message | undefined)
| 954 | } |
| 955 | |
| 956 | function textOf(message: Message | undefined): string { |
| 957 | return ( |
| 958 | message?.content |
| 959 | .map((part) => { |
| 960 | if (part.type === 'text') return part.text; |
| 961 | return ''; |
| 962 | }) |
| 963 | .join('') ?? '' |
| 964 | ); |
| 965 | } |
| 966 | |
| 967 | function hasMarker(messages: readonly Message[]): boolean { |
| 968 | return toolTexts(messages).includes(DEFAULT_MARKER); |
no outgoing calls
no test coverage detected