Skip to content

Commit 9a3d447

Browse files
authored
Fix Ashby tools generated with dict arguments (#16)
Tools re-generated with [Moar fix #34](ArcadeAI/moar-agent#34).
1 parent 843aa79 commit 9a3d447

21 files changed

+3122
-2800
lines changed

servers/ashby_api/arcade_ashby_api/moar/Ashby.json

Lines changed: 131 additions & 197 deletions
Large diffs are not rendered by default.

servers/ashby_api/arcade_ashby_api/tools/__init__.py

Lines changed: 2884 additions & 2441 deletions
Large diffs are not rendered by default.

servers/ashby_api/arcade_ashby_api/tools/request_body_schemas.py

Lines changed: 15 additions & 0 deletions
Large diffs are not rendered by default.

servers/ashby_api/arcade_ashby_api/wrapper_tools/AddHiringTeamMember.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "AddHiringTeamMember",
33
"fully_qualified_name": "[email protected]",
4-
"description": "Add a user to the hiring team for an application.\n\nCall this tool to add an Ashby user to the hiring team at the application level. Suitable for managing team members in the hiring process. Requires 'candidateWrite' permission.",
4+
"description": "Add a user to the hiring team for an application.\n\nThis tool adds an Ashby user to the hiring team at the application level. Requires candidateWrite permission.",
55
"toolkit": {
66
"name": "ArcadeAshbyApi",
77
"description": null,
@@ -12,7 +12,7 @@
1212
{
1313
"name": "hiring_team_member_details",
1414
"required": false,
15-
"description": "A JSON object containing 'applicationId', 'teamMemberId', and 'roleId'. These IDs specify the application, team member, and role for adding to the hiring team.",
15+
"description": "Details of the hiring team member to be added, including applicationId, teamMemberId, and roleId.",
1616
"value_schema": {
1717
"val_type": "json",
1818
"inner_val_type": null,
@@ -148,7 +148,7 @@
148148
}
149149
],
150150
"request_body_spec": "{\n \"content\": {\n \"application/json\": {\n \"schema\": {\n \"required\": [\n \"applicationId\",\n \"teamMemberId\",\n \"roleId\"\n ],\n \"properties\": {\n \"applicationId\": {\n \"allOf\": [\n {\n \"description\": \"The application to assign the user a role on.\"\n },\n {\n \"type\": \"object\",\n \"description\": \"Schema reference broken: #/paths/~1interviewerPool.addUser/post/requestBody/content/application~1json/schema/properties/userId\",\n \"additionalProperties\": true,\n \"x-moar-broken-reference\": \"#/paths/~1interviewerPool.addUser/post/requestBody/content/application~1json/schema/properties/userId\"\n }\n ]\n },\n \"teamMemberId\": {\n \"allOf\": [\n {\n \"description\": \"The id of the user to assign the role to.\"\n },\n {\n \"type\": \"object\",\n \"description\": \"Schema reference broken: #/paths/~1interviewerPool.addUser/post/requestBody/content/application~1json/schema/properties/userId\",\n \"additionalProperties\": true,\n \"x-moar-broken-reference\": \"#/paths/~1interviewerPool.addUser/post/requestBody/content/application~1json/schema/properties/userId\"\n }\n ]\n },\n \"roleId\": {\n \"allOf\": [\n {\n \"description\": \"The id of the hiring team role to assign.\"\n },\n {\n \"type\": \"object\",\n \"description\": \"Schema reference broken: #/paths/~1interviewerPool.addUser/post/requestBody/content/application~1json/schema/properties/userId\",\n \"additionalProperties\": true,\n \"x-moar-broken-reference\": \"#/paths/~1interviewerPool.addUser/post/requestBody/content/application~1json/schema/properties/userId\"\n }\n ]\n }\n }\n }\n }\n }\n}",
151-
"use_request_body_schema_mode": false,
152-
"validate_request_body_schema": false
151+
"use_request_body_schema_mode": true,
152+
"validate_request_body_schema": true
153153
}
154154
}

servers/ashby_api/arcade_ashby_api/wrapper_tools/CancelInterviewSchedule.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "CancelInterviewSchedule",
33
"fully_qualified_name": "[email protected]",
4-
"description": "Cancel an interview schedule using its ID.\n\nUse this tool to cancel an existing interview schedule by providing its ID. Requires appropriate permissions.",
4+
"description": "Cancel an interview schedule by ID.\n\nUse this tool to cancel an interview schedule by its unique identifier. Requires appropriate permissions.",
55
"toolkit": {
66
"name": "ArcadeAshbyApi",
77
"description": null,
@@ -10,9 +10,9 @@
1010
"input": {
1111
"parameters": [
1212
{
13-
"name": "interview_schedule_cancel_details",
13+
"name": "interview_schedule_details",
1414
"required": false,
15-
"description": "A JSON object containing the ID of the interview schedule to cancel and whether rescheduling is allowed. Required JSON structure with keys 'id' and 'allowReschedule'.",
15+
"description": "JSON object containing 'id' of the interview schedule to be canceled and 'allowReschedule' (boolean) to specify if rescheduling is permitted.",
1616
"value_schema": {
1717
"val_type": "json",
1818
"inner_val_type": null,
@@ -86,7 +86,7 @@
8686
"parameters": [
8787
{
8888
"name": "requestBody",
89-
"tool_parameter_name": "interview_schedule_cancel_details",
89+
"tool_parameter_name": "interview_schedule_details",
9090
"description": "",
9191
"value_schema": {
9292
"val_type": "json",
@@ -132,7 +132,7 @@
132132
}
133133
],
134134
"request_body_spec": "{\n \"content\": {\n \"application/json\": {\n \"schema\": {\n \"properties\": {\n \"id\": {\n \"allOf\": [\n {\n \"type\": \"object\",\n \"description\": \"Schema reference broken: #/paths/~1interviewerPool.addUser/post/requestBody/content/application~1json/schema/properties/userId\",\n \"additionalProperties\": true,\n \"x-moar-broken-reference\": \"#/paths/~1interviewerPool.addUser/post/requestBody/content/application~1json/schema/properties/userId\"\n },\n {\n \"description\": \"The id of the interview schedule to cancel\"\n }\n ]\n },\n \"allowReschedule\": {\n \"type\": \"boolean\",\n \"description\": \"Whether or not this interview schedule can be rescheduled.\",\n \"default\": false\n }\n },\n \"required\": [\n \"id\"\n ],\n \"example\": {\n \"id\": \"3ae2b801-19f6-41ef-ad28-214bd731948f\"\n }\n }\n }\n }\n}",
135-
"use_request_body_schema_mode": false,
136-
"validate_request_body_schema": false
135+
"use_request_body_schema_mode": true,
136+
"validate_request_body_schema": true
137137
}
138138
}

servers/ashby_api/arcade_ashby_api/wrapper_tools/ChangeApplicationSource.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ChangeApplicationSource",
33
"fully_qualified_name": "[email protected]",
4-
"description": "Change the source of an application in Ashby.\n\nThis tool is used to change the source of an application in the Ashby system. It requires the `candidatesWrite` permission, ensuring that only authorized changes are made.",
4+
"description": "Change the source of a job application.\n\nUse this tool to change the source of a job application. Requires the 'candidatesWrite' permission.",
55
"toolkit": {
66
"name": "ArcadeAshbyApi",
77
"description": null,
@@ -12,7 +12,7 @@
1212
{
1313
"name": "application_source_details",
1414
"required": false,
15-
"description": "JSON object containing `applicationId` and `sourceId` to specify the application and its new source.",
15+
"description": "A JSON object containing 'applicationId' and 'sourceId', specifying the application to update and the new source ID.",
1616
"value_schema": {
1717
"val_type": "json",
1818
"inner_val_type": null,
@@ -132,7 +132,7 @@
132132
}
133133
],
134134
"request_body_spec": "{\n \"content\": {\n \"application/json\": {\n \"schema\": {\n \"properties\": {\n \"applicationId\": {\n \"allOf\": [\n {\n \"type\": \"object\",\n \"description\": \"Schema reference broken: #/paths/~1interviewerPool.addUser/post/requestBody/content/application~1json/schema/properties/userId\",\n \"additionalProperties\": true,\n \"x-moar-broken-reference\": \"#/paths/~1interviewerPool.addUser/post/requestBody/content/application~1json/schema/properties/userId\"\n },\n {\n \"description\": \"The id of the application to update the source of\"\n }\n ]\n },\n \"sourceId\": {\n \"allOf\": [\n {\n \"type\": \"object\",\n \"description\": \"Schema reference broken: #/paths/~1interviewerPool.addUser/post/requestBody/content/application~1json/schema/properties/userId\",\n \"additionalProperties\": true,\n \"x-moar-broken-reference\": \"#/paths/~1interviewerPool.addUser/post/requestBody/content/application~1json/schema/properties/userId\"\n },\n {\n \"description\": \"The source to set on the application. Pass null to unset an application's source.\"\n }\n ]\n }\n },\n \"required\": [\n \"applicationId\",\n \"sourceId\"\n ],\n \"example\": {\n \"applicationId\": \"3ae2b801-19f6-41ef-ad28-214bd731948f\",\n \"sourceId\": \"2c6991c5-c9e2-4af8-879e-29c5a9d26509\"\n }\n }\n }\n }\n}",
135-
"use_request_body_schema_mode": false,
136-
"validate_request_body_schema": false
135+
"use_request_body_schema_mode": true,
136+
"validate_request_body_schema": true
137137
}
138138
}

servers/ashby_api/arcade_ashby_api/wrapper_tools/CreateInterviewSchedule.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "CreateInterviewSchedule",
33
"fully_qualified_name": "[email protected]",
4-
"description": "Create a scheduled interview in Ashby.\n\nUse this tool to create a new interview schedule in Ashby. This requires the `interviewsWrite` permission.",
4+
"description": "Create a new scheduled interview in Ashby.\n\nThis tool creates a scheduled interview in the Ashby platform, requiring the 'interviewsWrite' permission.",
55
"toolkit": {
66
"name": "ArcadeAshbyApi",
77
"description": null,
@@ -10,9 +10,9 @@
1010
"input": {
1111
"parameters": [
1212
{
13-
"name": "interview_schedule_request",
13+
"name": "interview_schedule_details",
1414
"required": false,
15-
"description": "JSON object containing application ID, interview events, and extra data. Events include start time, end time, and interviewers.",
15+
"description": "A JSON object containing applicationId, interviewEvents, and optional extraData for scheduling an interview.",
1616
"value_schema": {
1717
"val_type": "json",
1818
"inner_val_type": null,
@@ -144,7 +144,7 @@
144144
"parameters": [
145145
{
146146
"name": "requestBody",
147-
"tool_parameter_name": "interview_schedule_request",
147+
"tool_parameter_name": "interview_schedule_details",
148148
"description": "",
149149
"value_schema": {
150150
"val_type": "json",
@@ -248,7 +248,7 @@
248248
}
249249
],
250250
"request_body_spec": "{\n \"content\": {\n \"application/json\": {\n \"schema\": {\n \"properties\": {\n \"applicationId\": {\n \"allOf\": [\n {\n \"type\": \"object\",\n \"description\": \"Schema reference broken: #/paths/~1interviewerPool.addUser/post/requestBody/content/application~1json/schema/properties/userId\",\n \"additionalProperties\": true,\n \"x-moar-broken-reference\": \"#/paths/~1interviewerPool.addUser/post/requestBody/content/application~1json/schema/properties/userId\"\n },\n {\n \"description\": \"The id of the application for this interview schedule\"\n }\n ]\n },\n \"interviewEvents\": {\n \"type\": \"array\",\n \"description\": \"The list of events that make up this interview schedule\",\n \"items\": {\n \"type\": \"object\",\n \"required\": [\n \"startTime\",\n \"endTime\",\n \"interviewers\"\n ],\n \"properties\": {\n \"startTime\": {\n \"type\": \"string\",\n \"description\": \"The start time of this event\",\n \"example\": \"2023-01-30T15:00:00.000Z\"\n },\n \"endTime\": {\n \"type\": \"string\",\n \"description\": \"The end time of this event\",\n \"example\": \"2023-01-30T16:00:00.000Z\"\n },\n \"interviewers\": {\n \"type\": \"array\",\n \"description\": \"The interviewers for this event\",\n \"items\": {\n \"type\": \"object\",\n \"required\": [\n \"email\"\n ],\n \"properties\": {\n \"email\": {\n \"type\": \"string\",\n \"description\": \"The email address of the user in Ashby\",\n \"example\": \"[email protected]\"\n },\n \"feedbackRequired\": {\n \"type\": \"boolean\",\n \"description\": \"Whether this interviewer is required to provide feedback\"\n }\n }\n }\n },\n \"extraData\": {\n \"type\": \"object\",\n \"description\": \"This field stores information, structured as key-value pairs, for your own use and reference, for example a unique identifier for your own system.\\nDo not store personally identifiable information (PII) in this field. In addition, the following constraints apply:\\n- Keys must be strings of at most 100 characters.\\n- Values must be strings of at most 512 characters.\\n- The total size of the extra data must be less than 1kb.\\n\\nWe recommend using a prefix for your keys to avoid collisions with other systems, as data stored in this field is available to all API users with permission to access the underlying object.\\n\",\n \"additionalProperties\": {\n \"type\": \"string\"\n },\n \"example\": {\n \"partner_external_object_id\": \"12345\",\n \"partner_additional_data\": \"f763ba0e4\"\n }\n },\n \"interviewId\": {\n \"allOf\": [\n {\n \"type\": \"object\",\n \"description\": \"Schema reference broken: #/paths/~1interviewerPool.addUser/post/requestBody/content/application~1json/schema/properties/userId\",\n \"additionalProperties\": true,\n \"x-moar-broken-reference\": \"#/paths/~1interviewerPool.addUser/post/requestBody/content/application~1json/schema/properties/userId\"\n },\n {\n \"description\": \"The id of the interview used in this event. If no value is provided, the organization's default interview will be used.\"\n },\n {\n \"example\": \"46648e83-f28f-43c4-a2a0-58e0599cff41\"\n }\n ]\n }\n }\n }\n }\n },\n \"required\": [\n \"applicationId\",\n \"interviewEvents\"\n ]\n }\n }\n }\n}",
251-
"use_request_body_schema_mode": false,
252-
"validate_request_body_schema": false
251+
"use_request_body_schema_mode": true,
252+
"validate_request_body_schema": true
253253
}
254254
}

0 commit comments

Comments
 (0)