-
Notifications
You must be signed in to change notification settings - Fork 6
Tools (Function Calling)
Takashi Iwamoto edited this page Mar 4, 2025
·
5 revisions
- Create a Python module with your tools.
- Set your module name in the environment variable
LITELLM_TOOLS_MODULE_NAME
. - Run Collmbo.
- Send a message in Slack that triggers tool execution.
You can try it with examples/tools.py
. This sample returns weather information for a given city.
$ cat env
SLACK_APP_TOKEN=xapp-1-...
SLACK_BOT_TOKEN=xoxb-...
OPENAI_API_KEY=sk-...
LITELLM_MODEL=gpt-4o
LITELLM_TOOLS_MODULE_NAME=examples.tools
$ docker run -it --env-file ./env ghcr.io/iwamot/collmbo:latest-slim