开发自定义工具(重要)

发布时间:2026/7/9 1:49:14
开发自定义工具(重要) 1、创建common文件,将通用部分写入此文件中from langchain_core.promptsimportChatMessagePromptTemplate, ChatPromptTemplate from langchain_openaiimportChatOpenAI from pydanticimportSecretStr llm=ChatOpenAI(model="qwen3.7-plus-2026-05-26",base_url="https://你的workspaceid.cn-beijing.maas.aliyuncs.com/compatible-mode/v1"