# Tool calling using Offline Inference?

**URL:** https://discuss.vllm.ai/t/tool-calling-using-offline-inference/452
**Category:** Tool Calling
**Created:** [April 14, 2025, 2:24pm UTC](https://discuss.vllm.ai/t/tool-calling-using-offline-inference/452 "2025-04-14T14:24:31Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![bkuster](https://avatars.discourse-cdn.com/v4/letter/b/7ab992/32.png) [@bkuster](https://discuss.vllm.ai/u/bkuster)
#### Post date: [April 14, 2025, 2:24pm UTC](https://discuss.vllm.ai/t/tool-calling-using-offline-inference/452/1 "2025-04-14T14:24:31Z")

</div>

Hello,  
is it possible to use Tool Calling using the offline inference paradigm, e.g. using the LLM class?  
I noticed guided decoding supports JSON schema but in case of multiple tools, each obviously has a separate JSON schema.

Alternatively, is it possible to start and stop the online inference vllm server from within python/jupyter notebook?

Thanks and best regards

---

<div class="post-metadata">

### Author: ![DystopianJunkyardKid](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.vllm.ai/dystopianjunkyardkid/32/67_2.png) [@DystopianJunkyardKid](https://discuss.vllm.ai/u/DystopianJunkyardKid)
#### Post date: [April 14, 2025, 3:40pm UTC](https://discuss.vllm.ai/t/tool-calling-using-offline-inference/452/2 "2025-04-14T15:40:00Z")

</div>

Personally, I separate my ‘server’ part and ‘client’ (even on the same machine via calling localhost).  
I write entire ‘client’ by bash.

There are at least (without considering specific guide written in system prompt) two parts you should aware for tool calling:

1. ‘tools’ definitions delivered to LLM, let LLM know what/how language (tools) they can ‘speak’ of.
2. Your client part for detecting if LLM ‘speak’ in that way (might be many tools at once), looping through tools(may or may not need a result return to LLM).

It is pretty complex though. You’d better ask some big and recent enough LLM for this (it really know what schema at least itself trained of).
