langchain-core==1.4.0
요약
이 문서는 langchain-core 라이브러리의 버전 1.4.0으로의 업데이트 과정에서 발생한 주요 변경 사항들을 기록하고 있습니다. 핵심적으로 콘텐츠 블록 중심 스트리밍(content-block-centric streaming) 기능 추가, 트레이서 메타데이터 개선, 그리고 다양한 의존성 패키지(예: urllib3, mistune, jupyter-server 등)의 업데이트가 이루어졌습니다. 또한, 안정적인 릴리스를 위해 여러 버그 수정 및 하위 호환성 유지가 진행되었습니다.
핵심 포인트
- 콘텐츠 블록 중심 스트리밍(content-block-centric streaming) 기능이 추가되어 스트리밍 처리 방식이 개선되었습니다.
- 트레이서(tracer) 메타데이터에 채팅 모델 및 LLM 호출 파라미터가 추가되어 추적 기능이 강화되었습니다.
- 여러 의존성 라이브러리가 업데이트되었으며, 이는 보안 패치 및 기능 안정성을 높이는 데 기여했습니다.
- 전반적으로 릴리스 과정에서 다양한 버그 수정(예: 무한 루프 방지, SSRF 정책 복구)과 하위 호환성 유지가 이루어졌습니다.
langchain-core==0.3.86 이후 변경 사항
chore(infra): v1.4를 master에 병합 ( #37350 )
chore: /libs/core에서 urllib3를 2.6.3에서 2.7.0으로 업데이트 ( #37329 )
fix(core): @deprecated에서 eager pydantic.v1 임포트를 방지 ( #37308 )
chore: /libs/core에서 mistune을 3.1.4에서 3.2.1로 업데이트 ( #37237 )
chore: /libs/core에서 jupyter-server를 2.17.0에서 2.18.0으로 업데이트 ( #37204 )
release(core): 1.3.3 ( #37198 )
fix(core): 릴리스와 일치하도록 deprecation since를 1.3.3으로 설정 ( #37200 )
fix(core, langchain): 신뢰할 수 없는 매니페스트(manifests)에 대해 load()를 강화 ( #37197 )
chore: /libs/core에서 notebook을 7.5.0에서 7.5.6으로 업데이트 ( #37109 )
chore: /libs/core에서 types-pyyaml을 6.0.12.20250915에서 6.0.12.20260408로 업데이트 ( #37129 )
fix(core): 트레이서(tracers)에서 도구 실행(tool runs) 시 구조화된 입력(structured inputs)을 보존 ( #37108 )
release(perplexity): 1.2.0 ( #37091 )
chore(docs): x handle 참조 업데이트 ( #37081 )
fix(core): warn_deprecated에서 제거를 선택 사항으로 변경 ( #37056 )
fix(core): 무한 루프를 방지하기 위해 _batch 및 _abatch에서 batch_size 검증 ( #36663 )
chore(core): stream_v2/astream_v2를 beta로 표시 ( #36992 )
release(core): 1.3.2 ( #36990 )
feat(core): 콘텐츠 블록 중심 스트리밍(content-block-centric streaming) (v2) 추가 ( #36834 )
release(core): 1.3.1 ( #36972 )
feat(core): _format_output이 ToolOutputMixin 인스턴스 리스트를 통과할 수 있도록 허용 ( #36963 )
chore: /libs/core에서 nbconvert를 7.17.0에서 7.17.1로 업데이트 ( #36923 )
feat(core): 특수 키에 대한 트레이서(tracer) 메타데이터의 상속 동작 업데이트 ( #36900 )
chore: /libs/core에서 langsmith를 0.7.13에서 0.7.31로 업데이트 ( #36813 )
release(core): 1.3.0 릴리스 ( #36851 )
release(core): 1.3.0a3 ( #36829 )
chore(core): 하위 호환성을 위해 스트리밍 메타데이터에서 checkpoint_ns 동작 유지 ( #36828 )
feat(core): traceable 메타데이터에 채팅 모델(chat model) 및 LLM 호출 파라미터 추가 ( #36771 )
fix(core): SSRF 정책에서 클라우드 메타데이터 IP 및 link-local 범위를 복구 ( #36816 )
chore(deps): pytest를 9.0.3으로 업데이트 ( #36801 )
chore(core): 프라이빗 SSRF 유틸리티 강화 ( #36768 )
fix(openai): 타입이 없는 콘텐츠 블록 처리
responses api 변환 시 key 문제 ( #36725 )
chore: /libs/core 내 pytest 버전을 9.0.2에서 9.0.3으로 업데이트 ( #36719 )
release(core): 1.3.0.a2 ( #36698 )
fix(core): 가비지 컬렉션 (Garbage Collection)을 지원하기 위해 상속된 실행 트리 (run trees) 저장 시 참조 횟수 (Reference Counting) 사용 ( #36660 )
docs(core): nit ( #36685 )
release(core): 1.3.0a1 ( #36656 )
chore(core): 스트리밍 메타데이터 (Streaming Metadata) 축소 / 성능 (Perf) ( #36588 )
release(core): release 1.2.28 ( #36614 )
fix(core): 템플릿 (Templates)에 대한 정화 (Sanitization) 강화 ( #36612 )
release(core): 1.2.27 ( #36586 )
fix(core): 지원 중단된 프롬프트 저장 경로에서의 심볼릭 링크 (Symlinks) 처리 ( #36585 )
chore: pygments>=2.20.0에 대한 설명 주석 추가 ( #36570 )
release(core): 1.2.26 ( #36511 )
fix(core): Bedrock 모델을 위한 초기화 검증기 (Init Validator) 및 직렬화 매핑 (Serialization Mappings) 추가 ( #34510 )
feat(core): 직렬화 가능한 매핑 (Serializable Mapping)에 ChatBaseten 추가 ( #36510 )
chore(core): docstring에서 gpt-3.5-turbo 제거 ( #36497 )
fix(core): filter_messages docstring 예제의 매개변수 (Parameter) 이름 수정 ( #36462 )
release(core): 1.2.25 ( #36473 )
fix(core): 지원 중단된 프롬프트 로딩 함수에서 txt 파일에 대한 검사 강화 ( #36471 )
fix(core): 문서 내 오타 수정 ( #36459 )
release(core): 1.2.24 ( #36434 )
feat(core): OpenAI 파일 입력에 대한 플레이스홀더 (Placeholder) 파일명 추정 ( #36433 )
chore: 모든 패키지에 pygments>=2.20.0 적용 ( CVE-2026-4539 ) ( #36385 )
fix(core): _WellKnownOpenAITools에 "computer" 추가 ( #36261 )
release(core): 1.2.23 ( #36323 )
revert: "fix(core): metadata에서 invocation params 추적" 되돌리기 ( #36322 )
chore: /libs/core 내 requests 버전을 2.32.5에서 2.33.0으로 업데이트 ( #36243 )
release(core): 1.2.22 ( #36201 )
fix(core): prompt.save 및 load_prompt의 경로 검증, 메서드 지원 중단 ( #36200 )
release(core): 1.2.21 ( #36179 )
fix(core,model-profiles): 누락된 ModelProfile 필드 추가, 스키마 드리프트 (Schema Drift) 경고 ( #36129 )
chore(core): 삭제된 context 모듈에 대한 오래된 blockbuster 허용 목록 제거 ( #36168 )
ci: CI에서 pytest 스트리밍 출력 억제 ( #36092 )
release(core): 1.2.20 ( #36085 )
fix(core): invocation params 추적
metadata 내에서 ( #36080 )
feat: create_agent 및 init_chat_model에 LangSmith 통합 메타데이터 추가 ( #35810 )
feat(core): anti-ssrf 강화 ( #35960 )
ci: lint 타겟에서 불필요한 의존성 (dep) 설치 방지 ( #36046 )
docs(core): mermaid api의 base_url 문서화 ( #35961 )
chore: /libs/core에서 orjson을 3.11.5에서 3.11.6으로 업데이트 ( #35805 )
chore: 정리 작업 ( #35850 )
release(core): 1.2.19 ( #35832 )
chore(core): BaseCrossEncoder를 langchain-core로 이동 ( #35809 )
chore: /libs/core에서 tornado를 6.5.2에서 6.5.5로 업데이트 ( #35775 )
release(core): 1.2.18 ( #35704 )
fix(core): alternative_import의 deprecation docstring 내 이중 백틱(double backticks) 수정 ( #35658 )
fix(core): 도구 호출 스키마 (tool call schema) 생성 시 default_factory 보존 ( #35550 )
feat(openai): 도구 검색 (tool search) 지원 ( #35582 )
chore: 3개 디렉토리에 걸쳐 7개의 업데이트로 minor-and-patch 그룹 업데이트 ( #35605 )
release(core): 1.2.17 ( #35527 )
fix(core): 직렬화된 tracer 메시지 출력에서 사용량 메타데이터 (usage metadata) 추출 ( #35526 )
chore: 3개 디렉토리에 걸쳐 7개의 업데이트로 langchain-deps 그룹 업데이트 ( #35513 )
chore: 3개 디렉토리에 걸쳐 14개의 업데이트로 langchain-deps 그룹 업데이트 ( #35441 )
release(core): 1.2.16 ( #35439 )
fix(core): 병합 (merge) 시 비어 있는 도구 청크 ID (tool chunk ids)를 누락된 것으로 처리 ( #35414 )
fix(core): JSON 직렬화가 불가능한 도구 스키마 (non-JSON-serializable tool schemas)에 대한 에러 메시지 개선 ( #34376 )
fix(core): 필수 위치 인자 (positional args)를 명확히 하기 위해 on_chat_model_start의 타이핑/문서 개선 ( #35324 )
perf(core): 임포트 시간 단축을 위해 특정 LangSmith 임포트를 지연 ( #35298 )
revert: ChatAnthropicBedrockWrapper 추가 되돌리기 ( #35371 )
release(core): 1.2.15 ( #35367 )
fix(anthropic): 테스트 및 docstring에서 은퇴한 모델 ID 교체 ( #35365 )
feat(anthropic): ChatAnthropicBedrock 래퍼 (wrapper) 추가 ( #35091 )
style: 일부 ruff noqa 수정 ( #35321 )
release(core): 1.2.14 ( #35328 )
chore(core): sys info util에서 langserve 제거, deepagents 추가 ( #35325 )
fix(core): merge_lists가 병렬 도구 호출 (parallel tool calls)을 잘못 병합하는 문제 수정 ( #35281 )
fix(core): int 타입의 temperature 허용
_get_ls_params를 LangSmith tracing ( #35302 )용으로 사용
revert: _get_ls_params에서 정수형 (integer) temperature 값을 허용함 ( #35319 )
fix(core): _get_ls_params에서 정수형 (integer) temperature 값을 허용함 ( #35317 )
docs(core): 정확성을 위해 load 노트를 업데이트함 ( #35309 )
fix(core): args_schema가 dict일 때 재귀 오류 (recursion error) 방지 ( #35260 )
fix(core): 병합 (merging) 시 index 및 timestamp 필드 보존 ( #34731 )
docs(core): 역직렬화 (deserialization)에 대한 보안 경고 및 권장 사항 추가 ( #35282 )
docs: docstring 부정확성 수정 및 오래된 LangSmith URL 업데이트 ( #35283 )
fix(core): 오해의 소지가 있는 jinja2 sandboxing 주석 수정 ( #35183 )
chore: 8개의 업데이트를 통해 3개 디렉토리에 걸쳐 langchain-deps 그룹 버전 업 ( #35257 )
release(core): 1.2.13 ( #35230 )
docs(core): get_lc_namespace docstring 확장 ( #35229 )
feat(openrouter): langchain-openrouter 프로바이더 (provider) 패키지 추가 ( #35211 )
style: ruff 버전을 0.15로 업 ( #35042 )
release(core): 1.2.12 ( #35192 )
fix(core): ChatGeneration.text 설정 수정 ( #35191 )
release(core): 1.2.11 ( #35144 )
fix(openai): 이미지의 토큰을 계산할 때 URL을 정화 (sanitize) 함 ( #35143 )
chore(core): langchain-core의 docstring 불일치 및 불필요한 로직 정리 ( #35064 )
fix(core): tracer에서 bare except를 Exception으로 교체 ( #35138 )
release(core): 1.2.10 ( #35136 )
chore(deps): 40개의 업데이트를 통해 3개 디렉토리에 걸쳐 langchain-deps 그룹 버전 업 ( #35129 )
chore(deps): 11개의 업데이트를 통해 3개 디렉토리에 걸쳐 langchain-deps 그룹 버전 업 ( #35121 )
feat(core): ContextOverflowError 추가, anthropic 및 openai에서 발생시킴 ( #35099 )
feat(model-profiles): text_inputs 및 text_outputs 추가 ( #35084 )
feat(core): count_tokens_approximately에서 도구 스키마 (tool schemas)의 토큰 계산 ( #35098 )
docs(core): RunnableSerializable에 누락된 name docstring 추가 ( #35088 )
release(core): 1.2.9 ( #35025 )
fix(core): 근사 토큰 수 (approximate token counts) 스케일링 시 캡 (cap) 조정 ( #35017 )
revert: 모듈 레벨에서 hex color 정규식 패턴을 사전 컴파일 (precompile) 함 ( #35016 )
chore: make type 타겟 추가 ( #35015 )
revert:
"chore: add typing target in Makefile " ( #35013 )
chore: Makefile에 typing 타겟 추가 ( #35012 )
fix(core): 근사 토큰 수 (approximate token counts) 스케일링 시 상한선 (cap) 적용 ( #35005 )
feat(core): 토큰을 근사적으로 계산할 때 보고된 사용량 (reported usage)에 따라 스케일링 허용 ( #34996 )
test(core): 불안정한 테스트 (flaky test)를 위해 delta_time 증가 ( #34982 )
chore: pyproject.toml 파일 보강 ( #34980 )
release(core): 1.2.8 ( #34975 )
docs(core): pretty_repr, pretty_print에 대한 예시 추가 ( #34968 )
docs(core): get_buffer_string에 적절한 경고 문구 (admonition) 사용 ( #34967 )
docs: core 클래스에 사용 예시 추가 ( #34841 )
chore(core): docstring 형식 수정 ( #34966 )
chore(deps): 20개 디렉토리에 걸쳐 3개의 업데이트로 uv 그룹 버전 업 ( #34941 )
docs: create_message 함수 docstring에 예시 추가 ( #34851 )
docs(core): tool 데코레이터 인자 및 반환 타입 요구사항 명확화 ( #34860 )
fix(core): 중첩된 mustache 변수 추출 수정 및 문서 업데이트 ( #34872 )
fix(core): 빈 모델 (empty model)에 대한 base model 어노테이션 허용 ( #34932 )
chore: urllib3를 2.6.3으로 업그레이드 ( #34940 )
fix(core): 메시지 리스트가 비어 있을 때 ParrotFakeChatModel에서 발생하는 충돌 방지 ( #34943 )
fix(core): 인자/예약된 인자가 없는 경우의 google docstring 파싱 수정 ( #34861 )
test(core): 멀티모달 메시지 (multimodal messages)를 사용한 근사 토큰 계산 테스트 추가 ( #34898 )
fix(core): 블록 반복 (block iteration)을 위해 Iterable을 Iterator로 교체 ( #34934 )
fix(core): yield_blobs가 Iterator를 반환하도록 수정 ( #34935 )
docs: 비동기 변형 (async variants)의 Runnable 설명 내 오타 수정 ( #34905 )
fix(core): 알 수 없는 도구 (unknown tools)에 대해 outputparserexception 발생 ( #34923 )
docs(core): 자잘한 수정 (nit) ( #34914 )
chore(core): 자잘한 수정 (nits) ( #34897 )
feat(core): count_tokens_approximately에 멀티모달 지원 추가 ( #34883 )
fix(core): check_version.py의 오타 'use a a' -> 'use as a' 수정 ( #34878 )
style(core): 린트 (lint) ( #34862 )
feat(core): get_buffer_string에 XML 형식 옵션 추가 ( #34802 )
chore(core): 패키징 제약 조건 완화 ( #34832 )
chore(deps-dev): uv 내 /libs/core에서 setuptools를 67.8.0에서 78.1.1로 업그레이드
1개 디렉토리에 걸친 그룹 ( #34825 ) chore(core, langchain): pre-commit hooks에 버전 일관성 체크 추가 ( #34782 ) docs(core): total=False에 대한 명확성을 위해 RunnableConfig의 docstring(문서화 문자열) 개선 ( #34756 ) docs(core): callbacks 파라미터 설명 정리 ( #34738 ) fix(core): 텍스트 블록이 아닌 타입에 대한 가드(guard)를 올바르게 적용 ( #34729 ) chore: Twitter URL 업데이트 ( #34736 ) refactor(core): 모든 Iterable을 지원하도록 comma_list 유틸리티 일반화 ( #34714 ) fix(core): sync LLMManagerMixin 메서드에 명시적인 tags 파라미터 추가 ( #34722 ) docs(core): ToolCall 및 ToolCallChunk에 대한 docstring(문서화 문자열) 개선 ( #34719 ) fix(core): on_tool_error 이벤트 데이터에 tool_call_id 추가 ( #33731 ) fix(core): JSON schema 함수에서 title 누락 시의 에러 메시지 개선 ( #34683 ) fix(core): BaseStore와 일치하도록 yield_keys 접두사를 keyword-only로 변경 ( #34659 ) chore(core): lock 버전 업그레이드 ( #34695 ) chore(core): RunnableLambda의 타입 개선 ( #34539 ) chore(core): StreamingRunnable의 타입 개선 ( #34540 ) style(core): 일부 noqa 이스케이프 수정 ( #34675 ) style: ruff 버전을 0.14.11로 업그레이드 ( #34674 ) fix: 상대 경로 임포트(relative imports) 제거 ( #34680 ) release: langchain-core 1.2.7 ( #34678 ) fix: 시그니처(signature)에서만 발견되는 주입된 인자(injected args)는 추적하지 않음 ( #34670 ) feat(core): HTML 링크 추출 시 무시할 파일 확장자 추가 ( #34552 ) refactor(core): HTML 링크 추출 유틸리티의 docstring(문서화 문자열) 개선 ( #34550 ) test(core): LengthBasedExampleSelector에서 빈 예시(empty examples)에 대한 엣지 케이스(edge case) 추가 ( #34641 ) fix(core): 선택적 인자(optional args)가 있는 함수에 대한 엄격한 스키마 생성 수정 ( #34599 ) feat(core): get_buffer_string()에서 커스텀 메시지 구분자(message separator) 지원 ( #34569 ) refactor(core): fallback GPT-2 tokenizer 사용에 대한 경고 추가 ( #34621 ) fix(core,langchain): 메시지 요약에 get_buffer_string 사용 ( #34607 ) test(core): 포맷팅 유틸리티 및 병합(merge) 함수에 대한 테스트 추가 ( #34511 ) fix(core): model_copy를 사용하여 캐시 키에서 메시지 ID 제거 ( #33915 ) fix(core): 도구 스키마(tool schema)에서 주입된 인자(injected args) 제외 (
#34582 ) refactor(core): 랭킹을 통해 chunk_id를 선택하고 추가 할당 제거 ( #34588 ) release(core): 1.2.6 ( #34586 ) chore(core): Pydantic v2 메서드를 사용하도록 LangChainTracer 업데이트 ( #34541 ) docs(core): 내부 헬퍼 함수(helper functions)에 docstring 추가 ( #34525 ) docs(core): content.py docstring 갱신 ( #34546 ) chore(deps): mypy를 v1.19로, ruff를 v1.14로 업데이트 ( #34521 ) refactor(core): 누락된 일부 제네릭 타입 (generic types) 수정 ( #31658 ) style(core): ruff RUF012 규칙 추가 ( #34492 ) fix(core): (메시지 클래스, 템플
AI 자동 생성 콘텐츠
본 콘텐츠는 LangChain Releases의 원문을 AI가 자동으로 요약·번역·분석한 것입니다. 원 저작권은 원저작자에게 있으며, 정확한 내용은 반드시 원문을 확인해 주세요.
원문 바로가기