# Expensive Operations

## Instructions

Add an output parameter of `command = delay` to any output node. Leopard will then show the "thinking" graphic until it next receives a response from Teneo. When the graphic is shown Teneo automatically sends back an empty input to Teneo with a request parameter of `command=continue` .  You can then begin your expensive operation and return the response as per usual.&#x20;

<div align="left"><img src="/files/-LjbLRUSBJ-6diZnoVZo" alt=""></div>

Remember you can retrieve request parameters in Teneo in Pre-Processing.

{% code title="Pre-Processing script grabs command parameter and sets it as a global variable" %}

```groovy
if (engineEnvironment.getParameter("command")) {
	command = engineEnvironment.getParameter("command")
} else {
	command = ""
}
```

{% endcode %}

### Screenshots

<div align="left"><img src="/files/-LjbInDo_YiOKG08DhXU" alt=""></div>

### Output Parameter

```
command = delay
```

##


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jolzee.gitbook.io/leopard/components/expensive-operations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
