addStep

public final Interaction.Builder addStep(Step step)

Adds a single Step to steps.

Throws

if the field was previously set to a non-list.


public final Interaction.Builder addStep(UserInputStep userInput)

Alias for calling addStep with Step.ofUserInput(userInput).


public final Interaction.Builder addStep(ModelOutputStep modelOutput)

Alias for calling addStep with Step.ofModelOutput(modelOutput).


public final Interaction.Builder addStep(ThoughtStep thought)

Alias for calling addStep with Step.ofThought(thought).


public final Interaction.Builder addStep(FunctionCallStep functionCall)

Alias for calling addStep with Step.ofFunctionCall(functionCall).


public final Interaction.Builder addStep(CodeExecutionCallStep codeExecutionCall)

Alias for calling addStep with Step.ofCodeExecutionCall(codeExecutionCall).


public final Interaction.Builder addStep(UrlContextCallStep urlContextCall)

Alias for calling addStep with Step.ofUrlContextCall(urlContextCall).


public final Interaction.Builder addStep(McpServerToolCallStep mcpServerToolCall)

Alias for calling addStep with Step.ofMcpServerToolCall(mcpServerToolCall).


public final Interaction.Builder addStep(GoogleSearchCallStep googleSearchCall)

Alias for calling addStep with Step.ofGoogleSearchCall(googleSearchCall).


public final Interaction.Builder addStep(FileSearchCallStep fileSearchCall)

Alias for calling addStep with Step.ofFileSearchCall(fileSearchCall).


public final Interaction.Builder addStep(GoogleMapsCallStep googleMapsCall)

Alias for calling addStep with Step.ofGoogleMapsCall(googleMapsCall).


public final Interaction.Builder addStep(FunctionResultStep functionResult)

Alias for calling addStep with Step.ofFunctionResult(functionResult).


public final Interaction.Builder addStep(CodeExecutionResultStep codeExecutionResult)

Alias for calling addStep with Step.ofCodeExecutionResult(codeExecutionResult).


public final Interaction.Builder addStep(UrlContextResultStep urlContextResult)

Alias for calling addStep with Step.ofUrlContextResult(urlContextResult).


public final Interaction.Builder addStep(GoogleSearchResultStep googleSearchResult)

Alias for calling addStep with Step.ofGoogleSearchResult(googleSearchResult).


public final Interaction.Builder addStep(McpServerToolResultStep mcpServerToolResult)

Alias for calling addStep with Step.ofMcpServerToolResult(mcpServerToolResult).


public final Interaction.Builder addStep(FileSearchResultStep fileSearchResult)

Alias for calling addStep with Step.ofFileSearchResult(fileSearchResult).


public final Interaction.Builder addStep(GoogleMapsResultStep googleMapsResult)

Alias for calling addStep with Step.ofGoogleMapsResult(googleMapsResult).