Skip to content

Conversation

ccurme
Copy link
Collaborator

@ccurme ccurme commented Jul 28, 2025

No description provided.

## Benefits

1. **Type Safety**: Compile-time validation of required fields and
proper type setting
2. **Less Boilerplate**: No need to manually set the `type` field or
generate IDs
3. **Input Validation**: Runtime validation prevents common errors
(e.g., base64 without MIME type)
4. **Consistent Patterns**: Standardized creation patterns across all
block types
5. **Better Developer Experience**: Cleaner, more intuitive API than
manual TypedDict construction. Also follows similar other patterns (e.g.
`create_react_agent`, `init_chat_model`
@mdrxy mdrxy requested a review from baskaryan as a code owner July 31, 2025 15:12
@ccurme ccurme merged commit e02eed5 into wip-v0.4 Aug 5, 2025
110 checks passed
@ccurme ccurme deleted the standard_outputs_copy branch August 5, 2025 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Related to the package `langchain-core`
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants