File size: 8,062 Bytes
5ec3312
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
{
  "tools": [
    {
      "tool_description": "Returns a list of work items matching the request.",
      "tool_name": "works_list",
      "return_type": "array of objects",
      "argument_list": [
        {
          "argument_name": "applies_to_part",
          "argument_description": "Filters for work belonging to any of the provided parts",
          "argument_type": "array of strings",
          "example": [
            ["FEAT-123"],
            ["ENH-123", "PROD-123", "CAPL-123", "CAPL-359"],
            ["HGH-262", "FEAT-007"]
          ]
        },
        {
          "argument_name": "created_by",
          "argument_description": "Filters for work created by any of these users",
          "argument_type": "array of strings",
          "example": [["DEVU-123"], ["PRO-233", "CRE-1233"]]
        },
        {
          "argument_name": "issue.priority",
          "argument_description": "Filters for issues with any of the provided priorities. Allowed values: p0, p1, p2, p3.",
          "allowed_values": ["p0", "p1", "p2", "p3"],
          "argument_type": "array of strings",
          "example": [["p0"], ["p0", "p3"], ["p0", "p1", "p2", "p3"]]
        },
        {
          "argument_name": "issue.rev_orgs",
          "argument_description": "Filters for issues with any of the provided Rev organizations",
          "argument_type": "array of strings",
          "example": [["REV-123"], ["REV-468", "REV-979"]]
        },
        {
          "argument_name": "limit",
          "argument_description": "The maximum number of works to return. The default is 50",
          "argument_type": "integer(int32)",
          "example": [40, 25, 2, 1, 50]
        },
        {
          "argument_name": "owned_by",
          "argument_description": "Filters for work owned by any of these users",
          "argument_type": "array of strings",
          "example": [["DEVU-123"], ["CAPL-264", "HGH-190"]]
        },
        {
          "argument_name": "stage.name",
          "argument_description": "Filters for records in the provided stage(s) by name",
          "argument_type": "array of strings",
          "example": [["triage"], ["design", "triage"]]
        },
        {
          "argument_name": "ticket.needs_response",
          "argument_description": "Filters for tickets that need a response",
          "argument_type": "boolean",
          "example": ["True", "False"]
        },
        {
          "argument_name": "ticket.rev_org",
          "argument_description": "Filters for tickets associated with any of the provided Rev organizations",
          "argument_type": "array of strings",
          "example": [["REV-123"], ["REV-238", "REV-119"]]
        },
        {
          "argument_name": "ticket.severity",
          "argument_description": "Filters for tickets with any of the provided severities. Allowed values: blocker, high, low, medium",
          "argument_type": "array of strings",
          "allowed_values": ["blocker", "high", "low", "medium"],
          "example": [
            ["blocker"],
            ["blocker", "high"],
            ["blocker", "high", "low"]
          ]
        },
        {
          "argument_name": "ticket.source_channel",
          "argument_description": "Filters for tickets with any of the provided source channels",
          "argument_type": "array of strings",
          "example": [["slack"], ["github"], ["slack", "scrum"]]
        },
        {
          "argument_name": "type",
          "argument_description": "Filters for work of the provided types. Allowed values: issue, ticket, task",
          "allowed_values": ["issue", "ticket", "task"],
          "argument_type": "array of strings",
          "example": [["issue"], ["ticket"], ["task"]]
        }
      ]
    },
    {
      "tool_description": "Summarizes a list of objects. The logic of how to summarize a particular object type is an internal implementation detail.",
      "tool_name": "summarize_objects",
      "return_type": "array of objects",
      "argument_list": [
        {
          "argument_name": "objects",
          "argument_description": "List of objects to summarize",
          "argument_type": "array of objects",
          "example": [["issue1"], ["task1", "issue3"]]
        }
      ]
    },
    {
      "tool_description": "Returns a list of objects sorted by priority.",
      "tool_name": "prioritize_objects",
      "return_type": "array of objects",
      "argument_list": [
        {
          "argument_name": "objects",
          "argument_description": "A list of objects to be prioritized",
          "argument_type": "array of objects",
          "example": [["issue4"], ["task2", "issue3"], ["ticket9"]]
        }
      ]
    },
    {
      "tool_description": "Adds the given work items to the sprint",
      "tool_name": "add_work_items_to_sprint",
      "return_type": "none",
      "argument_list": [
        {
          "argument_name": "work_ids",
          "argument_description": "A list of work item IDs to be added to the sprint.",
          "argument_type": "array of strings",
          "example": [["deve/0:issue/6"], ["devdon:core:dvrv-us-1:task/1"]]
        },
        {
          "argument_name": "sprint_id",
          "argument_description": "The ID of the sprint to which the work items should be added.",
          "argument_type": "str",
          "example": ["sprint_4", "sprint_1"]
        }
      ]
    },
    {
      "tool_description": "Given a search string, returns the ID of a matching object in the system of record. If multiple matches are found, it returns the one where the confidence is highest.",
      "tool_name": "search_object_by_name",
      "return_type": "string",
      "argument_list": [
        {
          "argument_name": "query",
          "argument_description": "The search string, for example, customer's name, part name, user name.",
          "argument_type": "string",
          "example": ["DEV-123", "REV-432"]
        }
      ]
    },
    {
      "tool_description": "Returns the ID of the current sprint.",
      "tool_name": "get_sprint_id",
      "return_type": "string",
      "argument_list": []
    },
    {
      "tool_description": "Given a text, extracts actionable insights, and creates tasks for them, which are kind of a work item.",
      "tool_name": "create_actionable_tasks_from_text",
      "return_type": "array of strings",
      "argument_list": [
        {
          "argument_name": "text",
          "argument_description": "The text from which the actionable insights need to be created.",
          "argument_type": "string",
          "example": [
            "Transcript from slack channels",
            "Transcripts from a meeting",
            "workplace report"
          ]
        }
      ]
    },
    {
      "tool_description": "Returns the ID of the current user.",
      "tool_name": "who_am_i",
      "return_type": "string",
      "argument_list": []
    },
    {
      "tool_description": "Returns a list of work items that are similar to the given work item",
      "tool_name": "get_similar_work_items",
      "return_type": "array of objects",
      "argument_list": [
        {
          "argument_name": "work_id",
          "argument_description": "The ID of the work item for which you want to find similar items",
          "argument_type": "string",
          "example": ["der/0:issue/2", "ton:core:dvrv-us-3:sprint/10"]
        }
      ]
    },
    {
      "tool_description": "Given the outputs from previous tools, process relevant outputs, combining them using mathematical operations, iterations, conditional logic etc and returns output matching the request",
      "tool_name": "lambda",
      "return_type": "any",
      "argument_list": [
        {
          "argument_name": "expression",
          "argument_description": "Operation to be performed",
          "argument_type": "lambda statements",
          "example": "['lambda $$PREV[3], $$PREV[5] : $$PREV[3] + $$PREV[5]','lambda $$PREV[0]: len($$PREV[0])']"
        }
      ]
    }
  ]
}