# \#tool-support

**URL:** https://discuss.pytorch.kr/tag/tool-support/3588.md

[최신](https://discuss.pytorch.kr/latest.md) · [카테고리](https://discuss.pytorch.kr/categories.md) · [태그](https://discuss.pytorch.kr/tags.md)

---

## [ollama, 도구 호출 기능(tool support) 추가](https://discuss.pytorch.kr/t/ollama-tool-support/5072)

<div class="topic-metadata">

**Author:** [@9bow](https://discuss.pytorch.kr/u/9bow)\
**댓글:** 0\
**마지막 업데이트:** [8월 20, 2024, 10:04오후 UTC](https://discuss.pytorch.kr/t/ollama-tool-support/5072 "2024-08-20T22:04:34Z")

</div>

ollama의 tool support 기능 소개 Ollama는 이제 Llama 3.1과 같은 인기 모델과 함께 도구 호출을 지원합니다. 이를 통해 모델이 주어진 프롬프트에 대해 알고 있는 도구를 사용하여 더 복잡한 작업을 수행하거나 외부 세계와 상호작용할 수 있습니다. 예를 들어, 다음과 같은 도구들을 사용할 수 있습니다: 함수와 API 호출(Functions and APIs) 웹 브라우징 (Web browsing) 코드 해석기 (Code interpreter) 기타 다양한 도구들 https://github.com/user-attachments/assets/aea4d7c1-f1be-41fd-9077-023d37a9d052 도구 호출 예시 도구 호출을 활성화하려면 Ollama의 API에서 tools 필드를 통해 사용 가능한 도구 목록을 제공해야 합니다. 아래는 예시 코드입니다: import ollama response = ollama.chat( model='llama3.1', messages=\[{'role': 'user', 'content': 'What is the weather in Toronto?'}\], tools=\[{ 'type': 'function', 'function': { 'name': 'get\_current\_weather', 'description': 'Get the current weather for a city', 'parameters': { 'type': 'object', 'properties': { 'city': { 'type': 'string', 'description': 'The name of the city', …
