> For the complete documentation index, see [llms.txt](https://cyr1en.gitbook.io/commandprompter/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cyr1en.gitbook.io/commandprompter/configuration/command-prompter-configuration/prompt-timeout.md).

# Prompt-Timeout

The `Prompt-Timeout` option allows you to specify the duration, in seconds, until CommandPrompter cancels a prompt.

#### Usage

You can configure the `Prompt-Timeout` by editing the "config.yml" file as follows:

```yaml
# After how many seconds until
# CommandPrompter cancels a
# prompt
Prompt-Timeout: 300
```

In this example, the timeout is set to 300 seconds.

#### Explanation

The `Prompt-Timeout` determines the period of inactivity after which CommandPrompter cancels a prompt. Adjust this value to control how long a user has to input a command before the prompt is canceled automatically.

#### Example

To set the `Prompt-Timeout` to 120 seconds, use the following configuration:

```yaml
Prompt-Timeout: 120
```

This will set the timeout to 120 seconds, allowing users two minutes to respond to a prompt.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://cyr1en.gitbook.io/commandprompter/configuration/command-prompter-configuration/prompt-timeout.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.
