You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Define a JSON Schema for each custom tool and pass the list to your LLM. The schema format below matches what Scalekit returns for built-in tools, so it works directly with the Anthropic API. For OpenAI, rename `input_schema` to `parameters`.
150
-
151
-
<TabssyncKey="tech-stack">
152
-
<TabItemlabel="Python">
153
-
```python
154
-
custom_tools = [
155
-
{
156
-
"name": "gmail_list_filters",
157
-
"description": "List Gmail filters configured for the current user",
158
-
"input_schema": {
159
-
"type": "object",
160
-
"properties": {"identifier": {"type": "string"}},
161
-
"required": ["identifier"],
162
-
},
163
-
},
164
-
{
165
-
"name": "slack_send_message",
166
-
"description": "Send a message to a Slack channel on behalf of the user",
0 commit comments