NonStandardAnnotation Class — langchain Architecture
Architecture documentation for the NonStandardAnnotation class in content.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD ca7a2244_940c_5a51_1ef9_bb7c8b715c3e["NonStandardAnnotation"] c7f11daf_e104_efbe_7225_f1d6da8e8630["content.py"] ca7a2244_940c_5a51_1ef9_bb7c8b715c3e -->|defined in| c7f11daf_e104_efbe_7225_f1d6da8e8630
Relationship Graph
Source Code
libs/core/langchain_core/messages/content.py lines 184–200
class NonStandardAnnotation(TypedDict):
"""Provider-specific annotation format."""
type: Literal["non_standard_annotation"]
"""Type of the content block. Used for discrimination."""
id: NotRequired[str]
"""Unique identifier for this content block.
Either:
- Generated by the provider
- Generated by LangChain upon creation (`UUID4` prefixed with `'lc_'`))
"""
value: dict[str, Any]
"""Provider-specific annotation data."""
Defined In
Source
Frequently Asked Questions
What is the NonStandardAnnotation class?
NonStandardAnnotation is a class in the langchain codebase, defined in libs/core/langchain_core/messages/content.py.
Where is NonStandardAnnotation defined?
NonStandardAnnotation is defined in libs/core/langchain_core/messages/content.py at line 184.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free