MCPcopy Index your code
hub / github.com/OpenPipe/OpenPipe / typedNodeEntry

Function typedNodeEntry

app/src/types/dbColumns.types.ts:50–56  ·  view source on GitHub ↗
(
  input: T,
)

Source from the content-addressed store, hash-verified

48const nodeEntry = z.intersection(datasetEntryInput.passthrough(), datasetEntryOutput.passthrough());
49
50export const typedNodeEntry = <
51 T extends Pick<DatasetEntryInput, "messages"> & Pick<DatasetEntryOutput, "output">,
52>(
53 input: T,
54): Omit<T, "messages" | "output"> & z.infer<typeof nodeEntry> =>
55 // @ts-expect-error zod doesn't type `passthrough()` correctly.
56 nodeEntry.parse(input);
57
58const loggedCall = z
59 .object({

Callers 6

generateEntryFunction · 0.90
trainOpenaiFineTuneFunction · 0.90
trainModalFineTuneFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected