File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 31312. 다음 원칙을 따릅니다:
3232 - 질문이 통관/관세 관련이 **아닌 경우**: 정중히 거절하는 짧은 메시지만 출력합니다.
3333 - 질문이 통관/관세 관련인 경우: 주어진 근거 자료(qna_agent 결과)만 활용하여 요약된 정보를 제공합니다.
34+ - 답변 이후 활용한 근거 및 조항에 대해 출처를 반드시 밝혀야 합니다.
34353. 답변 말미에 반드시 아래의 **책임 한계 안내 문구**를 포함해야 합니다.
35364. Chain-of-Thought(COT)는 내부 추론 과정에서만 활용하며, 최종 출력에는 포함하지 않습니다.
3637
Original file line number Diff line number Diff line change 1+ import sys
2+ sys .path .append ('.' ) # 루트에서 실행 시 모듈 경로 문제 방지
3+
4+ from core .graphs .runner import run_customs_agent
5+
6+ QUESTIONS = [
7+ '간이통관이 뭐야?' ,
8+ '곤약젤리 가져와도 돼?'
9+ ]
10+
11+ def test_langgraph_e2e ():
12+ for q in QUESTIONS :
13+ print (f'\n [질문] { q } ' )
14+ result = run_customs_agent (q )
15+ answer = result .get ('final_response' , '' )
16+ print (f'[답변] { answer } ' )
17+ assert answer , 'final_response가 비어있음!'
18+
19+ if __name__ == '__main__' :
20+ test_langgraph_e2e ()
21+ print ('\n 테스트 완료!' )
You can’t perform that action at this time.
0 commit comments