MCPcopy Index your code
hub / github.com/CommandCodeAI/BaseAI / getMessagesToSend

Method getMessagesToSend

packages/core/src/pipes/pipes.ts:158–166  ·  view source on GitHub ↗
(
		messages: Message[],
		responseMessage: Message,
		toolResults: Message[],
	)

Source from the content-addressed store, hash-verified

156 }
157
158 private getMessagesToSend(
159 messages: Message[],
160 responseMessage: Message,
161 toolResults: Message[],
162 ): Message[] {
163 return this.prod
164 ? toolResults
165 : [...messages, responseMessage, ...toolResults];
166 }
167
168 private isStreamRequested(options: RunOptions | RunOptionsStream): boolean {
169 return 'stream' in options && options.stream === true;

Callers 2

handleStreamResponseMethod · 0.95
runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected