(str: string)
| 94 | } |
| 95 | |
| 96 | export function parseUserMessage(str: string): string | undefined { |
| 97 | const match = str.match(/<user_message>(.*?)<\/user_message>/s) |
| 98 | return match ? match[1] : undefined |
| 99 | } |
| 100 | |
| 101 | export function withSystemInstructionTags(str: string): string { |
| 102 | return `<system_instructions>${str}${closeXml('system_instructions')}` |
no outgoing calls
no test coverage detected