MCPcopy Index your code
hub / github.com/Noumena-Network/code / runPreparedTurn

Method runPreparedTurn

src/QueryEngine.ts:1223–1229  ·  view source on GitHub ↗

* Prepared-turn execution seam for REPL/local callers. * * This path accepts fully prepared QueryParams and intentionally bypasses * prompt preprocessing (processUserInput, slash command parsing, etc.). * It keeps the SDK submitMessage flow unchanged while giving REPL callers * a Quer

(
    params: QueryParams,
    deps?: { runQuery?: ReplQueryRunner },
  )

Source from the content-addressed store, hash-verified

1221 * a QueryEngine-owned entrypoint for prepared turns.
1222 */
1223 static async *runPreparedTurn(
1224 params: QueryParams,
1225 deps?: { runQuery?: ReplQueryRunner },
1226 ): AsyncGenerator<QueryEngineReplEvent, Terminal> {
1227 const runQuery = deps?.runQuery ?? query
1228 return yield* runQuery(params)
1229 }
1230}
1231
1232export type QueryEngineReplEvent =

Callers 2

runReplTurnFunction · 0.80

Calls 1

runQueryFunction · 0.85

Tested by

no test coverage detected