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
You are a general AI agent which makes decisions based on user input. You should output a list of decisions based on the same input. Available actions within categories you can choose from are below. Only use the built-in actions 'answer' (ai analysis) or 'ask' (human analysis) if it fits 100%, is not the last action AND it can't be done with an API. These actions are a last resort. Do NOT ask about networking or authentication unless explicitly specified.
6463
+
You are a general AI agent which makes decisions based on user input. You should output a list of decisions based on the same input. Available actions within categories you can choose from are below. Only use the built-in actions 'answer' (ai analysis) or 'ask' (human analysis) if it fits 100%, is not the last action AND it can't be done with an API. These actions are a last resort. Use Markdown with focus on human readability. Do NOT ask about networking or authentication unless explicitly specified.
6467
6464
6468
6465
END INTRODUCTION
6469
6466
---
@@ -6577,7 +6574,7 @@ SINGUL ACTIONS:
6577
6574
_=oldActionResult
6578
6575
oldAgentOutput:=AgentOutput{}
6579
6576
ifcreateNextActions==true {
6580
-
extraString="This is a continuation of a previous execution. ONLY output decisions that fit AFTER the last FINISHED decision. DO NOT repeat previous decisions, and make sure your indexing is on point. Output as an array of decisions.\n\nIF you don't want to add any new decision, add AT LEAST one decision saying why it is finished, summarising EXACTLY what the user wants in a user-friendly Markdown format, OR the format the user asked for. Make the action and category 'finish', and put the reason in the 'reason' field. Do NOT summarize, explain or say things like 'user said'. JUST give exactly the final answer and nothing more."
6577
+
extraString="This is a continuation of a previous execution. ONLY output decisions that fit AFTER the last FINISHED decision. DO NOT repeat previous decisions, and make sure your indexing is on point. Output as an array of decisions.\n\nIF you don't want to add any new decision, add AT LEAST one decision saying why it is finished, summarising EXACTLY what the user wants in a user-friendly Markdown format, OR the format the user asked for. Make the action and category 'finish', and put the reason in the 'reason' field. Do NOT summarize, explain or say things like 'user said'. JUST give exactly the final answer and nothing more, in past tense. If any action failed, make sure to mention why"
6581
6578
6582
6579
userMessageChanged:=false
6583
6580
@@ -6852,6 +6849,7 @@ RULES:
6852
6849
* NEVER ask the user for clarification, confirmations, or extra details unless it is absolutely unavoidable.
6853
6850
* If realtime data is required, ALWAYS use an Singul APIs to get it.
6854
6851
* ALWAYS output the same language as the original question.
6852
+
* ALWAYS format questions using Markdown formatting, with a focus on human readability.
6855
6853
6856
6854
2. Action & Decision Rules
6857
6855
@@ -6864,7 +6862,7 @@ RULES:
6864
6862
* Fields can reference previous action outputs using {{action_name}}. Example: {"body": "{{previous_action.field}}"}.
6865
6863
* If questions are absolutely required, combine all into one "ask" action with multiple "question" fields. Do NOT create multiple separate decisions.
6866
6864
* Retry actions if the result was irrelevant. After three retries of a failed decision, add the finish decision.
6867
-
* If any decision has failed, add the finish decision.
6865
+
* If any decision has failed, add the finish decision with details about the failure.
6868
6866
* If a formatting is specified for the output, use it exactly how explained for the finish decision.
6869
6867
6870
6868
END RULES
@@ -7424,7 +7422,7 @@ FINALISING:
7424
7422
// A self-corrective measure for last-finished index
return workflowExecution, ExecInfo{}, fmt.Sprintf("Did not find the decision inside the agentic workflow to update %s", decisionId), errors.New("Did not find the decision to update")
23892
+
return workflowExecution, ExecInfo{}, fmt.Sprintf("Could not find decision '%s' inside the agentic workflow", decisionId), errors.New(fmt.Sprintf("Could not find decision '%s'", decisionId))
23859
23893
}
23860
23894
23861
23895
log.Printf("[INFO][%s] Found the decision inside the agentic workflow to update: %s", execArg, decisionId)
0 commit comments