refactor(prompt): 重构提示词构建服务和回调处理
This commit is contained in:
@@ -234,9 +234,11 @@ func PullTaskResult(ctx context.Context, body map[string]any, queryConfig map[st
|
||||
}
|
||||
|
||||
func matchStatus(actual string, expected any) bool {
|
||||
expectedStr := gconv.String(expected)
|
||||
if actual == expectedStr {
|
||||
return true
|
||||
}
|
||||
switch v := expected.(type) {
|
||||
case string:
|
||||
return actual == v
|
||||
case []any:
|
||||
for _, item := range v {
|
||||
if actual == gconv.String(item) {
|
||||
|
||||
Reference in New Issue
Block a user