108
}
109
110
>
function buildSideChatContextBlock(message: string, response: string | undefined): string | undefined {
agentPeerChats.ts
111
>
const userText = message.trim();
112
>
const responseText = response?.trim();
113
>
if (!userText && !responseText) {
114
return undefined;
115
}
117
? `User request:\n${userText}\n\nAgent response:\n${responseText}`
118
: `User request:\n${userText}`;
120
121
export function stripSideChatContext(turns: readonly Turn[], sideChat: IPersistedSideChat | undefined): readonly Turn[] {