Skip to content

Commit 6cc3c58

Browse files
Copilotphrocker
andauthored
Exclude service-specific verbs from AI context (#109)
* Initial plan * Remove service-specific verbs (Jira and GitHub) Co-authored-by: phrocker <[email protected]> * Mark service-specific verbs as not AI-callable instead of removing them Co-authored-by: phrocker <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: phrocker <[email protected]>
1 parent 6e21da1 commit 6cc3c58

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

dataplane/src/main/java/io/sentrius/sso/core/integrations/ticketing/JiraVerbService.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public JiraVerbService(TicketService ticketService, IntegrationSecurityTokenServ
4141
name = "searchForTickets",
4242
description = "Search for JIRA tickets using a query string. Can use JQL or simple text search.",
4343
returnType = List.class,
44-
isAiCallable = true,
44+
isAiCallable = false,
4545
paramDescriptions = {"Search query string (JQL or simple text)"}
4646
)
4747
public List<TicketDTO> searchForTickets(String query) {
@@ -68,7 +68,7 @@ public List<TicketDTO> searchForTickets(String query) {
6868
name = "assignTicket",
6969
description = "Assign a JIRA ticket to a user",
7070
returnType = Boolean.class,
71-
isAiCallable = true,
71+
isAiCallable = false,
7272
paramDescriptions = {"JIRA ticket key (e.g., PROJ-123)", "User to assign the ticket to"}
7373
)
7474
public Boolean assignTicket(String ticketKey, User user) {
@@ -96,7 +96,7 @@ public Boolean assignTicket(String ticketKey, User user) {
9696
name = "updateTicket",
9797
description = "Add a comment to a JIRA ticket",
9898
returnType = Boolean.class,
99-
isAiCallable = true,
99+
isAiCallable = false,
100100
paramDescriptions = {"JIRA ticket key (e.g., PROJ-123)", "User adding the comment", "Comment message"}
101101
)
102102
public Boolean updateTicket(String ticketKey, User user, String message) {
@@ -121,7 +121,7 @@ public Boolean updateTicket(String ticketKey, User user, String message) {
121121
name = "isJiraAvailable",
122122
description = "Check if JIRA integration is configured and available",
123123
returnType = Boolean.class,
124-
isAiCallable = true,
124+
isAiCallable = false,
125125
paramDescriptions = {}
126126
)
127127
public Boolean isJiraAvailable() {

enterprise-agent/src/main/java/io/sentrius/agent/analysis/agents/verbs/CodingVerbService.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public CodingVerbService(@Value("${agent.ai.config}") String agentConfigFile,
5656
name = "handleJiraIssueWithCode",
5757
description = "Generate code and create a PR for a JIRA issue. Returns the PR URL if successful.",
5858
returnType = String.class,
59-
isAiCallable = true,
59+
isAiCallable = false,
6060
paramDescriptions = {
6161
"JIRA issue key (e.g., PROJECT-123)",
6262
"GitHub repository (format: owner/repo)",
@@ -101,7 +101,7 @@ public String handleJiraIssueWithCode(String issueKey, String repository, Map<St
101101
name = "handleGitHubIssueWithCode",
102102
description = "Generate code and create a PR for a GitHub issue. Returns the PR URL if successful.",
103103
returnType = String.class,
104-
isAiCallable = true,
104+
isAiCallable = false,
105105
paramDescriptions = {
106106
"GitHub repository (format: owner/repo)",
107107
"GitHub issue number",
@@ -147,7 +147,7 @@ public String handleGitHubIssueWithCode(String repository, Integer issueNumber,
147147
name = "createPullRequest",
148148
description = "Create a pull request with specified code changes. Returns the PR URL if successful.",
149149
returnType = String.class,
150-
isAiCallable = true,
150+
isAiCallable = false,
151151
paramDescriptions = {
152152
"GitHub repository (format: owner/repo)",
153153
"Pull request title",
@@ -194,7 +194,7 @@ public String createPullRequest(String repository, String title, String descript
194194
name = "isCodingAgentAvailable",
195195
description = "Check if the coding agent is configured and available for automated code generation",
196196
returnType = Boolean.class,
197-
isAiCallable = true,
197+
isAiCallable = false,
198198
paramDescriptions = {}
199199
)
200200
public Boolean isCodingAgentAvailable() {

enterprise-agent/src/main/java/io/sentrius/agent/analysis/agents/verbs/JiraVerbs.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public JiraVerbs(ZeroTrustClientService zeroTrustClientService) {
5050
description = "Search for JIRA tickets using JQL or simple text query. Requires 'query' parameter in context.",
5151
returnType = List.class,
5252
returnName = "tickets",
53-
isAiCallable = true,
53+
isAiCallable = false,
5454
requiresTokenManagement = true,
5555
paramDescriptions = {"query: JQL query string or simple text search"}
5656
)
@@ -97,7 +97,7 @@ public List<TicketDTO> searchJiraTickets(TokenDTO token, AgentExecutionContextDT
9797
description = "Get details of a specific JIRA ticket. Requires 'issueKey' parameter in context.",
9898
returnType = TicketDTO.class,
9999
returnName = "ticket",
100-
isAiCallable = true,
100+
isAiCallable = false,
101101
requiresTokenManagement = true,
102102
paramDescriptions = {"issueKey: JIRA ticket key (e.g., PROJ-123)"}
103103
)
@@ -141,7 +141,7 @@ public TicketDTO getJiraTicket(TokenDTO token, AgentExecutionContextDTO contextD
141141
description = "Add a comment to a JIRA ticket. Requires 'issueKey' and 'comment' parameters in context.",
142142
returnType = Boolean.class,
143143
returnName = "success",
144-
isAiCallable = true,
144+
isAiCallable = false,
145145
requiresTokenManagement = true,
146146
paramDescriptions = {
147147
"issueKey: JIRA ticket key (e.g., PROJ-123)",
@@ -187,7 +187,7 @@ public Boolean addJiraComment(TokenDTO token, AgentExecutionContextDTO contextDT
187187
description = "Check if JIRA integration is configured and available",
188188
returnType = Boolean.class,
189189
returnName = "available",
190-
isAiCallable = true,
190+
isAiCallable = false,
191191
requiresTokenManagement = true
192192
)
193193
public Boolean isJiraAvailable(TokenDTO token, AgentExecutionContextDTO contextDTO) throws ZtatException {
@@ -218,7 +218,7 @@ public Boolean isJiraAvailable(TokenDTO token, AgentExecutionContextDTO contextD
218218
"Requires 'issueKey' and 'hostSystemId' parameters in context.",
219219
returnType = ObjectNode.class,
220220
returnName = "result",
221-
isAiCallable = true,
221+
isAiCallable = false,
222222
requiresTokenManagement = true,
223223
paramDescriptions = {
224224
"issueKey: JIRA ticket key (e.g., PROJ-123)",

0 commit comments

Comments
 (0)