Skip to content

Commit 2276392

Browse files
authored
Merge branch 'v04_standard_outputs' into eugene/add_some_refactors
2 parents 81a4a05 + 5de65de commit 2276392

File tree

43 files changed

+713
-348
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+713
-348
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
blank_issues_enabled: false
22
version: 2.1
33
contact_links:
4-
- name: 🤔 Question or Problem
5-
about: Ask a question or ask about a problem in GitHub Discussions.
6-
url: https://www.github.com/langchain-ai/langchain/discussions/categories/q-a
4+
- name: 🤔 Question
5+
about: Ask a question in the LangChain forums
6+
url: https://forum.langchain.com/c/help/langchain/14
77
- name: Feature Request
88
url: https://www.github.com/langchain-ai/langchain/discussions/categories/ideas
99
about: Suggest a feature or an idea

.github/workflows/_integration_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Integration tests
1+
name: Integration Tests
22

33
on:
44
workflow_dispatch:

.github/workflows/_release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: release
1+
name: Release
22
run-name: Release ${{ inputs.working-directory }} by @${{ github.actor }}
33
on:
44
workflow_call:
@@ -64,7 +64,7 @@ jobs:
6464
name: dist
6565
path: ${{ inputs.working-directory }}/dist/
6666

67-
- name: Check Version
67+
- name: Check version
6868
id: check-version
6969
shell: python
7070
working-directory: ${{ inputs.working-directory }}
@@ -93,7 +93,7 @@ jobs:
9393
${{ inputs.working-directory }}
9494
ref: ${{ github.ref }} # this scopes to just ref'd branch
9595
fetch-depth: 0 # this fetches entire commit history
96-
- name: Check Tags
96+
- name: Check tags
9797
id: check-tags
9898
shell: bash
9999
working-directory: langchain/${{ inputs.working-directory }}

.github/workflows/api_doc_build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: API docs build
1+
name: API Docs Build
22

33
on:
44
workflow_dispatch:
@@ -56,7 +56,7 @@ jobs:
5656
git clone --depth 1 https://github.com/$repo.git $REPO_NAME
5757
done
5858
59-
- name: Setup python ${{ env.PYTHON_VERSION }}
59+
- name: Setup Python ${{ env.PYTHON_VERSION }}
6060
uses: actions/setup-python@v5
6161
id: setup-python
6262
with:
@@ -68,7 +68,7 @@ jobs:
6868
python -m pip install -U uv
6969
python -m uv pip install --upgrade --no-cache-dir pip setuptools pyyaml
7070
71-
- name: Move libs with script
71+
- name: Move libs
7272
run: python langchain/.github/scripts/prep_api_docs_build.py
7373
env:
7474
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/check_core_versions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Check `langchain-core` version equality
1+
name: Check `core` Version Equality
22

33
on:
44
pull_request:

.github/workflows/check_new_docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Integration docs lint
1+
name: Integration Docs Lint
22

33
on:
44
push:

