Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:Infiniflow Ragflow Agent Options

From Leeroopedia
Knowledge Sources
Domains Frontend, Agent_System, Configuration
Last Updated 2026-02-12 06:00 GMT

Overview

Comprehensive operator configuration options registry defining form schemas, default values, and validation rules for all 20+ agent operator types.

Description

This module exports a large set of option arrays and constants that configure the available choices for agent operator form fields. It includes language option lists (general, Google, Bing, DeepL, Baidu), country/region options for search operators, domain-specific options for translation services, weather query parameters, SQL execution databases, financial data sources, and crawler output formats. Each option array follows the `{ value, label }` pattern consumed by Ant Design or shadcn select components. The file serves as the single source of truth for all dropdown and multi-select values across the agent canvas operator configuration forms.

Usage

Import specific option arrays when building operator configuration forms in the agent canvas. Used by form components that render dropdowns for language selection, country targeting, query type configuration, and data source parameterization across all supported operator types.

Code Reference

Source Location

Signature

export const LanguageOptions: Array<{ value: string; label: string }>;
export const GoogleLanguageOptions: Array<{ value: string; label: string }>;
export const GoogleCountryOptions: Array<{ value: string; label: string }>;
export const BingCountryOptions: Array<{ value: string; label: string }>;
export const BingLanguageOptions: Array<{ value: string; label: string }>;
export const DeepLSourceLangOptions: Array<{ value: string; label: string }>;
export const DeepLTargetLangOptions: Array<{ value: string; label: string }>;
export const BaiduFanyiDomainOptions: Array<{ value: string; label: string }>;
export const BaiduFanyiSourceLangOptions: Array<{ value: string; label: string }>;
export const QWeatherLangOptions: Array<{ value: string; label: string }>;
export const QWeatherTypeOptions: string[];
export const QWeatherUserTypeOptions: string[];
export const QWeatherTimePeriodOptions: Array<{ value: string; label: string }>;
export const ExeSQLOptions: Array<{ value: string; label: string }>;
export const WenCaiQueryTypeOptions: Array<{ value: string; label: string }>;
export const Jin10TypeOptions: string[];
export const Jin10FlashTypeOptions: Array<{ value: number; label: string }>;
export const Jin10CalendarTypeOptions: string[];
export const Jin10CalendarDatashapeOptions: string[];
export const Jin10SymbolsTypeOptions: string[];
export const Jin10SymbolsDatatypeOptions: string[];
export const TuShareSrcOptions: Array<{ value: string; label: string }>;
export const CrawlerResultOptions: string[];

Import

import {
  LanguageOptions,
  GoogleLanguageOptions,
  GoogleCountryOptions,
  BingCountryOptions,
  ExeSQLOptions,
  CrawlerResultOptions,
} from '@/pages/agent/options';

I/O Contract

Inputs

Name Type Required Description
(none) N/A N/A This module exports static constant arrays with no runtime inputs.

Outputs

Name Type Description
LanguageOptions Array<{ value: string; label: string }> General language options for Wikipedia, search, and NLP operators (100+ languages).
GoogleLanguageOptions Array<{ value: string; label: string }> Language codes for Google Search operator configuration.
GoogleCountryOptions Array<{ value: string; label: string }> Country codes for Google Search geographic targeting.
BingCountryOptions Array<{ value: string; label: string }> Market codes for Bing Search operator.
BingLanguageOptions Array<{ value: string; label: string }> Language codes for Bing Search operator.
DeepLSourceLangOptions Array<{ value: string; label: string }> Source language options for DeepL translation operator.
DeepLTargetLangOptions Array<{ value: string; label: string }> Target language options for DeepL translation operator.
ExeSQLOptions Array<{ value: string; label: string }> Supported database types for ExeSQL operator (MySQL, PostgreSQL, MS SQL).
QWeatherTypeOptions string[] Weather query types: weather, indices, airquality.
CrawlerResultOptions string[] Crawler output formats: markdown, html, content.

Usage Examples

import { LanguageOptions, ExeSQLOptions } from '@/pages/agent/options';

// Use in a Select component for language configuration
<Select options={LanguageOptions} placeholder="Select language" />

// Use in SQL operator form
<Select options={ExeSQLOptions} placeholder="Select database type" />

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment