You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return"", action, fmt.Errorf("Ran action towards App %s with Action %s, but it failed. Try to re-authenticate the app with the correct URL", action.AppName, actionName), additionalInfo
Return all key:value pairs from the last user message, but with modified values to fix ALL the HTTP errors at once. Don't add any comments. Do not try the same thing twice, and use your existing knowledge of the API name and action to reformat the output until it works. All fields in "Required data" MUST be a part of the output if possible. Output MUST be valid JSON.
@@ -727,9 +739,7 @@ END INTRODUCTION
727
739
---
728
740
INPUTDATA
729
741
730
-
Action ID: %s
731
742
API name: %s
732
-
Action details: %s
733
743
Required data: %s
734
744
735
745
END INPUTDATA
@@ -738,18 +748,18 @@ VALIDATION RULES:
738
748
739
749
- Modify ONLY the fields directly related to the HTTP error
740
750
- Use ONLY values derived from:
741
-
a) Error message context
742
-
b) Existing JSON structure
743
-
c) Minimal necessary changes to resolve the error
751
+
a) INPUTDATA
752
+
b) Error message context
753
+
c) Known documentation about the API
744
754
745
755
END VALIDATION RULES
746
756
---
747
757
CONSTRAINTS
748
758
749
-
- Do NOT invent values
759
+
- If the path is wrong, change it to be relevant to the input data. It may be /api paths or entirely different
750
760
- Do NOT add irrelevant headers or body fields
751
761
- MUST use keys present in original JSON
752
-
- Make sure all "Required data" values are in the output.
762
+
- Make sure all "Required data" values are in the output
753
763
- Do not focus on authentication unless necessary
754
764
755
765
END CONSTRAINTS
@@ -764,35 +774,40 @@ END OUTPUT FORMATTING
764
774
---
765
775
ERROR HANDLING
766
776
767
-
- First try to fix the request based on the error message and the existing content in the body and queries.
768
-
- You SHOULD add relevant fields to the body that are missing.
777
+
- Fix the request based on the API context and the existing content in the path, body and queries
778
+
- You SHOULD add relevant fields to the body that are missing
779
+
- Modify the "path" field according to what seems wrong with the API URL. Do NOT remove this field.
780
+
- Do NOT error-handle authentication issues unless it seems possible
inputData+=fmt.Sprintf(`IF we are missing a value from the user, return the format {"success": false, "missing_fields": ["field1", "field2"]} to indicate the missing fields. Do NOT do this unless it is absolutely necessary, make SURE the fields are missing. Before doing this, ensure the body and query fields are in the right format.\n\n`)
790
+
inputData+=fmt.Sprintf(`IF we are missing a value from the user, return the format {"success": false, "missing_fields": ["field1", "field2"]} to indicate the missing fields. If the "path" is wrong, rewrite it. Do not use it for authentication fields such as "apikey". Do NOT do this unless it is absolutely necessary, make SURE the fields are missing. Before returning missing fields, ALWAYS ensure and retry the path, body and query fields to ensure they are correct according to the input data.\n\n`)
779
791
}
780
792
}
781
793
782
794
// We are using a unique Action ID here most of the time, meaning the chat will be continued.
783
795
inputBody=FixContentOutput(inputBody)
784
796
785
797
inputData+=fmt.Sprintf(`Precise JSON Field Correction Instructions:
Copy file name to clipboardExpand all lines: db-connector.go
+18-2Lines changed: 18 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2317,7 +2317,7 @@ func GetApp(ctx context.Context, id string, user User, skipCache bool) (*Workflo
2317
2317
}
2318
2318
2319
2319
ifid=="integration" {
2320
-
returnworkflowApp, errors.New("App ID 'integration' is for the integration framework. Uses the Shuffle-ai app.")
2320
+
returnworkflowApp, errors.New("App ID 'integration' is for Singul. Uses the Shuffle-AI app. This error is from GetApp(integration) which does not work. Contact [email protected] if this persists.")
0 commit comments