14. 코드 실행 결과는 터미널 창에 다음과 같이 나타납니다.
코드
PS C:\Users\JYSEO\test-server> & C:/Python313/python.exe c:/Users/JYSEO/test-server/function_calling.py
c:\Users\JYSEO\test-server\function_calling.py:26: LangChainDeprecationWarning: LangChain agents will continue to be supported, but it is recommended for new use cases to be built with LangGraph. LangGraph offers a more flexible and full-featured framework for building agents, including support for tool-calling, persistence of state, and human-in-the-loop workflows. For details, refer to the `LangGraph documentation <https://langchain-ai.github.io/langgraph/>`_ as well as guides for `Migrating from AgentExecutor <https://python.langchain.com/
docs/how_to/migrate_agent/>`_ and LangGraph's `Pre-built ReAct agent <https://langchain-ai.github.io/langgraph/how-tos/create-react-agent/>`_.
agent = initialize_agent(
> Entering new AgentExecutor chain...
Invoking: `subtract` with `{'a': 7, 'b': 3}`
47에서 3을 빼면 4입니다.
> Finished chain.
응답: {'input': '7에서 3을 빼줘', 'output': '7에서 3을 빼면 4입니다.'}