(input: { type: 'assistant' | 'user'; message: string }[])
| 13 | import { calculateExpression } from './CalculationService.js'; |
| 14 | |
| 15 | export async function runMessageGraph(input: { type: 'assistant' | 'user'; message: string }[]): Promise<string> { |
| 16 | const outputs = await runRivetGraph('5BI0Pfuu2naOUKqGUO-yZ' as GraphId, { |
| 17 | messages: { |
| 18 | type: 'object[]', |
| 19 | value: input, |
| 20 | }, |
| 21 | }); |
| 22 | |
| 23 | return coerceType(outputs.output, 'string'); |
| 24 | } |
| 25 | |
| 26 | export async function runRivetGraph(graphId: GraphId, inputs?: GraphInputs): Promise<GraphOutputs> { |
| 27 | const project = currentDebuggerState.uploadedProject ?? await loadProjectFromFile('../chat.rivet-project'); |
no test coverage detected