feat:增加AI生成资料接口
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user