TangCheng
2025-04-13 f01ba74b891046b4c458b2a27d79873eecfa1abe
JAVA/SMTAIServer/src/main/resources/requestmap/java_ai.json
@@ -185,6 +185,18 @@
      ]
   },
   
   "chat/call_agent_arg_stream":{"map":{"class":"#SMTJavaAIControl", "method":"callAgentArgStream"},
         "swaggers":[
         {   "tags" : ["AI大模型对话"],
            "title" : "流式直接调用agent带参数",
            "parameters" : [
               {"name":"agent_id", "title":"要调用的agent id", "required":true},
               {"name":"call_args", "title":"调用时候的参数", "required":true}
            ]
         }
      ]
   },
   "chat/share_chat_history":{"map":{"class":"#SMTJavaAIControl", "method":"shareChatHistory"},
         "swaggers":[
         {   "tags" : ["AI操作"],
@@ -357,5 +369,31 @@
            ]
         }
      ]
   },
   "llm/call_llm":{"map":{"class":"#SMTJavaAIControl", "method":"callLLM"}, "no_shrio":true,
         "swaggers":[
         {   "tags" : ["大模型操作"],
            "title" : "直接询问大模型",
            "parameters" : [
               {"name":"llm_id", "title":"查询模型id(不填则调用缺省模型)", "required":false},
               {"name":"system_json", "title":"提示json数组 [‘问题1’,‘问题2’...] ", "required":false},
               {"name":"question", "title":"用户问题", "required":true},
               {"name":"answer_is_json", "title":"回答问题格式是否是json", "required":true}
            ]
         }
      ]
   },
   "llm/call_agent":{"map":{"class":"#SMTJavaAIControl", "method":"chatCallAgent"}, "no_shrio":true,
         "swaggers":[
         {   "tags" : ["AI大模型对话"],
            "title" : "流式调用agent对话",
            "parameters" : [
               {"name":"agent_id", "title":"要调用的agent id", "required":true, "default":"a_019471cdb0667a83956b76ac97283f1c"},
               {"name":"args", "title":"执行时候传入的参数", "required":false}
            ]
         }
      ]
   }
}