MCPcopy Create free account

hub / github.com/ResearAI/AutoFigure / functions

Functions374 in github.com/ResearAI/AutoFigure

↓ 1 callersMethod_validate_evaluation_format
Validate evaluation result format.
autofigure/judge.py:754
↓ 1 callersMethod_visualize_dimension_heatmap
Heatmap: Dimension scores for generated figures with reference figure row at top.
autofigure/judge.py:657
↓ 1 callersMethod_visualize_overall_scores
Bar chart: Compare overall_score of generated figures with reference figure baseline.
autofigure/judge.py:618
↓ 1 callersFunctionbuildProviderOptions
* Build provider-specific options from environment variables * Supports various AI SDK providers with their unique configuration options * * Enviro
frontend/lib/ai-providers.ts:99
↓ 1 callersFunctionclearDiagram
()
frontend/contexts/diagram-context.tsx:145
↓ 1 callersFunctionconvertToLegalXml
(xmlString: string)
frontend/lib/utils.ts:64
↓ 1 callersFunctionconvert_code_to_text2image_prompt
Convert code (mxgraphxml, HTML, etc.) to text2image prompt using LLM. This function uses an LLM to analyze the given code and generate a det
autofigure/enhancer.py:25
↓ 1 callersFunctioncreateCachedStreamResponse
(xml: string)
frontend/app/api/chat/route.ts:128
↓ 1 callersFunctioncreate_client_from_config
Create an LLM client from SDK config. Args: config: AutoFigure SDK Config object purpose: 'generation' or 'methodology'
autofigure/utils/llm_client.py:183
↓ 1 callersFunctiondecodeHtmlEntities
(str: string)
frontend/lib/utils.ts:692
↓ 1 callersFunctiondetectProvider
* Auto-detect provider based on available API keys * Returns the provider if exactly one is configured, otherwise null
frontend/lib/ai-providers.ts:365
↓ 1 callersMethodevaluate_generated_vs_reference
Evaluate all generated figures against a reference figure and generate visualizations. Returns: Dictionary containing re
autofigure/judge.py:526
↓ 1 callersMethodevaluate_single_figure
Evaluate a single academic figure using VLM scoring. Args: figure_path: Path to the image file. figure_id: F
autofigure/judge.py:196
↓ 1 callersFunctionextractTextFileContent
(file: File)
frontend/lib/pdf-utils.ts:78
↓ 1 callersMethodextract_from_file
Extract methodology from a file (PDF or Markdown). Args: file_path: Path to the paper file Returns:
autofigure/extractor.py:69
↓ 1 callersMethodextract_from_text
Extract methodology from raw text content. Args: text: Paper text content Returns: Extracted method
autofigure/extractor.py:92
↓ 1 callersFunctionextract_json_robustly
(response_text: str)
autofigure/generator.py:1367
↓ 1 callersFunctionextract_methodology
Extract core methodology from paper content using LLM. Uses SDK's LLMClient for API calls.
backend/autofigure_routes.py:46
↓ 1 callersFunctionfind_json_bounds
(text, start_pos=0)
autofigure/generator.py:1392
↓ 1 callersFunctionfixToolCallInputs
(messages: any[])
frontend/app/api/chat/route.ts:100
↓ 1 callersFunctionformatCharCount
(count: number)
frontend/components/file-preview-list.tsx:8
↓ 1 callersFunctionformatFileSize
(bytes: number)
frontend/components/chat-input.tsx:32
↓ 1 callersFunctiongetAIConfig
()
frontend/lib/ai-config.ts:8
↓ 1 callersFunctiongetAIModel
(overrides?: ClientOverrides)
frontend/lib/ai-providers.ts:440
↓ 1 callersFunctiongetAuthToken
()
frontend/components/autofigure/IterationControlsFloating.tsx:136
↓ 1 callersFunctiongetBackendUrl
()
frontend/components/autofigure/IterationControlsFloating.tsx:130
↓ 1 callersFunctiongetPlaceholders
()
frontend/components/autofigure/ImageGenSettings.tsx:64
↓ 1 callersFunctiongetStatusIcon
(status: EnhancedImage["status"])
frontend/components/autofigure/EnhancedImageGallery.tsx:87
↓ 1 callersFunctiongetSystemPrompt
(modelId?: string)
frontend/lib/system-prompts.ts:351
↓ 1 callersFunctiongetToolDisplayName
(name: string)
frontend/components/chat-message-display.tsx:415
↓ 1 callersMethodget_references
Get reference figure paths. Returns custom references if provided, otherwise returns built-in defaults.
autofigure/config.py:123
↓ 1 callersFunctionhandleChatRequest
(req: Request)
frontend/app/api/chat/route.ts:158
↓ 1 callersFunctionhandleClose
()
frontend/components/history-dialog.tsx:28
↓ 1 callersFunctionhandleError
(error: unknown)
frontend/app/api/chat/route.ts:507
↓ 1 callersFunctionhandleExportWithoutHistory
()
frontend/contexts/diagram-context.tsx:76
↓ 1 callersFunctionhandleFileChange
(e: React.ChangeEvent<HTMLInputElement>)
frontend/components/chat-input.tsx:221
↓ 1 callersFunctionhandleGenerate
()
frontend/app/autofigure/page.tsx:158
↓ 1 callersFunctionhandleGenerateImage
()
frontend/components/autofigure/IterationControlsFloating.tsx:140
↓ 1 callersFunctionhandleNext
()
frontend/components/autofigure/EnhancedImageGallery.tsx:59
↓ 1 callersFunctionhandlePrevious
()
frontend/components/autofigure/EnhancedImageGallery.tsx:54
↓ 1 callersFunctionhandleProviderChange
(provider: LLMProvider)
frontend/components/autofigure/ImageGenSettings.tsx:48
↓ 1 callersFunctionhandleSave
()
frontend/components/save-dialog.tsx:55
↓ 1 callersFunctionhandleSave
()
frontend/components/settings-dialog.tsx:115
↓ 1 callersFunctionhandleStart
()
frontend/components/autofigure/BottomBar.tsx:119
↓ 1 callersFunctionhasToolErrors
* Check if auto-resubmit should happen based on tool errors. * Does NOT handle retry count or quota - those are handled by the caller.
frontend/components/chat-panel.tsx:72
↓ 1 callersFunctioninsertImageIntoXml
(xml: string, imageUrl: string, cellId: string)
frontend/app/autofigure/canvas/page.tsx:342
↓ 1 callersFunctionisConfigValid
()
frontend/app/autofigure/page.tsx:150
↓ 1 callersFunctionisMinimalDiagram
(xml: string)
frontend/app/api/chat/route.ts:64
↓ 1 callersFunctionloadDiagram
( chart: string, skipValidation?: boolean, )
frontend/contexts/diagram-context.tsx:85
↓ 1 callersFunctionlogSaveToLangfuse
( filename: string, format: string, sessionId?: string, )
frontend/contexts/diagram-context.tsx:234
↓ 1 callersFunctionmain
Main function example.
autofigure/judge.py:1441
↓ 1 callersFunctionmxgraphxml_to_png
Converts mxGraph XML to PNG using Playwright (headless browser) with draw.io embed. This approach mirrors how next-ai-draw-io exports diagra
autofigure/generator.py:1112
↓ 1 callersMethodpairwise_comparison
Perform anonymous pairwise comparison of two figures. Args: figure1_path: Path to first figure. figure2_path
autofigure/judge.py:798
↓ 1 callersMethodpairwise_comparisons_parallel
Perform pairwise comparisons in parallel. Args: comparison_tasks: List of comparison tasks, format: [(figure1_path, figu
autofigure/judge.py:466
↓ 1 callersFunctionread_paper_content
(paper_path: str)
autofigure/generator.py:244
↓ 1 callersFunctionregister_autofigure_routes
Register AutoFigure routes with Flask app.
backend/autofigure_routes.py:1772
↓ 1 callersFunctionrenderToolPart
(part: ToolPartLike)
frontend/components/chat-message-display.tsx:402
↓ 1 callersFunctionreplaceHistoricalToolInputs
(messages: any[])
frontend/app/api/chat/route.ts:71
↓ 1 callersFunctionreplaceNodes
(currentXML: string, nodes: string)
frontend/lib/utils.ts:141
↓ 1 callersFunctionreplaceXMLParts
( xmlContent: string, searchReplacePairs: Array<{ search: string; replace: string }>, )
frontend/lib/utils.ts:274
↓ 1 callersFunctionresetDrawioReady
()
frontend/contexts/diagram-context.tsx:54
↓ 1 callersFunctionreset_autofigure_config
Reset AUTOFIGURE_CONFIG to default values to prevent cross-session pollution. This MUST be called at the start of each session's layout gener
backend/autofigure_routes.py:209
↓ 1 callersFunctionreset_pipeline_config
No-op function for backward compatibility. With the new SDK-based approach, each request creates fresh LLMClient/ImageEnhancer instances,
backend/autofigure_routes.py:246
↓ 1 callersFunctionsameCharFrequency
* Compare two strings by character frequency (order-agnostic)
frontend/lib/utils.ts:252
↓ 1 callersFunctionsaveDiagramToFile
( filename: string, format: ExportFormat, sessionId?: string, )
frontend/contexts/diagram-context.tsx:153
↓ 1 callersFunctionsetTraceInput
(params: { input: string sessionId?: string userId?: string })
frontend/lib/langfuse.ts:30
↓ 1 callersFunctionsetTraceOutput
( output: string, usage?: { promptTokens?: number; completionTokens?: number }, )
frontend/lib/langfuse.ts:46
↓ 1 callersFunctionsplitTextIntoFileSections
(text: string)
frontend/components/chat-message-display.tsx:110
↓ 1 callersFunctionsupportsPromptCaching
(modelId: string)
frontend/lib/ai-providers.ts:683
↓ 1 callersFunctionsvg_to_png
(svg_code: str, output_path: str, attempt_repair: bool = False)
autofigure/generator.py:1090
↓ 1 callersFunctionuseFileProcessor
()
frontend/lib/use-file-processor.tsx:23
↓ 1 callersFunctionuseQuotaManager
(config: QuotaConfig)
frontend/lib/use-quota-manager.tsx:29
↓ 1 callersFunctionuseReasoning
()
frontend/components/ai-elements/reasoning.tsx:24
↓ 1 callersMethodvalidate
Validate configuration and return list of errors. Returns empty list if configuration is valid.
autofigure/config.py:141
↓ 1 callersFunctionvalidateFileParts
(messages: any[])
frontend/app/api/chat/route.ts:28
↓ 1 callersFunctionvalidateProviderCredentials
* Validate that required API keys are present for the selected provider
frontend/lib/ai-providers.ts:397
↓ 1 callersFunctionvalidate_svg_syntax
(svg_code: str)
autofigure/generator.py:926
↓ 1 callersFunctionwrapWithObserve
( handler: (req: Request) => Promise<T>, )
frontend/lib/langfuse.ts:97
FunctionAutoFigureCanvasContent
()
frontend/app/autofigure/canvas/page.tsx:25
FunctionAutoFigureCanvasPage
()
frontend/app/autofigure/canvas/page.tsx:545
FunctionAutoFigureConfigPanel
({ onStart }: AutoFigureConfigPanelProps)
frontend/components/autofigure/AutoFigureConfigPanel.tsx:55
FunctionAutoFigureLayout
({ children, }: { children: React.ReactNode })
frontend/app/autofigure/layout.tsx:20
FunctionAutoFigureProvider
({ children }: { children: React.ReactNode })
frontend/contexts/autofigure-context.tsx:52
FunctionAutoFigureStartContent
()
frontend/app/autofigure/page.tsx:33
FunctionAutoFigureStartPage
()
frontend/app/autofigure/page.tsx:331
FunctionBeautificationDialog
({ isOpen, onClose, onStart, previewImage, }: BeautificationDialogProps)
frontend/components/autofigure/BeautificationDialog.tsx:25
FunctionBottomBar
({ onStart, onOpenSettings }: BottomBarProps)
frontend/components/autofigure/BottomBar.tsx:32
FunctionButton
({ className, variant, size, asChild = false, ...props }: React.ComponentProps<"button"> & Variant
frontend/components/ui/button.tsx:38
FunctionButtonWithTooltip
({ tooltipContent, children, ...buttonProps }: ButtonWithTooltipProps)
frontend/components/button-with-tooltip.tsx:19
FunctionCard
({ className, ...props }: React.ComponentProps<"div">)
frontend/components/ui/card.tsx:5
FunctionCardAction
({ className, ...props }: React.ComponentProps<"div">)
frontend/components/ui/card.tsx:51
FunctionCardContent
({ className, ...props }: React.ComponentProps<"div">)
frontend/components/ui/card.tsx:64
FunctionCardDescription
({ className, ...props }: React.ComponentProps<"div">)
frontend/components/ui/card.tsx:41
FunctionCardFooter
({ className, ...props }: React.ComponentProps<"div">)
frontend/components/ui/card.tsx:74
FunctionCardHeader
({ className, ...props }: React.ComponentProps<"div">)
frontend/components/ui/card.tsx:18
FunctionCardTitle
({ className, ...props }: React.ComponentProps<"div">)
frontend/components/ui/card.tsx:31
FunctionChatInput
({ input, status, onSubmit, onChange, onClearChat, files = [], onFileChange = () =
frontend/components/chat-input.tsx:134
FunctionChatMessageDisplay
({ messages, setInput, setFiles, processedToolCallsRef, sessionId, onRegenerate, o
frontend/components/chat-message-display.tsx:181
FunctionChatPanel
({ isVisible, onToggleVisibility, drawioUi, onToggleDrawioUi, darkMode, onToggleDarkMo
frontend/components/chat-panel.tsx:90
FunctionCodeBlock
({ code, language = "xml" }: CodeBlockProps)
frontend/components/code-block.tsx:10
← previousnext →101–200 of 374, ranked by callers