Skip to content

Commit 6c99c84

Browse files
authored
fix(tools): fixed zendesk tools, kb upload failure for md files, stronger typing (#2297)
* fix(tools): fixed zendesk tools, kb upload failure for md files, stronger typing * ack PR comments
1 parent 37d7902 commit 6c99c84

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+746
-714
lines changed

apps/docs/components/icons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4151,7 +4151,7 @@ export function DuckDuckGoIcon(props: SVGProps<SVGSVGElement>) {
41514151
return (
41524152
<svg {...props} xmlns='http://www.w3.org/2000/svg' viewBox='-108 -108 216 216'>
41534153
<circle r='108' fill='#d53' />
4154-
<circle r='96' fill='none' stroke='#ffffff' stroke-width='7' />
4154+
<circle r='96' fill='none' stroke='#ffffff' strokeWidth={7} />
41554155
<path
41564156
d='M-32-55C-62-48-51-6-51-6l19 93 7 3M-39-73h-8l11 4s-11 0-11 7c24-1 35 5 35 5'
41574157
fill='#ddd'

apps/docs/content/docs/en/tools/thinking.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Processes a provided thought/instruction, making it available for subsequent ste
4040

4141
| Parameter | Type | Required | Description |
4242
| --------- | ---- | -------- | ----------- |
43-
| `thought` | string | Yes | The thought process or instruction provided by the user in the Thinking Step block. |
43+
| `thought` | string | Yes | Your internal reasoning, analysis, or thought process. Use this to think through the problem step by step before responding. |
4444

4545
#### Output
4646

apps/docs/content/docs/en/tools/translate.mdx

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -34,38 +34,30 @@ Integrate Translate into the workflow. Can translate text to any language.
3434

3535
## Tools
3636

37-
### `openai_chat`
37+
### `llm_chat`
3838

39-
#### Input
40-
41-
| Parameter | Type | Required | Description |
42-
| --------- | ---- | -------- | ----------- |
43-
44-
#### Output
45-
46-
| Parameter | Type | Description |
47-
| --------- | ---- | ----------- |
48-
| `content` | string | Translated text |
49-
| `model` | string | Model used |
50-
| `tokens` | json | Token usage |
51-
52-
### `anthropic_chat`
53-
54-
55-
### `google_chat`
39+
Send a chat completion request to any supported LLM provider
5640

5741
#### Input
5842

5943
| Parameter | Type | Required | Description |
6044
| --------- | ---- | -------- | ----------- |
45+
| `model` | string | Yes | The model to use \(e.g., gpt-4o, claude-sonnet-4-5, gemini-2.0-flash\) |
46+
| `systemPrompt` | string | No | System prompt to set the behavior of the assistant |
47+
| `context` | string | Yes | The user message or context to send to the model |
48+
| `apiKey` | string | No | API key for the provider \(uses platform key if not provided for hosted models\) |
49+
| `temperature` | number | No | Temperature for response generation \(0-2\) |
50+
| `maxTokens` | number | No | Maximum tokens in the response |
51+
| `azureEndpoint` | string | No | Azure OpenAI endpoint URL |
52+
| `azureApiVersion` | string | No | Azure OpenAI API version |
6153

6254
#### Output
6355

6456
| Parameter | Type | Description |
6557
| --------- | ---- | ----------- |
66-
| `content` | string | Translated text |
67-
| `model` | string | Model used |
68-
| `tokens` | json | Token usage |
58+
| `content` | string | The generated response content |
59+
| `model` | string | The model used for generation |
60+
| `tokens` | object | Token usage information |
6961

7062

7163

apps/docs/content/docs/en/tools/wordpress.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@ Upload a media file (image, video, document) to WordPress.com
254254
| Parameter | Type | Required | Description |
255255
| --------- | ---- | -------- | ----------- |
256256
| `siteId` | string | Yes | WordPress.com site ID or domain \(e.g., 12345678 or mysite.wordpress.com\) |
257-
| `file` | string | Yes | Base64 encoded file data or URL to fetch file from |
258-
| `filename` | string | Yes | Filename with extension \(e.g., image.jpg\) |
257+
| `file` | file | No | File to upload \(UserFile object\) |
258+
| `filename` | string | No | Optional filename override \(e.g., image.jpg\) |
259259
| `title` | string | No | Media title |
260260
| `caption` | string | No | Media caption |
261261
| `altText` | string | No | Alternative text for accessibility |

apps/docs/content/docs/en/tools/youtube.mdx

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -173,25 +173,6 @@ Get videos from a YouTube playlist.
173173
| --------- | ---- | ----------- |
174174
| `items` | array | Array of videos in the playlist |
175175

176-
### `youtube_related_videos`
177-
178-
Find videos related to a specific YouTube video.
179-
180-
#### Input
181-
182-
| Parameter | Type | Required | Description |
183-
| --------- | ---- | -------- | ----------- |
184-
| `videoId` | string | Yes | YouTube video ID to find related videos for |
185-
| `maxResults` | number | No | Maximum number of related videos to return \(1-50\) |
186-
| `pageToken` | string | No | Page token for pagination |
187-
| `apiKey` | string | Yes | YouTube API Key |
188-
189-
#### Output
190-
191-
| Parameter | Type | Description |
192-
| --------- | ---- | ----------- |
193-
| `items` | array | Array of related videos |
194-
195176
### `youtube_comments`
196177

197178
Get comments from a YouTube video.

apps/docs/content/docs/en/tools/zendesk.mdx

Lines changed: 58 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ Retrieve a list of tickets from Zendesk with optional filtering
7676

7777
| Parameter | Type | Description |
7878
| --------- | ---- | ----------- |
79-
| `success` | boolean | Operation success status |
80-
| `output` | object | Tickets data and metadata |
79+
| `tickets` | array | Array of ticket objects |
80+
| `paging` | object | Pagination information |
81+
| `metadata` | object | Operation metadata |
8182

8283
### `zendesk_get_ticket`
8384

@@ -96,8 +97,8 @@ Get a single ticket by ID from Zendesk
9697

9798
| Parameter | Type | Description |
9899
| --------- | ---- | ----------- |
99-
| `success` | boolean | Operation success status |
100-
| `output` | object | Ticket data |
100+
| `ticket` | object | Ticket object |
101+
| `metadata` | object | Operation metadata |
101102

102103
### `zendesk_create_ticket`
103104

@@ -125,8 +126,8 @@ Create a new ticket in Zendesk with support for custom fields
125126

126127
| Parameter | Type | Description |
127128
| --------- | ---- | ----------- |
128-
| `success` | boolean | Operation success status |
129-
| `output` | object | Created ticket data |
129+
| `ticket` | object | Created ticket object |
130+
| `metadata` | object | Operation metadata |
130131

131132
### `zendesk_create_tickets_bulk`
132133

@@ -145,8 +146,8 @@ Create multiple tickets in Zendesk at once (max 100)
145146

146147
| Parameter | Type | Description |
147148
| --------- | ---- | ----------- |
148-
| `success` | boolean | Operation success status |
149-
| `output` | object | Bulk create job status |
149+
| `jobStatus` | object | Job status object |
150+
| `metadata` | object | Operation metadata |
150151

151152
### `zendesk_update_ticket`
152153

@@ -174,8 +175,8 @@ Update an existing ticket in Zendesk with support for custom fields
174175

175176
| Parameter | Type | Description |
176177
| --------- | ---- | ----------- |
177-
| `success` | boolean | Operation success status |
178-
| `output` | object | Updated ticket data |
178+
| `ticket` | object | Updated ticket object |
179+
| `metadata` | object | Operation metadata |
179180

180181
### `zendesk_update_tickets_bulk`
181182

@@ -199,8 +200,8 @@ Update multiple tickets in Zendesk at once (max 100)
199200

200201
| Parameter | Type | Description |
201202
| --------- | ---- | ----------- |
202-
| `success` | boolean | Operation success status |
203-
| `output` | object | Bulk update job status |
203+
| `jobStatus` | object | Job status object |
204+
| `metadata` | object | Operation metadata |
204205

205206
### `zendesk_delete_ticket`
206207

@@ -219,8 +220,8 @@ Delete a ticket from Zendesk
219220

220221
| Parameter | Type | Description |
221222
| --------- | ---- | ----------- |
222-
| `success` | boolean | Operation success status |
223-
| `output` | object | Delete confirmation |
223+
| `deleted` | boolean | Deletion success |
224+
| `metadata` | object | Operation metadata |
224225

225226
### `zendesk_merge_tickets`
226227

@@ -241,8 +242,8 @@ Merge multiple tickets into a target ticket
241242

242243
| Parameter | Type | Description |
243244
| --------- | ---- | ----------- |
244-
| `success` | boolean | Operation success status |
245-
| `output` | object | Merge job status |
245+
| `jobStatus` | object | Job status object |
246+
| `metadata` | object | Operation metadata |
246247

247248
### `zendesk_get_users`
248249

@@ -264,8 +265,9 @@ Retrieve a list of users from Zendesk with optional filtering
264265

265266
| Parameter | Type | Description |
266267
| --------- | ---- | ----------- |
267-
| `success` | boolean | Operation success status |
268-
| `output` | object | Users data and metadata |
268+
| `users` | array | Array of user objects |
269+
| `paging` | object | Pagination information |
270+
| `metadata` | object | Operation metadata |
269271

270272
### `zendesk_get_user`
271273

@@ -284,8 +286,8 @@ Get a single user by ID from Zendesk
284286

285287
| Parameter | Type | Description |
286288
| --------- | ---- | ----------- |
287-
| `success` | boolean | Operation success status |
288-
| `output` | object | User data |
289+
| `user` | object | User object |
290+
| `metadata` | object | Operation metadata |
289291

290292
### `zendesk_get_current_user`
291293

@@ -303,8 +305,8 @@ Get the currently authenticated user from Zendesk
303305

304306
| Parameter | Type | Description |
305307
| --------- | ---- | ----------- |
306-
| `success` | boolean | Operation success status |
307-
| `output` | object | Current user data |
308+
| `user` | object | Current user object |
309+
| `metadata` | object | Operation metadata |
308310

309311
### `zendesk_search_users`
310312

@@ -326,8 +328,9 @@ Search for users in Zendesk using a query string
326328

327329
| Parameter | Type | Description |
328330
| --------- | ---- | ----------- |
329-
| `success` | boolean | Operation success status |
330-
| `output` | object | Users search results |
331+
| `users` | array | Array of user objects |
332+
| `paging` | object | Pagination information |
333+
| `metadata` | object | Operation metadata |
331334

332335
### `zendesk_create_user`
333336

@@ -353,8 +356,8 @@ Create a new user in Zendesk
353356

354357
| Parameter | Type | Description |
355358
| --------- | ---- | ----------- |
356-
| `success` | boolean | Operation success status |
357-
| `output` | object | Created user data |
359+
| `user` | object | Created user object |
360+
| `metadata` | object | Operation metadata |
358361

359362
### `zendesk_create_users_bulk`
360363

@@ -373,8 +376,8 @@ Create multiple users in Zendesk using bulk import
373376

374377
| Parameter | Type | Description |
375378
| --------- | ---- | ----------- |
376-
| `success` | boolean | Operation success status |
377-
| `output` | object | Bulk creation job status |
379+
| `jobStatus` | object | Job status object |
380+
| `metadata` | object | Operation metadata |
378381

379382
### `zendesk_update_user`
380383

@@ -401,8 +404,8 @@ Update an existing user in Zendesk
401404

402405
| Parameter | Type | Description |
403406
| --------- | ---- | ----------- |
404-
| `success` | boolean | Operation success status |
405-
| `output` | object | Updated user data |
407+
| `user` | object | Updated user object |
408+
| `metadata` | object | Operation metadata |
406409

407410
### `zendesk_update_users_bulk`
408411

@@ -421,8 +424,8 @@ Update multiple users in Zendesk using bulk update
421424

422425
| Parameter | Type | Description |
423426
| --------- | ---- | ----------- |
424-
| `success` | boolean | Operation success status |
425-
| `output` | object | Bulk update job status |
427+
| `jobStatus` | object | Job status object |
428+
| `metadata` | object | Operation metadata |
426429

427430
### `zendesk_delete_user`
428431

@@ -441,8 +444,8 @@ Delete a user from Zendesk
441444

442445
| Parameter | Type | Description |
443446
| --------- | ---- | ----------- |
444-
| `success` | boolean | Operation success status |
445-
| `output` | object | Deleted user data |
447+
| `deleted` | boolean | Deletion success |
448+
| `metadata` | object | Operation metadata |
446449

447450
### `zendesk_get_organizations`
448451

@@ -462,8 +465,9 @@ Retrieve a list of organizations from Zendesk
462465

463466
| Parameter | Type | Description |
464467
| --------- | ---- | ----------- |
465-
| `success` | boolean | Operation success status |
466-
| `output` | object | Organizations data and metadata |
468+
| `organizations` | array | Array of organization objects |
469+
| `paging` | object | Pagination information |
470+
| `metadata` | object | Operation metadata |
467471

468472
### `zendesk_get_organization`
469473

@@ -482,8 +486,8 @@ Get a single organization by ID from Zendesk
482486

483487
| Parameter | Type | Description |
484488
| --------- | ---- | ----------- |
485-
| `success` | boolean | Operation success status |
486-
| `output` | object | Organization data |
489+
| `organization` | object | Organization object |
490+
| `metadata` | object | Operation metadata |
487491

488492
### `zendesk_autocomplete_organizations`
489493

@@ -504,8 +508,9 @@ Autocomplete organizations in Zendesk by name prefix (for name matching/autocomp
504508

505509
| Parameter | Type | Description |
506510
| --------- | ---- | ----------- |
507-
| `success` | boolean | Operation success status |
508-
| `output` | object | Organizations search results |
511+
| `organizations` | array | Array of organization objects |
512+
| `paging` | object | Pagination information |
513+
| `metadata` | object | Operation metadata |
509514

510515
### `zendesk_create_organization`
511516

@@ -529,8 +534,8 @@ Create a new organization in Zendesk
529534

530535
| Parameter | Type | Description |
531536
| --------- | ---- | ----------- |
532-
| `success` | boolean | Operation success status |
533-
| `output` | object | Created organization data |
537+
| `organization` | object | Created organization object |
538+
| `metadata` | object | Operation metadata |
534539

535540
### `zendesk_create_organizations_bulk`
536541

@@ -549,8 +554,8 @@ Create multiple organizations in Zendesk using bulk import
549554

550555
| Parameter | Type | Description |
551556
| --------- | ---- | ----------- |
552-
| `success` | boolean | Operation success status |
553-
| `output` | object | Bulk creation job status |
557+
| `jobStatus` | object | Job status object |
558+
| `metadata` | object | Operation metadata |
554559

555560
### `zendesk_update_organization`
556561

@@ -575,8 +580,8 @@ Update an existing organization in Zendesk
575580

576581
| Parameter | Type | Description |
577582
| --------- | ---- | ----------- |
578-
| `success` | boolean | Operation success status |
579-
| `output` | object | Updated organization data |
583+
| `organization` | object | Updated organization object |
584+
| `metadata` | object | Operation metadata |
580585

581586
### `zendesk_delete_organization`
582587

@@ -595,8 +600,8 @@ Delete an organization from Zendesk
595600

596601
| Parameter | Type | Description |
597602
| --------- | ---- | ----------- |
598-
| `success` | boolean | Operation success status |
599-
| `output` | object | Deleted organization data |
603+
| `deleted` | boolean | Deletion success |
604+
| `metadata` | object | Operation metadata |
600605

601606
### `zendesk_search`
602607

@@ -619,8 +624,9 @@ Unified search across tickets, users, and organizations in Zendesk
619624

620625
| Parameter | Type | Description |
621626
| --------- | ---- | ----------- |
622-
| `success` | boolean | Operation success status |
623-
| `output` | object | Search results |
627+
| `results` | array | Array of result objects |
628+
| `paging` | object | Pagination information |
629+
| `metadata` | object | Operation metadata |
624630

625631
### `zendesk_search_count`
626632

@@ -639,8 +645,8 @@ Count the number of search results matching a query in Zendesk
639645

640646
| Parameter | Type | Description |
641647
| --------- | ---- | ----------- |
642-
| `success` | boolean | Operation success status |
643-
| `output` | object | Search count result |
648+
| `count` | number | Number of matching results |
649+
| `metadata` | object | Operation metadata |
644650

645651

646652

0 commit comments

Comments
 (0)