MCPcopy Index your code
hub / github.com/simstudioai/sim / send

Function send

apps/sim/lib/copilot/request/handlers/handlers.test.ts:562–577  ·  view source on GitHub ↗
(parent: string, channel: MothershipStreamV1TextChannel, text: string)

Source from the content-addressed store, hash-verified

560
561 it('keeps two concurrent subagent lanes separate for text and thinking', async () => {
562 const send = (parent: string, channel: MothershipStreamV1TextChannel, text: string) =>
563 subAgentHandlers.text(
564 {
565 type: MothershipStreamV1EventType.text,
566 scope: {
567 lane: 'subagent',
568 parentToolCallId: parent,
569 spanId: `span-${parent}`,
570 agentId: 'research',
571 },
572 payload: { channel, text },
573 } satisfies StreamEvent,
574 context,
575 execContext,
576 { interactive: false, timeout: 1000 }
577 )
578
579 // Interleaved thinking across two concurrent lanes.
580 await send('A', MothershipStreamV1TextChannel.thinking, 'A-think-1 ')

Callers 1

handlers.test.tsFile · 0.70

Calls 1

textMethod · 0.80

Tested by

no test coverage detected