( input: T, )
| 48 | const nodeEntry = z.intersection(datasetEntryInput.passthrough(), datasetEntryOutput.passthrough()); |
| 49 | |
| 50 | export 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 | |
| 58 | const loggedCall = z |
| 59 | .object({ |
no outgoing calls
no test coverage detected