feat:增加AI生成资料接口

This commit is contained in:
2026-08-02 09:46:32 +08:00
parent 9c9ac3ab1c
commit 5497b881c6
9 changed files with 179 additions and 82 deletions

View File

@@ -1,9 +1,14 @@
from langchain.agents import create_agent
from agent.model import model
from agent.prompt import study_prompt
from agent.prompt import question_prompt, knowledge_prompt
study_agent = create_agent(
question_agent = create_agent(
model=model,
system_prompt=study_prompt
system_prompt=question_prompt
)
knowledge_agent = create_agent(
model=model,
system_prompt=knowledge_prompt
)