MCPcopy Create free account
hub / github.com/CopilotKit/aimock / validateReasoning

Function validateReasoning

src/fixture-loader.ts:217–237  ·  view source on GitHub ↗
(
  response: { reasoning?: unknown },
  fixtureIndex: number,
  results: ValidationResult[],
)

Source from the content-addressed store, hash-verified

215}
216
217function validateReasoning(
218 response: { reasoning?: unknown },
219 fixtureIndex: number,
220 results: ValidationResult[],
221): void {
222 if (response.reasoning !== undefined) {
223 if (typeof response.reasoning !== "string") {
224 results.push({
225 severity: "error",
226 fixtureIndex,
227 message: "reasoning must be a string",
228 });
229 } else if (response.reasoning === "") {
230 results.push({
231 severity: "warning",
232 fixtureIndex,
233 message: "reasoning is empty string — no reasoning events will be emitted",
234 });
235 }
236 }
237}
238
239function validateWebSearches(
240 response: { webSearches?: unknown },

Callers 1

validateFixturesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…