MCPcopy Create free account
hub / github.com/Noumena-Network/code / buildInput

Function buildInput

src/components/messages/transcriptProjection.test.ts:105–128  ·  view source on GitHub ↗
(
  normalizedMessages: readonly NormalizedMessage[],
  syntheticStreamingToolUseMessages: readonly NormalizedMessage[] = [],
  options?: Partial<
    Pick<
      TranscriptProjectionInput,
      'tools' | 'isTranscriptMode' | 'verbose' | 'shouldTruncate'
    >
  >,
)

Source from the content-addressed store, hash-verified

103}
104
105function buildInput(
106 normalizedMessages: readonly NormalizedMessage[],
107 syntheticStreamingToolUseMessages: readonly NormalizedMessage[] = [],
108 options?: Partial<
109 Pick<
110 TranscriptProjectionInput,
111 'tools' | 'isTranscriptMode' | 'verbose' | 'shouldTruncate'
112 >
113 >,
114): TranscriptProjectionInput {
115 return {
116 normalizedMessages,
117 syntheticStreamingToolUseMessages,
118 tools: options?.tools ?? NO_TOOLS,
119 verbose: options?.verbose ?? false,
120 isTranscriptMode: options?.isTranscriptMode ?? false,
121 isBriefOnly: false,
122 shouldTruncate: options?.shouldTruncate ?? false,
123 fullscreenEnabled: true,
124 briefToolNames: [],
125 dropTextToolNames: [],
126 maxTranscriptMessages: 30,
127 }
128}
129
130function createBashToolUseTurn(command: string) {
131 return createAssistantMessage({

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected