Add implementation for the `wait` tool. For this we consider all status different from `PendingInit` and `Running` as terminal. The `wait` tool call will return either after a given timeout or when the tool reaches a non-terminal status. A few points to note: * The usage of a channel is preferred to prevent some races (just looping on `get_status()` could "miss" a terminal status) * The order of operations is very important, we need to first subscribe and then check the last known status to prevent race conditions * If the channel gets dropped, we return an error on purpose |
||
|---|---|---|
| .. | ||
| account.rs | ||
| approvals.rs | ||
| config_types.rs | ||
| custom_prompts.rs | ||
| items.rs | ||
| lib.rs | ||
| message_history.rs | ||
| models.rs | ||
| num_format.rs | ||
| openai_models.rs | ||
| parse_command.rs | ||
| plan_tool.rs | ||
| protocol.rs | ||
| thread_id.rs | ||
| user_input.rs | ||