runMode

Sets the execution mode for the AI agent's task execution.

Return

The current instance of SubtaskBuilderWithInputAndOutput to allow for method chaining when configuring the subtask builder.

Parameters

runMode

Specifies the mode in which tool calls are executed. The available modes are:

  • SEQUENTIAL: Executes multiple tool calls sequentially.

  • PARALLEL: Executes tool calls in parallel.

  • SINGLE_RUN_SEQUENTIAL: Allows only a single tool call to be executed.


Parameters

runMode

Specifies the mode in which tools should be called (e.g., sequentially).