Async Tool Calling Design

AdvanceddevelopmentMinimum 64K context
View source

Designs agent workflows that let a model continue useful reasoning while external tools run asynchronously. Covers tool contracts, pending-call state, idempotency, timeout handling, wait-tool patterns, result reconciliation, and user-visible progress for long-running business or engineering tasks.

Use cases

  • Designing async function-calling loops for slow external APIs
  • Coordinating parallel retrieval, browser, code, and database tools
  • Adding idempotency and timeout recovery to long-running agent tasks
  • Building wait-tool patterns that keep users informed without busy polling

Example prompt

Design async tool calling for this agent workflow.

Context: [tools, expected runtimes, state store, retry policy]

Return:
1. Tool schema changes for async execution.
2. Pending-call state model.
3. Timeout, retry, and cancellation behavior.
4. Result reconciliation rules.
5. User-facing progress events.
6. Tests for duplicate delivery and stale results.

Recommended models

Compatible tools

claude-codecursorkiroany

Modalities

Input: text, code
→
Output: text, code

Related Skills

Author

OpenModels Community

@openmodelsrun

Publisher

Verified source

OpenModels Community

Adapted from the linked source

Canonical source ↗