Skip to content

AsyncHookJSONOutput

Base classes

Name Children Inherits
dict
builtins
dict() -> new empty dictionary

⋔ Inheritance diagram

graph TD
  2488104071["hooks.AsyncHookJSONOutput"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 2488104071
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

Async hook output that defers hook execution.

Fields

async_: Set to True to defer hook execution. Note: This is converted to "async" when sent to the CLI - use "async_" in your Python code. asyncTimeout: Optional timeout in milliseconds for the async operation.

Source code in src/clawd_code_sdk/models/hooks.py
class AsyncHookJSONOutput(TypedDict):
    """Async hook output that defers hook execution.

    Fields:
        async_: Set to True to defer hook execution. Note: This is converted to
            "async" when sent to the CLI - use "async_" in your Python code.
        asyncTimeout: Optional timeout in milliseconds for the async operation.
    """

    async_: Literal[True]  # Using async_ to avoid Python keyword (converted to "async" for CLI)
    asyncTimeout: NotRequired[int]

:fa-brands-github: Show source on GitHub