mirror of
https://github.com/googleapis/genai-toolbox.git
synced 2026-04-09 03:02:26 -04:00
`
tools:
wait_for_tool:
kind: wait-for
description: "Tool puts chat to sleep for given timeout example 3m,10s,
5m etc. For tasks such as cluster creation no need to wait. It takes
longer time such as 8m for instance creation. Use timeout value as
default if nothing is provided"
timeout: 10s
`
Output:
`
prernakakkar@prernakakkar:~/senseai/genai-toolbox$ curl -X POST -H
"Content-Type: application/json" -d '{"duration": "5m"}'
http://127.0.0.1:5000/api/tool/wa
it_for_tool/invoke
{"result":"[\"Wait for 5m0s completed successfully.\"]"}
`
1.6 KiB
1.6 KiB
title, type, weight, description, aliases
| title | type | weight | description | aliases | |
|---|---|---|---|---|---|
| wait | docs | 1 | A "wait" tool pauses execution for a specified duration. |
|
About
A wait tool pauses execution for a specified duration. This can be useful in workflows where a delay is needed between steps.
wait takes one input parameter duration which is a string representing the time to wait (e.g., "10s", "2m", "1h").
{{% notice info %}} This tool is intended for developer assistant workflows with human-in-the-loop and shouldn't be used for production agents. {{% /notice %}}
Example
tools:
wait_for_tool:
kind: wait
description: Use this tool to pause execution for a specified duration.
timeout: 30s
Reference
| field | type | required | description |
|---|---|---|---|
| kind | string | true | Must be "wait". |
| description | string | true | Description of the tool that is passed to the LLM. |
| timeout | string | true | The default duration the tool can wait for. |