| 1 |
from __future__ import annotations |
| 2 |
|
| 3 |
from typing_extensions import Literal, Required, TypedDict |
| 4 |
|
| 5 |
__all__ = ["ThinkingBlockParam"] |
| 6 |
|
| 7 |
|
| 8 |
class ThinkingBlockParam(TypedDict, total=False): |
| 9 |
signature: Required[str] |
| 10 |
""" |
| 11 |
The `signature` value of this thinking block, exactly as returned by the API in |
| 12 |
a previous response. Used to verify that the block was generated by Claude. |
| 13 |
|
| 14 |
Thinking blocks must be passed back unmodified and in their original order; a |
| 15 |
modified block results in a 400 `invalid_request_error`. |
| 16 |
""" |
| 17 |
|
| 18 |
thinking: Required[str] |
| 19 |
"""The `thinking` text of this block as returned by the API.""" |
| 20 |
|
| 21 |
type: Required[Literal["thinking"]] |