분류 전체보기207 [네트워크] 포트에 사용되는 프로세스 확인 - powershell 에서 실행 netstat -ano | findstr ":포트번호" Get-Process -Id 2025. 12. 31. [Tidal] PC 타이달 음원 저장 https://github.com/exislow/tidal-dl-ng GitHub - exislow/tidal-dl-ng: Multithreaded TIDAL Media Downloader Next Generation! Up to HiRes Lossless / TIDAL MAX 24-bit, 192Multithreaded TIDAL Media Downloader Next Generation! Up to HiRes Lossless / TIDAL MAX 24-bit, 192 kHz. - exislow/tidal-dl-nggithub.comhttps://github.com/exislow/tidal-dl-ng/releases Releases · exislow/tidal-dl-ngMultithreaded TIDA.. 2025. 10. 21. [AI] LangGraph의 tools_condition 📌 개념 설명tools_condition은 LangGraph에서 에이전트 워크플로우의 라우팅을 자동으로 처리하는 사전 구축된 조건 함수입니다.주요 역할:LLM이 도구(tool)를 호출해야 하는지 판단도구 호출이 필요하면 → tools 노드로 라우팅도구 호출이 없으면 → 종료(END)로 라우팅tool_calls가 있는지 자동으로 확인하여 분기 처리🔧 기본 사용법1. 간단한 예제 pythonfrom langgraph.graph import StateGraph, MessagesState, START, ENDfrom langgraph.prebuilt import tools_condition, ToolNodefrom langchain_anthropic import ChatAnthropicfrom langch.. 2025. 10. 13. [AI] ChatPromptTemplate.from_messages ChatPromptTemplate.from_messages(...)가 받는 메시지 포맷(튜플/템플릿/메시지 객체), template_format(f-string/mustache/jinja2), MessagesPlaceholder 사용법은 문서와 일치합니다. 1) 기본형: 시스템+휴먼 (f-string) from langchain_core.prompts import ( ChatPromptTemplate, SystemMessagePromptTemplate, HumanMessagePromptTemplate,)SYSTEM = ( "너는 AI 서비스를 개발하는 파이썬 시니어 엔지니어다. " "답변은 한국어, 정확하고 간결하게. 추정은 '추정'이라고 표시해.")prompt = ChatPr.. 2025. 10. 13. [Python] Sequence 1. 기본 개념Sequence는 Python의 타입 힌팅 시스템에서 순서가 있는 읽기 전용 컬렉션을 나타냅니다. pythonfrom typing import Sequence# Sequence가 포함하는 타입들:# - list: [1, 2, 3]# - tuple: (1, 2, 3)# - str: "hello"# - range: range(10)# - bytes: b"data"# - 그 외 순서가 있는 컬렉션2. 핵심 특징특징 1: 읽기 전용 pythonfrom typing import Sequencedef process(items: Sequence[int]) -> int: # ✅ 가능한 작업 first = items[0] # 인덱싱 length = len(items) .. 2025. 10. 12. [AI] add_messages 개념add_messages는 LangGraph에서 제공하는 reducer 함수로, 메시지 리스트를 지능적으로 병합합니다. pythonfrom langgraph.graph import add_messages# 기본 사용법from typing import Annotated, TypedDictclass State(TypedDict): messages: Annotated[list, add_messages]핵심 동작 원리1. 기본 병합 (누적) pythonfrom langgraph.graph import add_messages# 초기 상태existing = [ {"role": "user", "content": "안녕하세요"}]# 새 메시지new = [ {"role": "assistant", ".. 2025. 10. 12. 이전 1 2 3 4 ··· 35 다음