Skip to main content
Section ID: DOC-API-MODEL-schema-1gstrgb39r#overview

StopOnFailureRule

Requested tool-selection rule for handling an execution failure. The current generation workflow stores these rules but does not evaluate them or stop a loop or run because of them.

The conditions in stopOnFailureRules, including priority, timeout inclusion and error matching, are not enforced. Do not rely on these fields as a stop control.

Type-reference view: API Schema 9frhv4euve, API Schema 9ftjkkjhfa. Request and response views describe this type; they do not declare an endpoint.

Meaning and usage​

Section ID: DOC-API-MODEL-schema-1gstrgb39r#meaning

See the definition above.

Usage profiles​

Section ID: DOC-API-MODEL-schema-1gstrgb39r#fields

UsageFields and validation
In requestsView fields
In responsesView fields

In requests​

Section ID: DOC-API-MODEL-schema-1gstrgb39r#request

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
Section ID: DOC-API-MODEL-schema-1gstrgb39r#request-field-toolnamepatternstoolNamePatternsArray of stringOptionalRequested tool-name selection; not evaluated by the current generation workflow.
Section ID: DOC-API-MODEL-schema-1gstrgb39r#request-field-serveridsserverIdsArray of stringOptionalRequested MCP server selection; not evaluated by the current generation workflow.
Section ID: DOC-API-MODEL-schema-1gstrgb39r#request-field-onfailureonFailurestring (FAILURE_MODE_CONTINUE, FAILURE_MODE_STOP_LOOP, FAILURE_MODE_STOP_RUN) or integer (int32)Optional; explicit presenceSee meaning below.
Section ID: DOC-API-MODEL-schema-1gstrgb39r#request-field-includetimeoutsincludeTimeoutsbooleanOptionalSee meaning below.
Section ID: DOC-API-MODEL-schema-1gstrgb39r#request-field-errorsubstringserrorSubstringsArray of stringOptionalSee meaning below.
Section ID: DOC-API-MODEL-schema-1gstrgb39r#request-field-priorityprioritystring (int64)OptionalSee meaning below. Pattern: ^-?\d+$.

onFailure

Requested failure action; not evaluated by the current generation workflow.

STOP_LOOP or STOP_RUN

includeTimeouts

Requested inclusion of timeouts as failures; not evaluated by the current generation workflow.

treat timeouts as failure for this rule

errorSubstrings

Requested error-text selection; not evaluated by the current generation workflow.

only stop if error matches

priority

Requested rule priority; not evaluated by the current generation workflow.

lower evaluated first

Values of onFailure​

Section ID: DOC-API-MODEL-schema-1gstrgb39r#request-values-onfailure

Requested scope of stopping after a tool execution failure.

ValueNo.FormMeaning
FAILURE_MODE_CONTINUE0CanonicalRequest continued processing after the failed tool call.
FAILURE_MODE_STOP_LOOP1CanonicalRequest stopping the current tool-execution loop after the failure.
FAILURE_MODE_STOP_RUN2CanonicalRequest stopping the generation run after the failure.

In responses​

Section ID: DOC-API-MODEL-schema-1gstrgb39r#response

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
Section ID: DOC-API-MODEL-schema-1gstrgb39r#field-toolnamepatternsSection ID: DOC-API-MODEL-schema-1gstrgb39r#response-field-toolnamepatternstoolNamePatternsArray of stringOptionalRequested tool-name selection; not evaluated by the current generation workflow.
Section ID: DOC-API-MODEL-schema-1gstrgb39r#field-serveridsSection ID: DOC-API-MODEL-schema-1gstrgb39r#response-field-serveridsserverIdsArray of stringOptionalRequested MCP server selection; not evaluated by the current generation workflow.
Section ID: DOC-API-MODEL-schema-1gstrgb39r#field-onfailureSection ID: DOC-API-MODEL-schema-1gstrgb39r#response-field-onfailureonFailurestring (FAILURE_MODE_CONTINUE, FAILURE_MODE_STOP_LOOP, FAILURE_MODE_STOP_RUN) or integer (int32)Optional; explicit presenceSee meaning below.
Section ID: DOC-API-MODEL-schema-1gstrgb39r#field-includetimeoutsSection ID: DOC-API-MODEL-schema-1gstrgb39r#response-field-includetimeoutsincludeTimeoutsbooleanOptionalSee meaning below.
Section ID: DOC-API-MODEL-schema-1gstrgb39r#field-errorsubstringsSection ID: DOC-API-MODEL-schema-1gstrgb39r#response-field-errorsubstringserrorSubstringsArray of stringOptionalSee meaning below.
Section ID: DOC-API-MODEL-schema-1gstrgb39r#field-prioritySection ID: DOC-API-MODEL-schema-1gstrgb39r#response-field-priorityprioritystring (int64)OptionalSee meaning below. Pattern: ^-?\d+$.

onFailure

Requested failure action; not evaluated by the current generation workflow.

STOP_LOOP or STOP_RUN

includeTimeouts

Requested inclusion of timeouts as failures; not evaluated by the current generation workflow.

treat timeouts as failure for this rule

errorSubstrings

Requested error-text selection; not evaluated by the current generation workflow.

only stop if error matches

priority

Requested rule priority; not evaluated by the current generation workflow.

lower evaluated first

Values of onFailure​

Section ID: DOC-API-MODEL-schema-1gstrgb39r#response-values-onfailure

Requested scope of stopping after a tool execution failure.

ValueNo.FormMeaning
FAILURE_MODE_CONTINUE0CanonicalRequest continued processing after the failed tool call.
FAILURE_MODE_STOP_LOOP1CanonicalRequest stopping the current tool-execution loop after the failure.
FAILURE_MODE_STOP_RUN2CanonicalRequest stopping the generation run after the failure.

Where used​

Section ID: DOC-API-MODEL-schema-1gstrgb39r#where-used

ReferenceRelationship
Create an agent profilePOST /api/v1/agent-profiles/create
Get an agent profilePOST /api/v1/agent-profiles/get
Import a prompt libraryPOST /api/v1/agent-profiles/import
List agent profilesPOST /api/v1/agent-profiles/list
Update an agent profilePOST /api/v1/agent-profiles/update
Withdraw your rating on a messagePOST /api/v1/llm/delete-message-rating
Get full conversation statePOST /api/v1/llm/conversation-state
Rate an assistant messagePOST /api/v1/llm/rate-message
Send a message and wait for the resultPOST /api/v1/llm/send-message-sync
Submit client-side tool results and wait for the next segmentPOST /api/v1/llm/submit-client-tool-results-sync
Update context management settingsPOST /api/v1/llm/update-context-management-settings
Update default generation configPOST /api/v1/llm/update-default-generation-config
Update prompt variablesPOST /api/v1/llm/update-prompt-variables
Update conversation settingsPOST /api/v1/llm/update-settings
Get the caller's end-user profilePOST /api/v1/enduser/get
Append a message without generatingPOST /api/v1/llm/append-message
Create a new conversation threadPOST /api/v1/llm/create-thread
Send a message to a conversationPOST /api/v1/llm/send-message
Update the caller's default generation configPOST /api/v1/enduser/update-generation-config
ReceiveMessageRequestAPI JSON uses JSON field names (camelCase).
ClientToolDispatchAPI JSON uses JSON field names (camelCase).
Models containing this value
ModelRelationship
ToolExecutionPolicyNested in model
ToolExecutionPolicyNested in model

Download the public reference contract.

Document ID: DOC-API-MODEL-schema-1gstrgb39r