-
Notifications
You must be signed in to change notification settings - Fork 19.1k
docs(core): add message-type-specific documentation for message name
fields
#32469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: Maxime Grenu <[email protected]> Co-authored-by: Claude <[email protected]> Co-authored-by: Claude <[email protected]> Co-authored-by: jmaillefaud <[email protected]> Co-authored-by: Eugene Yurtsev <[email protected]> Co-authored-by: tanwirahmad <[email protected]> Co-authored-by: Christophe Bornet <[email protected]> Co-authored-by: Copilot <[email protected]> Co-authored-by: niceg <[email protected]> Co-authored-by: Chaitanya varma <[email protected]> Co-authored-by: dishaprakash <[email protected]> Co-authored-by: Chester Curme <[email protected]> Co-authored-by: Copilot <[email protected]> Co-authored-by: Kanav Bansal <[email protected]> Co-authored-by: Aleksandr Filippov <[email protected]> Co-authored-by: Alex Feel <[email protected]>
# Conflicts: # .github/workflows/_integration_test.yml # .github/workflows/_release.yml # .github/workflows/api_doc_build.yml # .github/workflows/people.yml # .github/workflows/run_notebooks.yml # .github/workflows/scheduled_test.yml # SECURITY.md # docs/docs/integrations/vectorstores/pgvectorstore.ipynb # libs/langchain_v1/langchain/chat_models/base.py # libs/langchain_v1/tests/integration_tests/chat_models/test_base.py # libs/langchain_v1/tests/unit_tests/chat_models/test_chat_models.py
Co-authored-by: Mason Daugherty <[email protected]> Co-authored-by: Eugene Yurtsev <[email protected]> Co-authored-by: Mason Daugherty <[email protected]> Co-authored-by: Nuno Campos <[email protected]>
Co-authored-by: Kanav Bansal <[email protected]> Co-authored-by: Pranav Bhartiya <[email protected]> Co-authored-by: Nelson Sproul <[email protected]> Co-authored-by: John Bledsoe <[email protected]>
Resolves #32215 --------- Co-authored-by: Chester Curme <[email protected]> Co-authored-by: Eugene Yurtsev <[email protected]> Co-authored-by: Nuno Campos <[email protected]>
Adds backward compat for `.text()` on messages while keeping `.text` access _The kicker:_ Any previous use of `.text()` will now need a `# type: ignore[operator]` to silence type checkers. However, it will still behave as expected at runtime. Deprecating in v0.4.0, to be removed in v2.0.0.
Co-authored-by: Mason Daugherty <[email protected]>
To prevent polluting future PRs
# Conflicts: # libs/core/langchain_core/version.py # libs/core/pyproject.toml # libs/core/uv.lock # libs/partners/openai/tests/integration_tests/chat_models/test_responses_api.py # libs/partners/openai/uv.lock
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
CodSpeed WallTime Performance ReportMerging #32469 will not alter performanceComparing
|
CodSpeed Instrumentation Performance ReportMerging #32469 will not alter performanceComparing Summary
Footnotes |
Updates the name field documentation in v1 messages to provide message-type-specific guidance instead of generic descriptions. The current documentation incorrectly presents the field as purely "human-readable" when it serves critical functional purposes that vary by message type.
ToolMessage.name
is effectively required by most providers despite being typed asOptional[str]
AIMessage.name
is critical for multi-agent systems but optional for single-agent scenariosExamples
langchain-openai
AIMessage.name
name
when present on a messageToolMessage.name
langgraph-supervisor-py
AIMessage.name
langchain-google
FunctionResponse
objectslangchain-community
message.name
for tool/function calling