| 1 |
from __future__ import annotations |
| 2 |
|
| 3 |
from typing import Optional |
| 4 |
from typing_extensions import TypedDict |
| 5 |
|
| 6 |
__all__ = ["MetadataParam"] |
| 7 |
|
| 8 |
|
| 9 |
class MetadataParam(TypedDict, total=False): |
| 10 |
user_id: Optional[str] |
| 11 |
"""An external identifier for the user who is associated with the request. |
| 12 |
|
| 13 |
This should be a uuid, hash value, or other opaque identifier. Anthropic may use |
| 14 |
this id to help detect abuse. Do not include any identifying information such as |
| 15 |
name, email address, or phone number. |
| 16 |
""" |