✨Feat: 完成前端工程场景
This commit is contained in:
@@ -100,6 +100,8 @@ func CallWithAgentDefined[T any](llm llms.Model, ctx context.Context, topic stri
|
||||
"用户正在学习Go语言和React框架,你是用户的助手。\n"+prompt,
|
||||
)
|
||||
|
||||
fmt.Printf("Raw output: %v\n\n", responseString)
|
||||
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
@@ -33,8 +33,8 @@ func GetQuiz(llm llms.Model, ctx context.Context, topic string) (response respon
|
||||
return
|
||||
}
|
||||
|
||||
func GetScenario(llm llms.Model, ctx context.Context, topic string) (response response_struct.Scenario) {
|
||||
func GetScenario(llm llms.Model, ctx context.Context, topic string) (response response_struct.ScenarioResponse) {
|
||||
file := files[3]
|
||||
response = agent.CallWithAgentDefined(llm, ctx, topic, file, response_struct.Scenario{})
|
||||
response = agent.CallWithAgentDefined(llm, ctx, topic, file, response_struct.ScenarioResponse{})
|
||||
return
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ func TestQuiz(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestScenario(t *testing.T) {
|
||||
definedScenario, err := outputparser.NewDefined(Scenario{})
|
||||
definedScenario, err := outputparser.NewDefined(ScenarioResponse{})
|
||||
|
||||
if err != nil {
|
||||
t.Fatalf("%v", err)
|
||||
|
||||
Reference in New Issue
Block a user