설치
먼저,Action Server를 설정하고 Action을 생성하는 방법은 Robocorp Quickstart를 참조하세요.
LangChain 애플리케이션에서 langchain-robocorp 패키지를 설치합니다:
Action Server를 생성하면,
action.py를 포함한 파일들이 있는 디렉토리가 생성됩니다.
여기에 표시된 대로 python 함수를 action으로 추가할 수 있습니다.
action.py에 더미 함수를 추가해 보겠습니다.
http://localhost:8080에서 실행 중인 서버로 이동하여 UI를 사용해 함수를 실행하여 로컬에서 테스트합니다.
환경 설정
선택적으로 다음 환경 변수를 설정할 수 있습니다:LANGSMITH_TRACING=true: 각 Action Server action 실행 로그에 바인딩할 수 있는 LangSmith 로그 실행 추적을 활성화합니다. 자세한 내용은 LangSmith documentation을 참조하세요.
사용법
위에서http://localhost:8080에서 실행되는 로컬 action server를 시작했습니다.
Single input tools
기본적으로toolkit.get_tools()는 action을 Structured Tools로 반환합니다.
single input tool을 반환하려면 입력 처리에 사용할 Chat model을 전달하세요.
Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.