MCPcopy Create free account
hub / github.com/OpenDCAI/OpenPrism / plotFromTable

Function plotFromTable

apps/frontend/src/api/client.ts:351–368  ·  view source on GitHub ↗
(payload: {
  projectId: string;
  tableLatex: string;
  chartType: string;
  title?: string;
  prompt?: string;
  filename?: string;
  retries?: number;
  llmConfig?: Partial<LLMConfig>;
})

Source from the content-addressed store, hash-verified

349}
350
351export function plotFromTable(payload: {
352 projectId: string;
353 tableLatex: string;
354 chartType: string;
355 title?: string;
356 prompt?: string;
357 filename?: string;
358 retries?: number;
359 llmConfig?: Partial<LLMConfig>;
360}) {
361 return request<{ ok: boolean; assetPath?: string; error?: string }>(
362 '/api/plot/from-table',
363 {
364 method: 'POST',
365 body: JSON.stringify(payload)
366 }
367 );
368}
369
370export function callLLM(payload: {
371 messages: { role: 'system' | 'user' | 'assistant'; content: string }[];

Callers 1

handlePlotGenerateFunction · 0.90

Calls 1

requestFunction · 0.85

Tested by

no test coverage detected