.github/workflows/pr_lint.yml

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
# -----------------------------------------------------------------------------
2+
# PR Title Lint Workflow
3+
#
4+
# Purpose:
5+
# Enforces Conventional Commits format for pull request titles to maintain a
6+
# clear, consistent, and machine-readable change history across our repository.
7+
#
8+
# Enforced Commit Message Format (Conventional Commits 1.0.0):
9+
# <type>[optional scope]: <description>
10+
# [optional body]
11+
# [optional footer(s)]
12+
#
13+
# Allowed Types:
14+
# • feat — a new feature (MINOR bump)
15+
# • fix — a bug fix (PATCH bump)
16+
# • docs — documentation only changes
17+
# • style — formatting, missing semi-colons, etc.; no code change
18+
# • refactor — code change that neither fixes a bug nor adds a feature
19+
# • perf — code change that improves performance
20+
# • test — adding missing tests or correcting existing tests
21+
# • build — changes that affect the build system or external dependencies
22+
# • ci — continuous integration/configuration changes
23+
# • chore — other changes that don't modify src or test files
24+
# • revert — reverts a previous commit
25+
# • release — prepare a new release
26+
#
27+
# Allowed Scopes (optional):
28+
# core, cli, langchain, standard-tests, docs, anthropic, chroma, deepseek,
29+
# exa, fireworks, groq, huggingface, mistralai, nomic, ollama, openai,
30+
# perplexity, prompty, qdrant, xai
31+
#
32+
# Rules & Tips for New Committers:
33+
# 1. Subject (type) must start with a lowercase letter and, if possible, be
34+
# followed by a scope wrapped in parenthesis `(scope)`
35+
# 2. Breaking changes:
36+
# – Append "!" after type/scope (e.g., feat!: drop Node 12 support)
37+
# – Or include a footer "BREAKING CHANGE: <details>"
38+
# 3. Example PR titles:
39+
# feat(core): add multi‐tenant support
40+
# fix(cli): resolve flag parsing error
41+
# docs: update API usage examples
42+
# docs(openai): update API usage examples
43+
#
44+
# Resources:
45+
# • Conventional Commits spec: https://www.conventionalcommits.org/en/v1.0.0/
46+
# -----------------------------------------------------------------------------
47+
48+
name: PR Title Lint
49+
50+
permissions:
51+
pull-requests: read
52+
53+
on:
54+
pull_request:
55+
types: [opened, edited, synchronize]
56+
57+
jobs:
58+
lint-pr-title:
59+
name: Validate PR Title
60+
runs-on: ubuntu-latest
61+
steps:
62+
- name: Validate PR Title
63+
uses: amannn/action-semantic-pull-request@v5
64+
env:
65+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
with:
67+
types: |
68+
feat
69+
fix
70+
docs
71+
style
72+
refactor
73+
perf
74+
test
75+
build
76+
ci
77+
chore
78+
revert
79+
release
80+
scopes: |
81+
core
82+
cli
83+
langchain
84+
standard-tests
85+
docs
86+
anthropic
87+
chroma
88+
deepseek
89+
exa
90+
fireworks
91+
groq
92+
huggingface
93+
mistralai
94+
nomic
95+
ollama
96+
openai
97+
perplexity
98+
prompty
99+
qdrant
100+
xai
101+
requireScope: false
102+
disallowScopes: |
103+
release
104+
[A-Z]+
105+
subjectPattern: ^(?![A-Z]).+$
106+
subjectPatternError: |
107+
The subject "{subject}" found in the pull request title "{title}"
108+
didn't match the configured pattern. Please ensure that the subject
109+
doesn't start with an uppercase character.
110+
ignoreLabels: |
111+
ignore-lint-pr-title

.github/workflows/run_notebooks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Run notebooks
1+
name: Run Notebooks
22

33
on:
44
workflow_dispatch:

.github/workflows/scheduled_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Scheduled tests
1+
name: Scheduled Tests
22

33
on:
44
workflow_dispatch: # Allows to trigger the workflow manually in GitHub UI
@@ -162,7 +162,7 @@ jobs:
162162
langchain/libs/partners/google-vertexai \
163163
langchain/libs/partners/aws
164164
165-
- name: Ensure the tests did not create any additional files
165+
- name: Ensure tests did not create additional files
166166
working-directory: langchain
167167
run: |
168168
set -eu

docs/docs/integrations/chat/xai.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@
345345
"source": [
346346
"## API reference\n",
347347
"\n",
348-
"For detailed documentation of all `ChatXAI` features and configurations, head to the API reference: https://python.langchain.com/api_reference/xai/chat_models/langchain_xai.chat_models.ChatXAI.html"
348+
"For detailed documentation of all `ChatXAI` features and configurations, head to the [API reference](https://python.langchain.com/api_reference/xai/chat_models/langchain_xai.chat_models.ChatXAI.html)."
349349
]
350350
}
351351
],

0 commit comments

Comments
 (0)