-
Notifications
You must be signed in to change notification settings - Fork 3.7k
feat(fathom): add list meeting types tool and missing list-meetings filters #5359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+519
−3
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
56fc17f
feat(fathom): add list meeting types tool and missing list-meetings f…
waleedlatif1 4e1478b
fix(fathom): expose meeting_url/highlights in outputs, stop force-sen…
waleedlatif1 4f494fa
fix(fathom): never send calendar_invitees_domains_type=all to the API
waleedlatif1 7981717
fix(fathom): fully expose list_meetings meeting fields in outputs schema
waleedlatif1 d94d910
fix(fathom): mark recording_id optional in list_meetings outputs
waleedlatif1 08619ea
fix(fathom): mark calendar_invitees email optional in list_meetings o…
waleedlatif1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,96 @@ | ||
| import type { | ||
| FathomListMeetingTypesParams, | ||
| FathomListMeetingTypesResponse, | ||
| } from '@/tools/fathom/types' | ||
| import type { ToolConfig } from '@/tools/types' | ||
|
|
||
| export const listMeetingTypesTool: ToolConfig< | ||
| FathomListMeetingTypesParams, | ||
| FathomListMeetingTypesResponse | ||
| > = { | ||
| id: 'fathom_list_meeting_types', | ||
| name: 'Fathom List Meeting Types', | ||
| description: 'List meeting types configured in your Fathom organization.', | ||
| version: '1.0.0', | ||
|
|
||
| params: { | ||
| apiKey: { | ||
| type: 'string', | ||
| required: true, | ||
| visibility: 'user-only', | ||
| description: 'Fathom API Key', | ||
| }, | ||
| cursor: { | ||
| type: 'string', | ||
| required: false, | ||
| visibility: 'user-or-llm', | ||
| description: 'Pagination cursor from a previous response', | ||
| }, | ||
| }, | ||
|
|
||
| request: { | ||
| url: (params) => { | ||
| const url = new URL('https://api.fathom.ai/external/v1/meeting_types') | ||
| if (params.cursor) url.searchParams.append('cursor', params.cursor) | ||
| return url.toString() | ||
| }, | ||
| method: 'GET', | ||
| headers: (params) => ({ | ||
| 'X-Api-Key': params.apiKey, | ||
| 'Content-Type': 'application/json', | ||
| }), | ||
| }, | ||
|
|
||
| transformResponse: async (response: Response) => { | ||
| if (!response.ok) { | ||
| const errorData = await response.json().catch(() => ({})) | ||
| return { | ||
| success: false, | ||
| error: | ||
| (errorData as Record<string, string>).message || | ||
| `Fathom API error: ${response.status} ${response.statusText}`, | ||
| output: { | ||
| meetingTypes: [], | ||
| next_cursor: null, | ||
| }, | ||
| } | ||
| } | ||
|
|
||
| const data = await response.json() | ||
| const meetingTypes = (data.items ?? []).map( | ||
| (meetingType: { name?: string; status?: string; created_at?: string }) => ({ | ||
| name: meetingType.name ?? '', | ||
| status: meetingType.status ?? '', | ||
| created_at: meetingType.created_at ?? '', | ||
| }) | ||
| ) | ||
|
|
||
| return { | ||
| success: true, | ||
| output: { | ||
| meetingTypes, | ||
| next_cursor: data.next_cursor ?? null, | ||
| }, | ||
| } | ||
| }, | ||
|
|
||
| outputs: { | ||
| meetingTypes: { | ||
| type: 'array', | ||
| description: 'List of meeting types', | ||
| items: { | ||
| type: 'object', | ||
| properties: { | ||
| name: { type: 'string', description: 'Meeting type name' }, | ||
| status: { type: 'string', description: 'Meeting type status: active or inactive' }, | ||
| created_at: { type: 'string', description: 'Date the meeting type was created' }, | ||
| }, | ||
| }, | ||
| }, | ||
| next_cursor: { | ||
| type: 'string', | ||
| description: 'Pagination cursor for next page', | ||
| optional: true, | ||
| }, | ||
| }, | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.