LangChain Code 노드 메서드
LangChain Code 노드에서 일반 작업을 쉽게 수행하기 위해 n8n이 제공하는 메서드 레퍼런스입니다.
n8n은 LangChain Code 노드 에서 일반 작업을 더 쉽게 수행할 수 있도록 이 메서드들을 제공합니다. LangChain Code 노드 전용 이 변수들은 LangChain Code 노드의 표현식에서만 사용할 수 있습니다. 다른 노드에서는 사용할 수 없습니다. 메서드 설명 this.addInputData(inputName, data) 지정된 비메인 입력의 데이터를 채웁니다. 데이터 모킹에 유용합니다. inputName 은 입력 연결 타입이며 다음 중 하나여야 합니다: ai_agent , ai_chain , ai_document , ai_embedding , ai_languageModel , ai_memory , ai_outputParser , ai_retriever , ai_textSplitter , ai_tool , ai_vectorRetriever , ai_vectorStore data 는 추가할 데이터를 포함합니다. n8n이 기대하는 데이터 구조에 대한 정보는 데이터 구조 를 참조하세요. this.addOutputData(outputName, data) 지정된 비메인 출력의 데이터를 채웁니다. 데이터 모킹에 유용합니다. outputName 은 입력 연결 타입이며 다음 중 하나여야 합니다: ai_agent , ai_chain , ai_document , ai_embedding , ai_languageModel , ai_memory , ai_outputParser , ai_retriever , ai_textSplitter , ai_tool , ai_vectorRetriever , ai_vectorStore data 는 추가할 데이터를 포함합니다. n8n이 기대하는 데이터 구조에 대한 정보는 데이터 구조 를 참조하세요. this.getInputConnectionData(inputName, itemIndex, inputIndex?) 지정된 비메인 입력에서 데이터를 가져옵니다. inputName 은 입력 연결 타입이며 다음 중 하나여야 합니다: ai_agent , ai_chain , ai_document , ai_embedding , ai_languageModel , ai_memory , ai_outputParser , ai_retriever , ai_textSplitter , ai_tool , ai_vectorRetriever , ai_vectorStore itemIndex 는 항상 0 이어야 합니다(이 파라미터는 향후 기능에서 사용될 예정입니다) 지정된 입력에 둘 이상의 노드가 연결된 경우 inputIndex 를 사용합니다. this.getInputData(inputIndex?, inputName?) 메인 입력에서 데이터를 가져옵니다. this.getNode() 현재 노드를 가져옵니다. this.getNodeOutputs() 현재 노드의 출력을 가져옵니다. this.getExecutionCancelSignal() 워크플로우가 중단될 때 함수 실행을 중지하는 데 사용합니다. 대부분의 경우 n8n이 이를 처리하지만, 자체 체인 또는
