You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

__init__.py 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. #
  2. # Copyright 2025 The InfiniFlow Authors. All Rights Reserved.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16. import importlib
  17. from .begin import Begin, BeginParam
  18. from .generate import Generate, GenerateParam
  19. from .retrieval import Retrieval, RetrievalParam
  20. from .answer import Answer, AnswerParam
  21. from .categorize import Categorize, CategorizeParam
  22. from .switch import Switch, SwitchParam
  23. from .relevant import Relevant, RelevantParam
  24. from .message import Message, MessageParam
  25. from .rewrite import RewriteQuestion, RewriteQuestionParam
  26. from .keyword import KeywordExtract, KeywordExtractParam
  27. from .concentrator import Concentrator, ConcentratorParam
  28. from .baidu import Baidu, BaiduParam
  29. from .duckduckgo import DuckDuckGo, DuckDuckGoParam
  30. from .wikipedia import Wikipedia, WikipediaParam
  31. from .pubmed import PubMed, PubMedParam
  32. from .arxiv import ArXiv, ArXivParam
  33. from .google import Google, GoogleParam
  34. from .bing import Bing, BingParam
  35. from .googlescholar import GoogleScholar, GoogleScholarParam
  36. from .deepl import DeepL, DeepLParam
  37. from .github import GitHub, GitHubParam
  38. from .baidufanyi import BaiduFanyi, BaiduFanyiParam
  39. from .qweather import QWeather, QWeatherParam
  40. from .exesql import ExeSQL, ExeSQLParam
  41. from .yahoofinance import YahooFinance, YahooFinanceParam
  42. from .wencai import WenCai, WenCaiParam
  43. from .jin10 import Jin10, Jin10Param
  44. from .tushare import TuShare, TuShareParam
  45. from .akshare import AkShare, AkShareParam
  46. from .crawler import Crawler, CrawlerParam
  47. from .invoke import Invoke, InvokeParam
  48. from .template import Template, TemplateParam
  49. from .email import Email, EmailParam
  50. from .iteration import Iteration, IterationParam
  51. from .iterationitem import IterationItem, IterationItemParam
  52. from .code import Code, CodeParam
  53. def component_class(class_name):
  54. m = importlib.import_module("agent.component")
  55. c = getattr(m, class_name)
  56. return c
  57. __all__ = [
  58. "Begin",
  59. "BeginParam",
  60. "Generate",
  61. "GenerateParam",
  62. "Retrieval",
  63. "RetrievalParam",
  64. "Answer",
  65. "AnswerParam",
  66. "Categorize",
  67. "CategorizeParam",
  68. "Switch",
  69. "SwitchParam",
  70. "Relevant",
  71. "RelevantParam",
  72. "Message",
  73. "MessageParam",
  74. "RewriteQuestion",
  75. "RewriteQuestionParam",
  76. "KeywordExtract",
  77. "KeywordExtractParam",
  78. "Concentrator",
  79. "ConcentratorParam",
  80. "Baidu",
  81. "BaiduParam",
  82. "DuckDuckGo",
  83. "DuckDuckGoParam",
  84. "Wikipedia",
  85. "WikipediaParam",
  86. "PubMed",
  87. "PubMedParam",
  88. "ArXiv",
  89. "ArXivParam",
  90. "Google",
  91. "GoogleParam",
  92. "Bing",
  93. "BingParam",
  94. "GoogleScholar",
  95. "GoogleScholarParam",
  96. "DeepL",
  97. "DeepLParam",
  98. "GitHub",
  99. "GitHubParam",
  100. "BaiduFanyi",
  101. "BaiduFanyiParam",
  102. "QWeather",
  103. "QWeatherParam",
  104. "ExeSQL",
  105. "ExeSQLParam",
  106. "YahooFinance",
  107. "YahooFinanceParam",
  108. "WenCai",
  109. "WenCaiParam",
  110. "Jin10",
  111. "Jin10Param",
  112. "TuShare",
  113. "TuShareParam",
  114. "AkShare",
  115. "AkShareParam",
  116. "Crawler",
  117. "CrawlerParam",
  118. "Invoke",
  119. "InvokeParam",
  120. "Iteration",
  121. "IterationParam",
  122. "IterationItem",
  123. "IterationItemParam",
  124. "Template",
  125. "TemplateParam",
  126. "Email",
  127. "EmailParam",
  128. "Code",
  129. "CodeParam",
  130. "component_class"
  131. ]